Page 1 of 1

grid with 2 custom x-axes

Posted: Thu Feb 17, 2005 10:03 pm
by 8725765
How can I assign a separate grid to two separate Y-axis? I have a chart that has a custom Y-axis from 80-100% and the default Y-Axis from 0-80%. The first Y-Axis also has a custom X-Axis. But the grid of both chart areas reach over the whole chart. How can I change this to have one grid in the lower part (80-100%) that will only cover 80-100% and the other grid cover 0-80% of the Y-Area?

Posted: Fri Feb 18, 2005 9:46 am
by narcis
Hi Joachim,

You can do something like this:

Code: Select all

			colorGrid1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Bottom;
			colorGrid1.CustomVertAxis= axis1;

			colorGrid2.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
			colorGrid2.CustomHorizAxis= axis2;

			tChart1.Aspect.ApplyZOrder = false;
Where axis1 is your vertical custom axis from 80-100% and axis2 is your custom bottom axis.