DateAxis for JavaFX
Join the DZone community and get the full member experience.
Join For FreeA 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.
Published at DZone with permission of Pedro Duque Vieira, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Redefining DevOps: The Transformative Power of Containerization
-
What Is mTLS? How To Implement It With Istio
-
Building A Log Analytics Solution 10 Times More Cost-Effective Than Elasticsearch
-
How To Design Reliable IIoT Architecture
Comments