Zomato / DR-charts

Apache License 2.0
95 stars 36 forks source link

Reset graph #18

Closed Elvereth closed 7 years ago

Elvereth commented 7 years ago

Hello!

It might be a silly question, but is there a way to reset/clear the graph previosly drawn? I'm working on the same view and drawing different graphs when a button get clicked.

That's how it looks after I try to redraw it: fullsizerender I tried to reset the view in some ways, but without any luck.

If there isn't the possibility to reset the chart I suggest to insert it, cause it might be useful.

Thanks

dhirenthirani commented 7 years ago

Hey, Ya we can do this by just calling a method which is there in the class. i.e. "reloadGraph"

Thanks for your interest in Dr-Charts.

Elvereth commented 7 years ago

Hi, sorry, for some reason I totally didn't see it. I knew it had to be there somewhere. Thanks for the quick reply!

dhirenthirani commented 7 years ago

Hey, Not an issue. Thanks for interest in Dr-Charts.