Auto Pan Oxyplot DateTimeAxis

Oystein Bjorke il y a 10 ans mis à jour par dmacjam il y a 9 ans 1
This discussion was imported from CodePlex

lolcodez wrote at 2014-07-23 22:41:

This is a continuation of the question posted here: Auto-scroll/pan for real-time data.

While the posted example appears to work for a LinearAxis, it doesn't work for a DateTimeAxis.
The pan steps are far too large, jumping extremely long distances.
var now = DateTimeAxis.ToDouble(DateTime.Now);
data.Points.Add(new DataPoint(now, yValue));

if (data.Points.Count > 3)
{
    //panStep is -6045706.002716762
    double panStep = timeAxis.Transform(timeAxis.Offset - 1); 
    timeAxis.Pan(panStep);
}
Q: What is the correct was to autopan a DateTime axis?

lolcodez wrote at 2014-07-25 21:32:

Bump?

lolcodez wrote at 2014-08-08 21:43:

Bump...?