Forum: Ruby on Rails Highcharts dynamically filter data

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2cc9feaac138b891ae74e9fa559b34dc?d=identicon&s=25 John Sanderbeck (jsanderbeck)
on 2016-11-11 20:11
I am looking for some guidance for the proper way to do this...

I have a project that I have an index page with a set of charts on it.

At the top of the index page I have a set of drop down boxes to filter
the data in the charts.

What I would like to do is draw all the charts and when a user picks a
filter, just update the data in each chart without redrawing everything.

I assume this is possible but I have not been able to figure it out.
Primarily because of my lack of understanding of AJAX, Highcharts, and
JSON.

Can anyone show me an example on how to do this?

I basically want the filter to fire an ajax call that then replaces the
data in the already displayed chart.

John
This topic is locked and can not be replied to.