SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


I’m struggling to get SciChart to draw a graph where both X and Y axes have values which go up and down.
ie, the data values in the horizontal (X) axes goes backwards.
I tried to attach a photo previously but the forum locked up. If you imagine the outline of a banana pointing to 2 o’clock , that is how the data would look when plotted.

  • You must to post comments

Hi Andy,

Try using UnsortedXyDataSeries as a data-source. We have a demo of this under our Silverlight examples suite here. Make sure you click on Lissajous as the data-source.

Best regards,

  • ajt
    Ok thanks, It's working better now. However, I'm having trouble getting it to zoom extents... I append all the data and call this from a button:
            private void btnZoomExtents_Click(object sender, RoutedEventArgs e)
                sciChart.XAxis.AutoRange = AutoRange.Once;
                sciChart.YAxis.AutoRange = AutoRange.Once;
    However, it only extends the X axis to include all data, the Y axis picks up a tiny portion of the range. I've removed the chart modifiers and it still wont range the Y axis properly
                <!-- Specify interactivity modifiers -->
                        <!--<SciChart:ZoomPanModifier XyDirection="XDirection"/>
                        <SciChart:ZoomExtentsModifier XyDirection="XDirection" ExecuteOn="MouseDoubleClick"/>-->
                        <SciChart:AnnotationCreationModifier x:Name="annotationCreation" AnnotationCreated="OnAnnotationCreated" />
    Any ideas ? Maybe I can specify the zoom manually ? Regards, Andy
  • ajt
    Am having real difficulty attaching images by the way - hopefully this 92Kb jpg will upload..
  • Andrew Burnett-Thompson
    Hi there, Ok, this should just work. I would suggest, set the ResamplingMode=None on the FastLineRenderableSeries. If that doesn't solve it please send over a full code example and we can investigate. You can attach code by the way to the forums, just zip it up. Also please be sure not to include License Keys or sensitive data in your zips. Best regards, Andrew
  • You must to post comments

Update (SciChart v3.0)

SciChart v3.0 now supports auto-detection of sorted and unsorted data. Please see our SciChart v3.0 Release Notes for more information:

3. UnsortedXyDataSeries is now Obsolete

  • XyDataSeries now detects whether data is sorted or unsorted.
  • No need to specify if data is unsorted, however performance is still better if it is.
  • HitTest and resampling algorithms are changed accordingly.

This is achieved with the default ResamplingMode of ResamplingMode.Auto.

Also note our Performance Tips & Tricks article, which states:

IMPORTANT! Ensure Data is Sorted in the X-Direction

The number one fundamental for high performance in SciChart is to ensure that data is sorted in the X-Direction increasing. As of SciChart 3.0, this is not mandatory, but several key algorithms such as HitTest, Indexing and Resampling require that data is sorted in the X-Direction for optimum performance. With unsorted data, SciChart will still render, but it will do so using vastly inferior algorithms. The difference is tens of millions of points with sorted X-Data and a few hundred thousand without. We recommend if you can, sort đŸ™‚

Best regards,

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.