1
Vote

WinRT XAML Toolkit Scatter Series

description

I've got real-time data which I want to plot in a Windows 8.1. Store App. I would like to use the WinRT XAML Toolkit. In my real-time data as well the dependent (y) values as the independent (x) values are double values. Since I can't plot a graph with the help of line series I tried to plot the data points with Scatter Series. Could anyone give a hint how to connect the data points to a line?

Best regards
Andrea

comments

xyzzer wrote Apr 11, 2016 at 11:13 PM

I don't recommend the Chart control for real time data. It works OK for 10-50 data points that update once every second or two. I'd check out Win2D instead.

gpunkt2016 wrote Apr 12, 2016 at 7:24 AM

Hello xyzzer,
many thanks for your reply. I had a look at Win2D. I found a tutorial which is interesting to get a first impression of what Win2D can be used for. How to draw a line I found in the tutorial but how to put the line in an appropriate cartesian chart I couldn't find. Could you give a hint for this?

Regards Andrea

xyzzer wrote Apr 12, 2016 at 8:45 AM

gpunkt2016 wrote Apr 12, 2016 at 12:37 PM

Hello xyzzer,
many thanks for your example. It is really great and could be used as a very good guide for my needs.
My I ask a further question? How can I get x- and y-axis into the plot?

Regards
Andrea

xyzzer wrote Apr 12, 2016 at 3:55 PM

I added some simple arrows to the sample.

gpunkt2016 wrote Apr 13, 2016 at 7:04 AM

Hello xyzzer,
thank you very much for your help. It is a wonderful and all about helpful example to learn how Win2D works.

Thanks
Andrea