I'm trying to plot real-time graph, with time axis, but I have found the LineChart
constructor only has the signature.
LineChart(Axis<X> xAxis, Axis<Y> yAxis)
I think embedding jfree chart in javafx is not a proper solution.
I want a few of the jfree features in a javafx LineChart
, is this possible?
Best Answer
Download Ensemble sample from http://www.oracle.com/technetwork/java/javafx/samples/index.html
There are several examples in it for dynamic charts, e.g. "Advanced Stock Line Chart". You can take a look at their source code directly in the application.
To show time on axis you can use string and DateFormatter: