LocalDate and LocalDateTime Axis types
See original GitHub issueHey 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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…
I have a project I need this for now. Lemme see if I can streamline this a little with a nice wrapper…