Skip to content

Date axis POSSIBLE? #521

Answered by wirew0rm
dirri asked this question in Q&A
May 23, 2022 · 3 comments · 10 replies
Discussion options

You must be logged in to vote

Hello and welcome to chart-fx,
for performance reasons, our DataSet interface does not use Objects to store individual data points, since that would cause lots of allocations and indirections when rendering the data. Charts with time data are supported by the DefaultNumericAxis implementation, see the TimeAxisSample. You will have to convert the Date objects to a millisecond timestamp and add them to a suitable DataSet implementation. Most of chart-fx's DataSets do support non-equidistant samples.
For influencing how and where the dates will be printed on the x-axis, have a look at the different samples.

I hope this is helpful and I undersood your requirements correctly. In general we try…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@dirri
Comment options

@wirew0rm
Comment options

@dirri
Comment options

Answer selected by dirri
Comment options

You must be logged in to vote
1 reply
@dirri
Comment options

Comment options

You must be logged in to vote
6 replies
@dirri
Comment options

@dirri
Comment options

@wirew0rm
Comment options

@dirri
Comment options

@wirew0rm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants