It is currently Fri Aug 01, 2014 11:47 am Advanced search

Multiple responding graphs and EmberJS = series undefined

Technical support, bug reports and more.

Multiple responding graphs and EmberJS = series undefined

Postby mbloem » Tue Feb 21, 2012 3:35 pm

Hi,

We are developing an application where multiple Highcharts graphs react to each other, using EmberJS (based on Sproutcore 2.0) . As a little test-case we tried to plot two simple graphs and on a point-click make them switch graph style and re-render. This works fine with Highcharts 2.1.9, but as of 2.2.0 this does not. After clicking on the plotted graphs, it does not re-render but shows an empty graph.

After a closer examination we found that the series object containing the data is somehow undefined after clicking the graph, which is really weird and we can't trace the origin of that 'bug'. Since it works fine with 2.1.9 and stopped working at 2.2.0, I think this is the best place to ask for help.

Check out the jsFiddle for the test-case: http://jsfiddle.net/Bt2xy/7/

The working jsFiddle with Highcharts 2.1.9: http://jsfiddle.net/Bt2xy/11/

NOTE: The jsFiddle will not work in IE 7/8, try adding <script>ENV = { EXTEND_PROTOTYPES: false }</script> after the <body> tag if you are using IE 7/8.
mbloem
 
Posts: 2
Joined: Tue Feb 21, 2012 3:16 pm

Re: Multiple responding graphs and EmberJS = series undefine

Postby hfrntt » Fri Feb 24, 2012 2:20 am

Highcharts 2.2 (and in earlier version of Highstock) removes data from options to free memory (it's useful with large datasets). The simplest solution is to clone the option object, see: http://jsfiddle.net/Bt2xy/12/
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: Multiple responding graphs and EmberJS = series undefine

Postby mbloem » Mon Feb 27, 2012 9:50 am

hfrntt wrote:Highcharts 2.2 (and in earlier version of Highstock) removes data from options to free memory (it's useful with large datasets). The simplest solution is to clone the option object, see: http://jsfiddle.net/Bt2xy/12/


Thanks a lot! The problem is fixed now.
mbloem
 
Posts: 2
Joined: Tue Feb 21, 2012 3:16 pm


Return to Highcharts Usage

Who is online

Users browsing this forum: Bing [Bot], StephaneV and 11 guests