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
- ajt asked 11 years ago
- You must login 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,
Andrew
- Andrew Burnett-Thompson answered 11 years ago
-
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 -
Am having real difficulty attaching images by the way - hopefully this 92Kb jpg will upload..
-
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 login to post comments
I am considering applying server-side licensing for my javerScript application.
In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)
However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)
I wonder if there is a sample code implemented in C++ for server-side licensing.
Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?
- Andrew Burnett-Thompson answered 10 years ago
- You must login to post comments
Please login first to submit.