Using TeeChart for .NET 2010
I'm plotting a line graph and would like to position the bottom and left axes so that they intersect the chart over the centre and form a cross.
I've achieved what is in the attached image by positioning the axes with the following:
Code: Select all
chart1.Axes.Bottom.PositionUnits = PositionUnits.Percent;
chart1.Axes.Bottom.RelativePosition = 50;
chart1.Axes.Left.PositionUnits = PositionUnits.Percent;
chart1.Axes.Left.RelativePosition = 50;
- The axes labels are placed with the axes and I can't see a way to position them to the edge of the chart, where they would be if i hadn't repositioned the axes
- The panel has left some space to the left and bottom of the chart, presumably for where the axes were originally positioned. This makes the chart offset and is causing asthetic issues in my application.
I'm wondering, are there any remedies for the issues above? Or more significant, is there a better way to position the axes in the center (at 0)?
I'm thinking that this type of graph isn't too uncommon and I may be missing something.
Thank you
Jamie