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?
I am not exactly sure which vertical lines you are referring, so could you please post a screenshot where I could see those lines that cause your issue.
I am waiting for your feedback.
if i have more than 250 X-Values in AreaSeries and I click the "New Button" the chart draw a vertical line on the right edge. You see it on the screenshots.
And when I have a LineSeries the chart draw a vertical line when I have more than 500 X-Values. You see it on the screenshots.
A Sample Code is on http://sons-net.de/uploads/Screenshots_and_Sample.zip
Screenshots:
AreaSeries - with vertical line when drawing (marked)
AreaSeries - with vertical line when drawing
AreaSeries - without vertical line after drawing
LineSeries - with vertical line when drawing (marked)
LineSeries - with vertical line when drawing
LineSeries - without vertical line after drawing
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?
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.
I can’t find your sample, could you please upload it again.