Hi. I add at certain intervals data to the chart with the following code:
m_XAxisValues.add(Integer.toString(m_CurXValue));
m_IEPE1.add(value1);
And i refresh with
for(Series series: m_LineChart.series()) { series.notifyDataReset();}
But X-Axis is not refresh. What is wrong?
Hello,
Also you may need to call doAutoRange() method of the axis, in order to perform axis to recalculate its range. I have implemented simple sample where on “Update button” click I am adding new point to my data. Please run the sample and let me know if this is what you are looking for.
Please let me know if you have any further questions.
thank you for answer. Now it works.
But I have an other question, too.
Why draws the chart vertical lines on the right edge when I update the chart?