Need top and right axis exactly like bottom and left axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
keith
Newbie
Newbie
Posts: 7
Joined: Thu Sep 05, 2002 4:00 am

Need top and right axis exactly like bottom and left axis

Post by keith » Fri Jan 26, 2007 2:36 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jan 26, 2007 2:55 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

RichTat
Newbie
Newbie
Posts: 11
Joined: Tue Jul 03, 2007 12:00 am
Contact:

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

Post by RichTat » Mon Sep 07, 2009 5:01 pm

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 ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

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

Post by Narcís » Tue Sep 08, 2009 7:43 am

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

RichTat
Newbie
Newbie
Posts: 11
Joined: Tue Jul 03, 2007 12:00 am
Contact:

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

Post by RichTat » Tue Sep 08, 2009 8:57 am

Yes thank you that has worked.

Post Reply