If you want to display the elapsed time as normal decimal values rather than in "days hour:minute:seconds" notation your task is relatively easy when you take advantage of a LinearAxisTransformation. This allows to multiply or divide numbers by a constant "scale" factor and to shift them by a constant "offset" - we don't need the latter one.
Many thanks, yes this is my task.
Unlike working with the LogAxisTransform and AutoScaleAxisTransform do not set the AxisIndexX of the series to the index of the x axis because we only want to transform the axis mark values, but not the data x values.
Thanks! This was the point I missed. I already had an axis transformation but bound the AxisIndexX.
Now it is working close to what I want, there is only one issue I cannot resolve:
Play with the attached demo to understand the principle of this idea.
- start your demo
- zoom in
- change the unit
result: it jumps out of the zoom
My application case: I let a measurement run today and something happened 5 hours ago, I want to zoom in to this time and since then the time scale can be minutes, I change the unit to minutes.
So I want somehow prevent that the unit change leaves the zoom, or a way to stare the zoom to reset it after the AxisTransformationScale was changed.
Can this be done and if yes, how?