The FillDataSeries method will populate the series from a .net DataSet object. The X axis contains numeric values that represent grouped direction categories and the Y axis contains numeric values representing the percentage of records for each category. The series are speed ranges.

However, my chart results in gaps in the columns.

I’m not sure what causes this? Do the Series need to be zero filled for categories that have no records?

Thanks for your question. Generally speaking, SciChart requires that all series have the same set of XValues. Of course, series will be drawn even if they don’t have, but in this case you will lose some functionality such as Rollover and stacked series.

If a series doesn’t have value at a certain point (you need a gap at this point), there is a special value reserved for such cases. You should just put double.NaN as Y value at that point.

So in your case, you should ensure that all the series have the same XValues and append double.NaNs as Y values where you want to skip a point.