question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LocalDate and LocalDateTime Axis types

See original GitHub issue

Hey Gerrit,

There doesn’t seem to be any good LocalDate and LocalDateTime axis types. Would this be something that’s in scope for this library?

I’m coming across this need a lot as I play with your charts and JavaFX charts in general.

Thomas Nield

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
HanSolocommented, Dec 4, 2017

Added first support for time based data to Axis. The main idea is to have a new TYDataObject which extends the XYDataObject and has an additional field for LocalDateTime. The Axis now also supports this kind of DataObject and has a dynamic format. Meaning to say if you increase the window width for example the horizontal scale should adjust according to the available space and range. You can find a demo in the TimeAxisTest.java file. Not sure if this approach will be the final solution but at least it works kind of 😃 Feel free to play around with it and let me know what you think…

0reactions
thomasnieldcommented, Feb 14, 2018

I have a project I need this for now. Lemme see if I can streamline this a little with a nice wrapper…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java 8 Date - LocalDate, LocalDateTime, Instant - DigitalOcean
LocalDate is an immutable class that represents Date with default format of yyyy-MM-dd. We can use now() method to get the current date....
Read more >
10 Examples of LocalDate, LocalTime, and LocalDateTime in ...
The core classes of JDK 8 date APIs are Instant, LocalDate, LocalTime, LocalDateTime, and ZonedDateTime, so we'll start from there.
Read more >
JFreeChart: create a chart with java.time.LocalDate or java ...
In the case of LocalDate , you can create a time series chart by constructing the corresponding Day , as shown below. LocalDate...
Read more >
LocalDate (Java SE 10 & JDK 10 ) - Oracle Help Center
LocalDate is an immutable date-time object that represents a date, often viewed as year-month-day. Other date fields, such as day-of-year, day-of-week and ...
Read more >
LocalDateTime - Android Developers
This combines this local date-time and the specified offset to calculate the epoch-second value, which is the number of elapsed seconds from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found