Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
How can I refresh my X-Axis
posted

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?




Parents
No Data
Reply
  • 48586
    posted

    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.

    Sampels.zip
Children