Set Custom axis for newline

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Avatar
Newbie
Newbie
Posts: 26
Joined: Mon Mar 22, 2004 5:00 am
Location: Calgary Canada
Contact:

Set Custom axis for newline

Post by Avatar » 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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Dec 28, 2004 11:50 pm

Hi Ed,

you should be able to assign a custom axis to each series using similar code to the following :

Line3.CustomVertAxis = Me.Axis1
Line3.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom

Post Reply