Custom Y Axes Positions to Clearly Show Labels
Posted: Sun Jun 21, 2009 4:00 am
I need to place custom axes and their labels without overlapping with each other. Can you please suggest something?
Here is the code that shows my problem.
Here is the code that shows my problem.
Code: Select all
Public Class Form1
Dim myChart As Steema.TeeChart.TChart
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.AutoScroll = True
myChart = New Steema.TeeChart.TChart
myChart.Dock = DockStyle.Top
myChart.Height = 300
Me.Controls.Add(myChart)
Dim myFastLine As New Steema.TeeChart.Styles.FastLine(myChart.Chart)
'myFastLine.DrawAllPoints = False
myChart.Legend.Visible = False
myChart.Aspect.View3D = False
myFastLine.FillSampleValues(1800)
'custom axis
For i As Integer = 0 To 5
Dim myFastLine2 As New Steema.TeeChart.Styles.FastLine(myChart.Chart)
myFastLine2.FillSampleValues(900)
Dim vAxis As New Steema.TeeChart.Axis(myChart.Chart)
myFastLine2.CustomVertAxis = vAxis
myChart.Chart.Axes.Custom.Add(vAxis)
'vAxis.OtherSide = True
vAxis.RelativePosition = -2
vAxis.MaximumOffset = 20
vAxis.MinimumOffset = 10
vAxis.Title.Text = "Series " & i
vAxis.Title.Angle = 90
Next
End Sub
End Class