Page 1 of 1

Need top and right axis exactly like bottom and left axis

Posted: Fri Jan 26, 2007 2:36 pm
by 5892666
I need the right (vertical) axis ticks and numbering to appear exactly as on the left side, and also need the top (horizontal) axis ticks and numbering to appear exactly as on the bottom. This is for a simple x-y line graphing. On the TChart editor I select top (or right) and enable Visible. Neither top axis Visible nor right axis Visible do anything to the chart.

How can I have top and right axis?

VCL/TChart 5.xx

keith

Posted: Fri Jan 26, 2007 2:55 pm
by narcis
Hi keith,

This is because you need to associate those axes to some series, for example:

Code: Select all

  Series1.VertAxis := aBothVertAxis;
  Series1.HorizAxis := aBothHorizAxis;
You can also do this at design-time in the chart editor at Series\General tab.

Re: Need top and right axis exactly like bottom and left axis

Posted: Mon Sep 07, 2009 5:01 pm
by 10045905
I have a similar problem with a chart with 3 series. 2 series are stacked bar charts and one is a line graph.
The left axis scale is set automatically and accomodates the minimum/maximum values of the 3 series.
I want the right axis to be exactly the same as the left axis but with the tick marks and numbers to the right of the axis so that the horizontal grid lines join the relevant marks.
I can find no way of doing this at design time - the axes options are not linked to individual series and setting the VISIBLE attribute has no effect.
How do I do it ?

Re: Need top and right axis exactly like bottom and left axis

Posted: Tue Sep 08, 2009 7:43 am
by narcis
Hi RichTat,

At designtime you have to open the chart editor and do the following for all the series in the chart:

1. Select on series in editor's main dialog.
2. Go to the Series tab.
3. Go to the General tab.
4. At the Vertical Axis combo box select Left and Right.

Hope this helps!

Re: Need top and right axis exactly like bottom and left axis

Posted: Tue Sep 08, 2009 8:57 am
by 10045905
Yes thank you that has worked.