Auto Pan Oxyplot DateTimeAxis

Oystein Bjorke 5 jaar geleden • bijgewerkt door dmacjam 4 jaar geleden 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); 
Q: What is the correct was to autopan a DateTime axis?

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


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