Hi,
I am using xamchart to display multiple series on the same graph. But at some points in different series, I dont have any data or NAN (Not a number ) Data to display which is halting my GUI. Is there any such feature so that i can display broken series. Please suggest solution.
Thanks.
You could try setting those DataPoint's NullValue property to true.
One way to approach it is to make sure you are using nulls rather than double.nan.
For a line series this:
var hasNaNs = from val in Enumerable.Range(0, 20) select new { Label = val.ToString(), Value = val % 5 == 0 ? double.NaN : val }; DataContext = from item in hasNaNs select new { Label = item.Label, Value = double.IsNaN(item.Value) ? null : new double?(item.Value) };
Results in this plot:
Let me know if this helps.
-Graham