Sparse data and TreatNulls?
Posted: Tue Apr 21, 2009 11:23 pm
I've got a chart displaying multiple series. The area style for each is set for CustomStack.Stack. Each series contains multiple subranges of valid values. I would like to have only those values graphed. So I might have the following data for one series.
{0, 1}
{1, 3}
{2, 2}
{10, 4}
{11, 2}
{12, 3}
{13, 3}
{22, 2}
{23, 4}
Y == 0 is the min for the y axis, and gaps in data correspond to points where y == 0. There will be something on the order of 10 non-represented "zero" points for each non-zero point.
And there will be multiple series, each with sparse data, but the gaps may not align on the x axis.
These points are not data bound, but rather they are added at runtime using series.Add(x,y).
Plus the transitions to/from zero are desired to be vertical, no slope, though this is not really important due to the data granularity.
Any suggestions other than to fill in the gaps with points where Y == 0? It seems that TreatNullsStyle.DoNotPaint does not help here.
{0, 1}
{1, 3}
{2, 2}
{10, 4}
{11, 2}
{12, 3}
{13, 3}
{22, 2}
{23, 4}
Y == 0 is the min for the y axis, and gaps in data correspond to points where y == 0. There will be something on the order of 10 non-represented "zero" points for each non-zero point.
And there will be multiple series, each with sparse data, but the gaps may not align on the x axis.
These points are not data bound, but rather they are added at runtime using series.Add(x,y).
Plus the transitions to/from zero are desired to be vertical, no slope, though this is not really important due to the data granularity.
Any suggestions other than to fill in the gaps with points where Y == 0? It seems that TreatNullsStyle.DoNotPaint does not help here.