RealTimeGraphX
RealTimeGraphX copied to clipboard
Is there any way to set a minimum X range?
I am setting the maximum X range to - for example - 10s.
Controller = new WpfGraphController<TimeSpanDataPoint, DoubleDataPoint>();
Controller.Range.MaximumX = TimeSpan.FromSeconds(10);
Controller.Range.AutoY = true;
The X range starts at zero and expands up to 10s as data arrives.
Is there any way to set the X range to 10s from the beginning?
I would prefer the graph to fill from the left until the first 10s is full, and then start scrolling left.
It would also be OK if the data started at the right and scrolled from the beginning.
I have implemented the feature that I wanted on my own fork, with a new enum property in the GraphRange class.
The enum has the values
- stretchData
- slideInFromRight
- fillFromLeft
The actual logic is implemented in GraphController.Render(), at the point where min_x and max_x are determined.
From my point of view this issue is resolved.