royben/RealTimeGraphX

Howto Map data?

Closed this issue · 2 comments

Hi! Is there a implemented Data mapper?

I have a ObservableCollection _actValue
and the ValueModel contains:
public DateTime _dateTime;
public double _value;

I add every 1ms one datapoint. is it possible to map the data?

thanks ### Philipp

  1. It is unlikely that you are adding a data point every 1 millisecond. The runtime engine is just not that accurate.
  2. I don't think that DateTime even supports 1 millisecond resolution.

you should prepare your data in the form of two lists.
one of type TimeSpan and one of type double.
they need to be equal in length.
Then push them into the controller.

Thanks for the answer..