-
I need to add Date objects to XAxis as existings solution uses a custom DateAxis. Is it possible somehow with chartFx? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hello and welcome to chart-fx, I hope this is helpful and I undersood your requirements correctly. In general we try not to actively prevent any use of chart-fx, so most things should be possible, the question is more how much custom code you need to get your desired result. |
Beta Was this translation helpful? Give feedback.
-
You can either set the axis range manually or manually set the axis range depending on your usecase. Looking at and playing with the samples is always a good idea there. |
Beta Was this translation helpful? Give feedback.
-
For compability reasons i´m using the JDK8 SNAPSHOT version of chartfx and maybe that is the reason why i can´t set the markerStyle to circle? I´m trying to set the style for the dataset (DoubleDataSet) via setStyle("strokeColor: red;strokeWidt: 3;markerType. circle;"); But this seems not to work. Are there any restrictions in the JDK8 SNAPSHOT version for styling the charts?? |
Beta Was this translation helpful? Give feedback.
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 theDate
objects to amillisecond 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…