Zach Huston
Zach Huston

Reputation: 75

Integrating Ember bindings with highcharts

I have a javascript application written with ember.js and am looking to bind an array of day containing various stats to some charting mechanism. I have been experimenting with highcharts with no luck. I have managed to get it to update through the setInterval function, but am unsure of how to incorporate a highcharts object and an ember object to allow for bindings/computed properties.

I am just beginning with ember, and I appreciate any help/ pointers in the right direction.

Upvotes: 3

Views: 2743

Answers (2)

Alexandros K
Alexandros K

Reputation: 947

Here is a working version of the fiddle above, with Ember rc6 and Highcharts 2: http://jsfiddle.net/qmmvx/2/

For Highcharts 3 the options structure has changed somewhat (and broken the previous fiddle) but the idea remains the same.

Changed dependency to:

http://code.highcharts.com/2.2.4/highcharts.js

Upvotes: 3

pangratz
pangratz

Reputation: 16143

There is a JSFiddle around which illustrates how to use Highcharts with Ember.js, see http://jsfiddle.net/Bt2xy/12/.

EDIT: I found the corresponding thread http://highslide.com/forum/viewtopic.php?f=9&t=15397, so the credits of the JSFiddle go to user @mbloem and @hfrntt (Slawek Kolodziej).

Upvotes: 6

Related Questions