not able to set right axis using the following code
Posted: Fri Oct 06, 2006 2:31 pm
enclosing 2 files t1.tee & t2.tee
t2.tee is the base file in which 4 series are created of each bar type #
when i executed the below code i am getting t1 file .. ( which is nothing 2
graph types shown with 2 different axis but only axis is shown ,right axis
is not been able to set ... )
the same code worked fine with earlier version of the teechart . now i am
using version 7.1.1
posted the tee files
how can we set the right axis
below is the code segement ;
Dim j As Integer
j = TChart1.SeriesCount / 2
For i = 0 To j - 1
TChart1.ChangeSeriesType i, scBar
TChart1.Series(i).VerticalAxis = aLeftAxis
Next i
For i = j To TChart1.SeriesCount - 1
TChart1.ChangeSeriesType i, scLine
TChart1.Series(i).asLine.LinePen.Width = 3
TChart1.Series(i).VerticalAxis = aRightAxis
Next i
TChart1.Axis.Left.Automatic = True
TChart1.Axis.Right.Automatic = True
t2.tee is the base file in which 4 series are created of each bar type #
when i executed the below code i am getting t1 file .. ( which is nothing 2
graph types shown with 2 different axis but only axis is shown ,right axis
is not been able to set ... )
the same code worked fine with earlier version of the teechart . now i am
using version 7.1.1
posted the tee files
how can we set the right axis
below is the code segement ;
Dim j As Integer
j = TChart1.SeriesCount / 2
For i = 0 To j - 1
TChart1.ChangeSeriesType i, scBar
TChart1.Series(i).VerticalAxis = aLeftAxis
Next i
For i = j To TChart1.SeriesCount - 1
TChart1.ChangeSeriesType i, scLine
TChart1.Series(i).asLine.LinePen.Width = 3
TChart1.Series(i).VerticalAxis = aRightAxis
Next i
TChart1.Axis.Left.Automatic = True
TChart1.Axis.Right.Automatic = True