Jeremieleroy - Chart view (loading)

Am new to “Jeremieleroy - Chart view”
Using example i can create a chart. In my code I call the chartview canvas in button event.
my problem is , when I try press the button 2nd time , the old chart data is not clear. its append to new chart data.

help me to resolve this one.

Did you check the documentation?

It actually depends on how you are loading the data. If you are loading from CSV data, the second parameter Init should be set to True to clear the old data.