JFreeChart does not show the graph at every iteration on thread?

后端 未结 2 1427
执念已碎
执念已碎 2021-01-28 13:12

I am getting counter values in one class using a thread and writing JFreeChart in another thread. While executing, it works alternatively, but only shows the graph

2条回答
  •  独厮守ぢ
    2021-01-28 13:33

    For your second question (integer axis labels instead of float), this can be handled by calling the setStandardTickUnits() method on the axis. You can pass any TickUnitSource, but easiest for you is probably NumberAxis.createIntegerTickUnits().

提交回复
热议问题