More than two Y-axis

Oct 19, 2011 at 1:57 PM


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?

Best regards


Oct 19, 2011 at 5:44 PM

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. 

Oct 20, 2011 at 6:20 AM
Edited Oct 20, 2011 at 6:23 AM

Dear Objo, 

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.

Oct 20, 2011 at 8:00 PM

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!