Auto Pan Oxyplot DateTimeAxis

Oystein Bjorke 5 years ago updated by dmacjam 5 years ago 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...?
CodePlex