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,
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
I am waiting for your feedback.
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.
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?
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.