Hi,
I have a categorical 2D bar chart where I would like the bars to be a specific width (about 20) or at least minwidth 20 for the bars. Then I want the chart so expand it's width in case there are a lot of bars or categories. Basically take the space it needs.
Right now it seems like even if I don't set a width or only a min width the chart tries to cramp everything together instead of just expanding its width.
So the question is, how do i do that?
This is my current template:
<ControlTemplate TargetType="telerik:Bar"> |
<Canvas> |
<Rectangle x:Name="PART_DefiningGeometry" |
Height="{TemplateBinding ItemActualHeight}" |
RadiusX="2" |
RadiusY="2" |
Stroke="Transparent" |
StrokeThickness="1" |
MinWidth="20" |
Style="{TemplateBinding ItemStyle}" /> |
</Canvas> |
</ControlTemplate> |
I attached a image that shows how it looks at the moment.