tChart - Multi axis separation

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
dams77
Newbie
Newbie
Posts: 5
Joined: Wed Jun 09, 2004 4:00 am

tChart - Multi axis separation

Post by dams77 » Fri Oct 05, 2007 8:31 am

Dear all,

I have a tChart with several series of bars. Each of them are displayed on its own axis, everything works fine.

But these bars seem to be displayed "in the air". I would like to put a black bar at the bottom of each axis to seperate series.

I know that's it's working with another tChart with Lines series we have in our application.

What can I do ?

Thank you very much

Damien

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 Oct 05, 2007 8:38 am

Hi Damien,

You could use either custom horizontal axes for each series or ColorLine tools. You'll find more information about both features in the features demo available at TeeChart's program group.

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

dams77
Newbie
Newbie
Posts: 5
Joined: Wed Jun 09, 2004 4:00 am

Post by dams77 » Fri Oct 05, 2007 9:36 am

Hi Narcìs,

According to the Help file, I've tried something like that:

Steema.TeeChart.Axis ax;
tChartHisto.Axes.Custom.Add(ax = new Steema.TeeChart.Axis());
ax.Horizontal = true;
ax.RelativePosition = axisPower.StartPosition;
tChartHisto.Series[0].HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Custom;
tChartHisto.Series[0].CustomHorizAxis = ax;
ax.AxisPen.Color = Color.Black;
ax.AxisPen.Width = 2;

...but it's not working.

Could you help me ?

Thanks.

Damien

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 Oct 05, 2007 9:54 am

Hi Damien,

Try removing this line:

Code: Select all

tChartHisto.Series[0].HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Custom; 
If this doesn't help please send us a simple example project we can run "as-is" to reproduce the problem here.

You can either post your files at news://www.steema.net/steema.public.attachments newgroup or at our upload page.

Thanks in advance!
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

dams77
Newbie
Newbie
Posts: 5
Joined: Wed Jun 09, 2004 4:00 am

Post by dams77 » Fri Oct 05, 2007 10:02 am

Muchas gracias, Narcís !

It's now working very well. 8)
Appreciate your prompt help.

Damien

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 Oct 05, 2007 10:22 am

Hi Damien

You're very welcome! I'm glad to hear that helped ;).
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

Post Reply