My Code goes like this:
Chart.Legend.Visible=true
Chart.Height=400
Chart.Width=600
Chart.Panel.Gradient.Visible=true
Chart.Header.Text(0)="Stocks"
Chart.Header.Font.Bold=True
Chart.Axis.Bottom.Title.Caption="Product Name"
Chart.Axis.Bottom.Title.Font.Bold=True
Chart.Axis.Bottom.Labels.Angle=90
Chart.Axis.Left.Title.Font.Bold=True
Chart.Axis.Left.Title.Caption="Amount"
And as I have two series in the Chart, I tried to add these
Chart.Axis.Right.Title.Font.Bold=True
Chart.Axis.Right.Title.Caption="VALUE"
but it seems not function
What I mean is I wanna have two Vertical Rulers, how can i do this?
Thank you in advance
Question about Axis
Hi Richard,
have you set the verticalAxis property to Both ? :
Chart.Series(0).VerticalAxis = aBothVertAxis
have you set the verticalAxis property to Both ? :
Chart.Series(0).VerticalAxis = aBothVertAxis
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Richard,
to see the both rulers, you must asign which one will use each Series. As I do before, for example :
TChart1.Series(0).VerticalAxis = aLeftAxis
TChart1.Series(1).VerticalAxis = aRightAxis
But to see the scales you must enter before the data to the Series or specify the Min and Max for the Axis :
to see the both rulers, you must asign which one will use each Series. As I do before, for example :
TChart1.Series(0).VerticalAxis = aLeftAxis
TChart1.Series(1).VerticalAxis = aRightAxis
But to see the scales you must enter before the data to the Series or specify the Min and Max for the Axis :
Code: Select all
Private Sub Form_Load()
With TChart1
.Aspect.View3D = False
.AddSeries scLine
.AddSeries scLine
.Series(0).VerticalAxis = aLeftAxis
.Series(1).VerticalAxis = aRightAxis
.Axis.Left.SetMinMax 0, 100
.Axis.Left.Increment = 10
.Axis.Right.SetMinMax 0, 100
.Axis.Right.Increment = 10
End With
End Sub
Pep Jorge
http://support.steema.com
http://support.steema.com