Show multiple Custom Left and Right axis on Tchart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Show multiple Custom Left and Right axis on Tchart

Post by amol » Mon Oct 12, 2015 1:14 pm

Hi steema Support,

we have some issues related to Custom Axis of Tchart given as below,

Show multiple Left and Right axis on Tchart .

The code are using for Left Axis,


this.axis1 = new Steema.TeeChart.Axis(this.tChart1.Chart);
this.tChart1.Axes.Custom.Add(this.axis1);
this.axis1.AxisPen.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)),((System.Byte)(192)),((System.Byte)(0)));

this.axis1.Labels.Font.Shadow.Visible = false;
this.axis1.Labels.Shadow.Visible = false;
this.axis1.OtherSide = false;
this.axis1.Title.Font.Shadow.Visible = false;
this.axis1.Title.Shadow.Visible = false;

this.axis1.Horizontal = false;
this.axis1.OtherSide = false;

tChart1.Axes.Custom[0].RelativePosition = -3;
tChart1.Axes.Left.RelativePosition = 2;

lineSeries1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
lineSeries2.CustomVertAxis = axis1;


But how to know which value is to set in RelativePosition property and Panel margin dynamically if we are creating multiple custom axis.

Thanks in advance.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Show multiple Custom Left and Right axis on Tchart

Post by Christopher » Tue Oct 13, 2015 3:06 pm

Hello,

You should be able to use the technique specified in the similar question here:

http://www.teechart.net/support/viewtop ... 56&p=43274
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Show multiple Custom Left and Right axis on Tchart

Post by amol » Thu Oct 15, 2015 7:36 am

Thanks for reply,


But code in the link that u have provided is in VB.net language.
Please provide link in which code is written in C# language.

Thanks in advance.

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

Re: Show multiple Custom Left and Right axis on Tchart

Post by Narcís » Thu Oct 15, 2015 7:46 am

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