dates in x axis are superimposed - plot shows the last entered data 2 times (when not using setXAxisMax)

假装没事ソ 提交于 2019-12-02 13:25:00

This looks like a wrong usage of the TimeSeries. You are calling series.add(i, something) where something is mydata.get(i) in your code. This means that the method add(double x, double y) inherited by TimeSeries from XYSeries is called, so x in your case ranges between 0 and mydata.size() - 1.

Just make sure you are correctly calling the add(Date x, double value) method in TimeSeries.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!