Hi All,
I used StackedChart in my project. I want my columns are a fixed width in chart. Currently the width of the columns auto-sizes to the width of the screen. Ex: My chart has one column since the width of this column auto-size to the width of the screen.
Any ideas?
Thanks.
Are you using the charts event handler for ChartDrawItem? If not then e would be nothing or the wrong object.
This is error --> ex.message "Specified cast is not valid."
What was the error?
I put the code in the project, but din't function properly, the application send error with the following sentence
Dim mybox As Infragistics.UltraChart.Core.Primitives.Box = CType(e.Primitive, Infragistics.UltraChart.Core.Primitives.Box)
This seems to be working correctly.
Try
If mybox Is Nothing Or mybox.DataPoint Is Nothing Then
lbl_Overview_user_messages.Text += "myBox is nothing <br/>"
Return
End If
lbl_Overview_user_messages.Text += "myBox is Something <br/>"
If dWidth <= 0 Then
mybox.rect.X += dWidth / 4
End Try
End Sub