A somewhat common request for people working with the charts API in JavaFX is a DateAxis. Essentially that would be an Axis that would be able to show dates.

I’ve hacked up a quick implementation of one, you can get it from github: https://github.com/dukke/FXCharts

It takes the time value of dates and displays them using the format given defined by “TICK_UNIT_FORMATTER_DEFAULTS”.

It’s not really a very elegant solution but it works. I’ll try to give a hand to Diego Cirujano-Cuesta and Christian Schudt who are working in a more evolved DateAxis that takes up Dates instead of their time value.

This implementation was done under Java8. It might work with JavaFX 2.2, I don’t know.

3 thoughts on “DateAxis for javafx

  1. Java desktop links of the week, September 9 « Jonathan Giles

  2. JavaFX links of the week, September 9 // JavaFX News, Demos and Insight // FX Experience

Leave a Reply

Your email address will not be published. Required fields are marked *