Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
ScatterLineSeries significantly slower than LineSeries
posted

I'm trying to plot roughly a million data points (x,y) (floats) into a xamDataChart. When using a CategoryXAxis and LineSeries, the performance is excellent and zooming is smooth.

When using a NumericXAxis and a ScatterLineSeries, I am experiencing a significant loss in performance. This can be reproduced by  adapting the "BindingHighVolumeData" sample.

Also, I am experiencing rendering artifacts when zooming deep into the graph:

 

Thes issues do not occur when using a CategoryXAxis.

I am currently evaluating to buy Infragistics DV for Silverlight for its stellar performance. However, I do need a precise x,y plot. As far as I understand CategoryXAxis will align my data points with a constant x spacing, correct?

Why is the performance of ScatterLineSeries so much worse? Is there a recommended way to draw a high performance xy line plot?

Parents Reply
  • 30692
    Verified Answer
    Offline posted in reply to Johannes

    I think that OrderedNumericXAxis would be an excellent feature request: http://devcenter.infragistics.com/Protected/RequestFeature.aspx

    It seems to me like it would be a good idea to add it to the product with high priority as this scenario has cropped up before, but many factors would affect how soon it would make it into the product. You could email productmanager@infragistics.com if you would like to discuss the matter further. CategoryDateTimeXAxis was designed to suit this scenario with DateTime data, but it would be quite useful to have a generalized x axis (and y axis for that matter) that performed this function for scatter plots. The more constraints the chart it allowed to place on the data, the more performance on that data will approach the performance of the CategoryXAxis.

    Also, we are always looking to further improve the performance of the generalized scatter case. So I'll take a look at your sample, were it seems there might be a rendering bug, and let you know if there is anything you can do in the application side to speed things up, or that we can do to improve the performance.

    One other thing I can mention is that if you use a fixed axis labels extent for the y axis, this can often help performance of initial display and zooming. If you allow the labels to automatically adjust the width of the label area this can often result in the chart having to be rerendered to accomodate. You can pick a fixed axis extent like this:

    <ig:NumericYAxis.LabelSettings>

    <ig:AxisLabelSettings Extent="50" />

    </ig:NumericYAxis.LabelSettings>

    I'll get back to you with a bug number for the rendering artifacts, as I suspect it must be an issue with ScatterLineSeries.

    Hope this helps!

Children