Page 1 of 1

custom right axis

Posted: Tue Jun 05, 2012 8:17 am
by 16559682
I have a stacked chart (line series), horizontally divided in two parts and the default/builtin right axis is already used for the top portion of the chart.

Is it possible to add a custom axis on the right side of the chart?

BTW, I have already read tutorial 4 about axis design ;)

Re: custom right axis

Posted: Tue Jun 05, 2012 1:54 pm
by yeray
Hi Christian,

Yes, you can add a custom axis at the right side with the OtherSide property:

Code: Select all

  (Chart1.CustomAxes.Add as TChartAxis).OtherSide:=true;
And always keep in mind that an axis, to be shown, needs a series with values associated. For example:

Code: Select all

  Chart1[0].CustomVertAxis:=Chart1.CustomAxes[0];