JavaFX real-time LineChart with time axis

前端 未结 2 2156
甜味超标
甜味超标 2021-02-20 05:03

I\'m trying to plot real-time graph, with time axis, but I have found the LineChart constructor only has the signature.

LineChart(Axis xAxi         


        
2条回答
  •  佛祖请我去吃肉
    2021-02-20 05:34

    The class org.jfree.chart.demo.TimeSeriesChartDemo1 is included with the distribution. It is pictured in the demo, and its source illustrates the use of the factory method ChartFactory.createTimeSeriesChart(). There's a related example here.

提交回复
热议问题