HighCharts-GXT/GWT Project The official HighCharts-GWT/GXT adapters blog

Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Managing series in JS and SeriesType class with live charts
Lancer
Newbie
Posts: 3
Post Managing series in JS and SeriesType class with live charts
on: February 25, 2013, 21:08

Daniele posted snippet for live charts

http://highcharts-gxt.sourceforge.net/wordpress/?page_id=119&mingleforumaction=viewtopic&t=8

For me, the most important part of this example is the native insertPoint method.
This method causes that points are added to the chart, and the chart is refreshed with some nice animation.
But the issue appears, when the user want to use the features served by ChartFrame e.g. zoom tool or chcanging the type of chart.
After using e.g. zoom, the chart becomes blank. And to use ChartFrame features, the data have to be saved in org.adapters.highcharts.codegen.types.SeriesType.
So when I featch my data, I have to invoke native insertPoint metohd and also add the same featched data, to a proper series.
What is more at the beginning I have to set series name in JS e.g.
chart.series[seriesNumber].name = seriesName;
and in org.adapters.highcharts.codegen.types.SeriesType e.g.
seriesType.setSubOption("/name", seriesLabels.get(i));
I have to care about 4 (add data to JS, SeriesType and series name in JS, SeriesType) operations instead of 2 (add data to SeriesType and series name in SeriesType).
So, is any possibility to use the only SeriesType class in live chart?

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.29 ; Page loaded in: 0.022 seconds.