Bottom.Labels.Angle could not diretly reflect in chart
Posted: Mon Dec 28, 2009 10:21 am
Hello:
We are using Build 3.5.3498.27376. We use the following code to adjust label angle of bottom axis.
As you could see in the attached image, the box width is changed with the code, but the axis label angel is not changed.
But we could see that the angel is changed to 90 in Chart Editor
Please advise how could we eliminate this issue, thanks
We are using Build 3.5.3498.27376. We use the following code to adjust label angle of bottom axis.
Code: Select all
Private Sub TChart_BeforeDrawSeries(ByVal sender As System.Object, ByVal g As Steema.TeeChart.Drawing.Graphics3D)
Dim tchart As Steema.TeeChart.Chart = g.Chart
Dim iWidth As Integer = Math.Abs((tchart.Axes.Bottom.CalcXPosValue(1) - tchart.Axes.Bottom.CalcXPosValue(0))) / 4
// These codes are used to adjust box width, it works
For Each series As Steema.TeeChart.Styles.Series In tchart.Series
If TypeOf (series) Is Steema.TeeChart.Styles.Box Then
CType(series, Steema.TeeChart.Styles.Box).Box.HorizSize = iWidth
End If
Next
// We use this line to change label angle to 90, but the chart does not reflect to this change
tchart.Axes.Bottom.Labels.Angle = 90
End Sub