Under review

Collapse part of Axis?

Oystein Bjorke 5 years ago • updated by anonymous 5 years ago 2
This discussion was imported from CodePlex

Roigaard wrote at 2013-09-03 13:43:

Does anyone know if it is possible, in lack of better words, to collapse parts of an axis, more specifically a DateTimeAxis, in order to bring segments of the graph closer together?

Example (for sake of argument, not real world):
I am mapping a velocity for a moving object as a function of a datetime. At certain points in the lifetime of the observation, the object has no velocity (not just velocity 0, but no velocity). Lets say that the period mapped is 1 day (24 hours from midnight to midnight). In the middle 6 hours (0900 hours to 1500 hours), there is nothing to map, which leaves a wide gap in the graph between the first and the second segment of the graph with nothing in it. I would like to draw those two parts together by "collapsing" the timeaxis, such that 09 hours and 1500 hours on the axis is only seperated by some symbol (e.g. curly lines or dots).

This could of course be accomplished by using two different Plots side by side, but I would like to use the same graph.

objo wrote at 2013-09-03 13:49:

I think this is in the issue list
http://oxyplot.codeplex.com/workitem/8903
It is not possible with the standard axes, but should not be too hard to implement (need to change the transform methods)
CodePlex
Is there any progress on this feature?
I faced the task to collapse weekends on DateTimeAxis to avoid gaps in graphs. Maybe there are some solutions.
It would be handy to customize such scale breaks. E.g. from Friday 20:00 to Monday 8:00 (for excluding weekends) or from 0:00 to 8:00 (for exluding nights).

Under review
The issue about scale breaks is now at issue #7.
There is also an issue on removing weekends from DateTimeAxis, see issue #193.
Sorry, I am not aware on any progress on these issues.