Hi,
Does anyone know if it is possible to achieve the following with the active X control.
http://www.teechart.net/support/viewtopic.php?t=2350
Thanks
James
Changing Axis Labels
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi James,
You could try using available Wind Rose series or bar series and setting different label style for both vertical axes (left and right):
You could try using available Wind Rose series or bar series and setting different label style for both vertical axes (left and right):
Code: Select all
Private Sub Form_Load()
TChart1.Axis.Left.Labels.Style = talValue
TChart1.Axis.Right.Labels.Style = talText
With TChart1.Series(0)
.asBar.BarStyle = bsArrow
.VerticalAxis = aBothVertAxis
.Add 90, "N", clTeeColor
.Add 180, "W", clTeeColor
.Add 270, "S", clTeeColor
.Add 360, "E", clTeeColor
End With
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Excellent. Works great.
I just used the following code to add the directions to the axis.
Chart1.Axis.Left.Labels.Add 0, "N"
Chart1.Axis.Left.Labels.Add 45, "NE"
Chart1.Axis.Left.Labels.Add 90, "E"
Chart1.Axis.Left.Labels.Add 135, "SE"
Chart1.Axis.Left.Labels.Add 180, "S"
Chart1.Axis.Left.Labels.Add 225, "SW"
Chart1.Axis.Left.Labels.Add 270, "W"
Chart1.Axis.Left.Labels.Add 315, "NW"
Chart1.Axis.Left.Labels.Add 360, "N"
Thanks again.
James
I just used the following code to add the directions to the axis.
Chart1.Axis.Left.Labels.Add 0, "N"
Chart1.Axis.Left.Labels.Add 45, "NE"
Chart1.Axis.Left.Labels.Add 90, "E"
Chart1.Axis.Left.Labels.Add 135, "SE"
Chart1.Axis.Left.Labels.Add 180, "S"
Chart1.Axis.Left.Labels.Add 225, "SW"
Chart1.Axis.Left.Labels.Add 270, "W"
Chart1.Axis.Left.Labels.Add 315, "NW"
Chart1.Axis.Left.Labels.Add 360, "N"
Thanks again.
James