benjaminrupp wrote at 2011-10-19 15:57:
I am trying to add three y-Axis to a chart Model. But if I display the chart at least two axis are overlapping depending on the axis.Position.
Is there any possibility to relocate an axis?
objo wrote at 2011-10-19 19:44:
hi Benjamin, see the "AxesDemo" in the WPF solution. I will add the demo to the ExampleLibrary shortly, then you can also see it in the Silverlight and Windows Forms project.
The "Position" property of the axes sets the position of the axis to left, right, top or bottom of the plot area.
The axes also have "StartPosition" and "EndPosition" properties - these fractions define where the axis starts and ends in the left/right/top/bottom axis areas.
benjaminrupp wrote at 2011-10-20 08:20:
please see the example of the link below. I am looking for a possibility to display axis like this. At the bottom of the chart there are two axis below each other. If I render the same chart in OxyPlot, then the two axis are overlapping.
objo wrote at 2011-10-20 22:00:
Thanks for the link. I think it is a good idea! (but I am not sure if designers like this kind of look...)
I suggest a 'PositionOffset' property to be added to the Axis class - this will move the position of the axis vertically for a horizontal axis and v.v. It would also be great to have auto positioning of the axis - but this will require more passes in the measure/arrange algorithm.
I add the suggestion to the issue tracker. Also, feel free to create a patch on this feature!
Customer support service by UserEcho