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.
Teodor -
The code compiled ok but tripped a runtime error:
Unable to cast object of type 'Infragistics.UltraChart.Core.Primitives.GraphicsContext' to type 'Infragistics.UltraChart.Core.Primitives.Box'.
Patrick
Fantastic! Thanks for the quick response Teodor.
You probably have added the gauge assemblies as well to your project and VS is looking for infragistics.ultragultraguage.resources.box rather than Infragistics.UltraChart.Core.Primitives.Box.
Try using:
Dim mybox As Infragistics.UltraChart.Core.Primitives.Box = CType(e.Primitive, Infragistics.UltraChart.Core.Primitives.Box)
Hello All,
I was having a very similar problem when making a composite chart with a vertical bar chart and line chart. The bars expand to fill the chart window and I need them to be a fixed width and spaced evenly across the chart so I can line up data points in the line chart with the middle of the bars. I was trying to reproduce you code in vb and was having a problem with the following line:
Teodor Taushanov"]Box box = e.Primitive as Box;
My c# is not as sharp as it should be because i don't use it as much. However, I thought that this would accomplish the same action:
Dim mybox As Box = CType(e.Primitive, Box)
This does not work for the following reasson
Value of type 'infragistics.ultrachart.core.primitives.primitive' cannot be converted to 'infragistics.ultragultraguage.resources.box'
Can any one shed some light on the subject?
TIA
Great!
Thank you. Teodor