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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

Hi,
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.
Regards,
Andy

  • You must to post comments
0
0

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,
Andrew

Images
  • 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.AnimateZoomExtents(TimeSpan.FromMilliseconds(500));
                sciChart.XAxis.AutoRange = AutoRange.Once;
                sciChart.YAxis.AutoRange = AutoRange.Once;
                sciChart.ZoomExtents();
            }
    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:SciChartSurface.ChartModifier>
                    <SciChart:ModifierGroup>
                        <!--<SciChart:ZoomPanModifier XyDirection="XDirection"/>
                        <SciChart:ZoomExtentsModifier XyDirection="XDirection" ExecuteOn="MouseDoubleClick"/>-->
                        <SciChart:AnnotationCreationModifier x:Name="annotationCreation" AnnotationCreated="OnAnnotationCreated" />
                        <SciChart:XAxisDragModifier/>
                        <SciChart:YAxisDragModifier/>
    
                    </SciChart:ModifierGroup>
    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
    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
0
0

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,
Andrew

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.