Show multiple Custom Left and Right axis on Tchart
Posted: 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.
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.