Set Custom axis for newline
Posted: Tue Dec 28, 2004 10:45 pm
My Chart has six vertical axes from left to right they are Custom0 Custom1 Left Right Custom2 Custom3. The user selects a chart series and each series is set to a specific axis. To obtain, .StartPos.Y, EndPos.Y to the proper scale from ‘NewLine’ event I have to set the ‘Newline’ axis. This works for Left and Right but not for Custom.
Private Sub DrawLinez_NewLine(ByVal sender As Steema.TeeChart.Tools.DrawLine) Handles DrawLinez.NewLine
Select Case DeclineSeries
Case 0 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 1 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 2 : sender.Series.VertAxis = Styles.VerticalAxis.Left
Case 3 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 4 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 5 : sender.Series.VertAxis = Styles.VerticalAxis.Right
End Select
The only option is Custom and Custom(0) and Custom0 don’t work. I don’t know where to go next. Solution for VB.net
Thanks
Ed
Private Sub DrawLinez_NewLine(ByVal sender As Steema.TeeChart.Tools.DrawLine) Handles DrawLinez.NewLine
Select Case DeclineSeries
Case 0 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 1 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 2 : sender.Series.VertAxis = Styles.VerticalAxis.Left
Case 3 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 4 : sender.Series.VertAxis = Styles.VerticalAxis.Custom
Case 5 : sender.Series.VertAxis = Styles.VerticalAxis.Right
End Select
The only option is Custom and Custom(0) and Custom0 don’t work. I don’t know where to go next. Solution for VB.net
Thanks
Ed