MaazAli / Meteor-HighCharts

HighCharts for Meteor, with an easy to use helper to get you started!
MIT License
53 stars 20 forks source link

Destroy and Re-draw #31

Closed chasemb closed 9 years ago

chasemb commented 9 years ago

I can't seem to find a way to chartObject.destroy() and redraw the chart. Please advise. Thanks!

jhuenges commented 9 years ago

Whats the use case?

chasemb commented 9 years ago

Changing data or date ranges, etc.

jhuenges commented 9 years ago

Is the data based on a collection?

Otherwise: http://api.highcharts.com/highcharts#Chart.redraw

chasemb commented 9 years ago

Yeah, based on query from db. Where do i have access to the chart object to manipulate?

jhuenges commented 9 years ago

Have you looked at the examples? There is a way to connect the collection directly to the chart. Give me a moment and I ll try to find a better answer :P If you want to, you can show me some code.

chasemb commented 9 years ago

Shoot me in the face. Didn't see the demos and didn't realize the highcharts library was exposed. I was using the helper... Sorry for your time.

jhuenges commented 9 years ago

No shooting today ;) You can take a look at: http://meteorpad.com/pad/i96DNwX9H6pr959oL/Highcharts%20#2 I wrote this some time ago, but it has a nice solution on how to update the data (maybe even better than the demos :P )

Hareramrai commented 7 years ago

Can someone help me redraw the graph with new data ? I am not getting documentation for the same.

Thank you.

jhuenges commented 7 years ago

Have you tried one of the examples here: https://github.com/jhuenges/highcharts-demo ?