-
17 Dec 2012 7:35 AM #1
Unanswered: Chart - Hide some points of a series
Unanswered: Chart - Hide some points of a series
Hi,
I wish to know how (if it is possible) to hide some points of a series.
Ex : i want to hide all points of a scatter series which has a 0 value.(here bordered in blue)sc-chart.png
Thanks !
-
18 Dec 2012 12:08 PM #2
The value 0 is of course used to draw a point along the axis - where the value is zero. That's why you are seeing those points.
Null values, on the other hand, indicate the absence of a value - that there is no value to draw. This is interpreted by the ScatterSeries and LineSeries to skip that point. If you set the gapless property to false, the LineSeries won't even draw a line between the points to either side of the missing data. Note that gapless=false doesn't work with setting a fill on the series at present.
Check out http://www.sencha.com/examples/#Exam...e:linegapchart for what this looks like, and roughly how to build it.
-
19 Dec 2012 8:49 AM #3
Thansk, i indeed tried with Null values for other points but when i redraw the chart i reach an error :
Code:java.lang.NullPointerException: null at com.sencha.gxt.chart.client.chart.series.ScatterSeries.drawMarkers(ScatterSeries.java:479) at com.sencha.gxt.chart.client.chart.series.ScatterSeries.drawSeries(ScatterSeries.java:224)
-
19 Dec 2012 9:24 AM #4
Did you try the example source from the example I listed? Is it possible that this is due to some other misconfiguration? Which version are you using? From the link, I can be pretty sure that this works at least in 3.0.1 and above.
The one difference I can see after 3.0.1 is that there may have been a bug related to hiding shadows. It may help then to enable shadows for the chart. But until I know what version you are using and have an example to reproduce, I'm just guessing.


Reply With Quote