The default of the bar series is to put the bar value inside the bar, but if the value is too wide, it gets cut off. It needs options you can set so you can change the value rotation. Also, it seems like the bar value should not be placed inside the bar, but outside of it (or make that an option).
I am trying to set the bar template to achieve the effect, but still have some issues with the display. If I figure it out, I will post back here. Here is what I have so far:
<Style TargetType="{x:Type telerik:Bar}"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="{x:Type telerik:Bar}"> |
<Grid> |
<Grid.RowDefinitions> |
<RowDefinition Height="Auto"/> |
</Grid.RowDefinitions> |
<Rectangle Grid.Row="0" Stroke="Red" VerticalAlignment="Bottom" |
HorizontalAlignment="Stretch" StrokeThickness="1" Fill="Coral" |
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" /> |
<TextBlock Grid.Row="0" Foreground="Black" Padding="0,0,0,5" |
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataPoint.YValue}"> |
<TextBlock.LayoutTransform> |
<RotateTransform Angle="-90" CenterX="0" CenterY="0"/> |
</TextBlock.LayoutTransform> |
</TextBlock> |
</Grid> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |