views:

21

answers:

1

Hi, I'm working on a diagnostic tool and receives data every 25 ms. I need this data to be drawn in my chart using a lineSeries. I'm using a a wpf chart with a lineSeries which I bind in xaml to an ObservebleCollection.

The problem is that I need the collection needs to contain atleast 1600 datapoints before starting to remove them at the front.

I understand that 25 ms is a short tiem then it comes to drawing in wpf. Dose anyone have any solution to my problem?

Regards

A: 

I'd suggest you use a custom made drawing routine utilizing WritebleBitmap instead of shapes and draw your lines in a fixed area one segment at a time without any scrolling. The, when you reach 1600 points at the right side of your plot area, start over. Maybe some visual indicator (like vertical line or something) would help perception.

I don't think there any charting libraries targeted at updating 1600 point line every 25ms.

Alan Mendelevich
Okey, thank you. I will give it a try.
lindberg00