How to clear old vaadin chart configuration and set a new one.

Hi Guys.

I am trying out the vaadin chart addon, which is an awesome charting addon though. I am trying to set a new configuration dynamically and then draw the chart using that config. Now the issue is the old config stays and the new config gets added as well. Is there a way to clear the old configuration before adding a new configuration.

Thanks
Prat