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?
Thank you for the provided screenshots, I have reviewed them very careful and since this line does not appear on all of your screenshots I could conclude that on some of your screens you have data point with very high value. So this is the reason why you see those lines.
Please let me know if you have any further questions or if i am missing someting.
The lines are displayed when I update the chart. Then I wait 1-2 seconds and the lines disappear.
When I click very fast update, it looks strange.
Have you test my example code?
I can’t find your sample, could you please upload it again.
I am waiting for your feedback.
Hello ,
Thank you for the provided sample, I was able to reproduce it on my side and I am agree this looks like an issue.
This product is free and for now I am not aware of any plans of releasing a new version and this seems require an development work .
I will research your scenario a little more in order to try to found an workaround if it is possible and I will update you.