The line chart display wrong when I change data and refresh the line chart

I have a demo to display data using line chart. When go to my page. the line chart show with data as below:

When click in Refresh button, I will clear the DataPointList and add new data with only data for Tue, Wed, Thu, Sat and Sun. I expect the data only show for the days but currently the line chart is showing as below:

  What is wrong here? Can I help me?

Hi Cuong,

Is it possible to post the screenshot of the logic written in Refresh Action.From graph it looks like the data is getting appended before the previous data. Not sure if the previous data is cleared properly. 

Gopi Nath wrote:

Hi Cuong,

Is it possible to post the screenshot of the logic written in Refresh Action.From graph it looks like the data is getting appended before the previous data. Not sure if the previous data is cleared properly. 

Hi Gopi Nath,