How to recreate a chartFragment with new data in Android



I am using Shinobi chart Fragment in my android project, I have a scenario that when I click on a button I have to load shinobi chart with that data its working fine but when I click on second time its recreating 2 times How can I remove the old or existing and create new Chart.




Thank you for getting in touch. 
It sounds like you are inadvertently adding an additional series to your chart, rather than re-loading data on an existing series. I have recently answered a similar question on StackOverflow. Please see the following link for this post:

If I have misunderstood your question, please do post back with more details and ideally, if possible some snippets of code to explain how you are setting up your chart.