Box position incorrect if bottom-axis inverted
Posted: Fri May 23, 2008 6:48 am
Greetings,
I tried to draw a box with bottom-axis inverted.
But the position of the box seems incorrect. Would you please help to check this? Thanks!
I tried to draw a box with bottom-axis inverted.
But the position of the box seems incorrect. Would you please help to check this? Thanks!
Code: Select all
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
mDrawBox(TChart1, False)
mDrawBox(TChart2, True)
End Sub
Private Sub mDrawBox(ByRef tchart As Steema.TeeChart.TChart, ByVal bInvert As Boolean)
Dim serial As Steema.TeeChart.Styles.Box = New Steema.TeeChart.Styles.Box()
tchart.Aspect.View3D = False
serial.Add(75.5)
serial.Add(6.5)
serial.Add(10.5)
serial.Add(89.5)
serial.Add(99.5)
serial.ReconstructFromData()
tchart.Series.Add(serial)
tchart.Axes.Bottom.Inverted = bInvert
End Sub