Page 1 of 1

Show multiple Custom Left and Right axis on Tchart

Posted: Mon Oct 12, 2015 1:14 pm
by 9526439
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.

Re: Show multiple Custom Left and Right axis on Tchart

Posted: Tue Oct 13, 2015 3:06 pm
by Christopher
Hello,

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

http://www.teechart.net/support/viewtop ... 56&p=43274

Re: Show multiple Custom Left and Right axis on Tchart

Posted: Thu Oct 15, 2015 7:36 am
by 9526439
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.

Re: Show multiple Custom Left and Right axis on Tchart

Posted: Thu Oct 15, 2015 7:46 am
by narcis