maniac
20 Aug 2009, 3:45 AM
Hi,
I am trying to use the charting feature of Gxt 2.0 and am stumbling over a problem: I'd like the chart to skip some data items I have no data for. According to the documentation, this should be possible using e.g.
LineChart chart = new LineChart();
for (int i = 0; i < 10; i++) chart.addDots(new Dot(i));
chart.addNullValue();
for (int i = 0; i < 10; i++) chart.addDots(new Dot(i));
My question is: how can I do the same if I have a DataProvider connected to the ChartConfig which reads its data out of a ListStore? Simply passing null as the value part of the ModelData instance doesn't seem to work (it's converted to a dot with value=0).
If it's not possible, I'd like to report that as a bug ;)
I am trying to use the charting feature of Gxt 2.0 and am stumbling over a problem: I'd like the chart to skip some data items I have no data for. According to the documentation, this should be possible using e.g.
LineChart chart = new LineChart();
for (int i = 0; i < 10; i++) chart.addDots(new Dot(i));
chart.addNullValue();
for (int i = 0; i < 10; i++) chart.addDots(new Dot(i));
My question is: how can I do the same if I have a DataProvider connected to the ChartConfig which reads its data out of a ListStore? Simply passing null as the value part of the ModelData instance doesn't seem to work (it's converted to a dot with value=0).
If it's not possible, I'd like to report that as a bug ;)