This question is locked. New answers and comments are not allowed.
Hi,
I have a requirement for styling my stacked bar series in telerik:RadCartesianChart in a way that I should be able to show some Text Values adjacent to the Bar. In my case it is a horizontal stacked chart where on each stacked bar I have to show some text value.
My current code looks like this - It can only show the stacked charts but without the bounded custom text that should be on top of it.
Any help on this will be very useful for us, thanks in advance!
I have a requirement for styling my stacked bar series in telerik:RadCartesianChart in a way that I should be able to show some Text Values adjacent to the Bar. In my case it is a horizontal stacked chart where on each stacked bar I have to show some text value.
My current code looks like this - It can only show the stacked charts but without the bounded custom text that should be on top of it.
Any help on this will be very useful for us, thanks in advance!
<telerik:RadCartesianChart Height="200" Name="chart"> <telerik:RadCartesianChart.VerticalAxis> <telerik:CategoricalAxis /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.HorizontalAxis> <telerik:LinearAxis Minimum="0" Maximum="110" MajorStep="10" Visibility="Collapsed" /> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid StripLinesVisibility="Y"> <telerik:CartesianChartGrid.YStripeBrushes> <SolidColorBrush Color="#F2F2F2" /> </telerik:CartesianChartGrid.YStripeBrushes> </telerik:CartesianChartGrid> </telerik:RadCartesianChart.Grid> <telerik:BarSeries MaxWidth="60" Width="60" CategoryBinding="NOC" ValueBinding="Bronze" CombineMode="Stack" ItemsSource="{Binding AllData}" > <telerik:BarSeries.DefaultVisualStyle> <Style TargetType="Border"> <Setter Property="Background" Value="#2FB4E9" /> <Setter Property="CornerRadius" Value="20,0,0,20" /> </Style> </telerik:BarSeries.DefaultVisualStyle> </telerik:BarSeries> <telerik:BarSeries MaxWidth="60" Width="60" CategoryBinding="NOC" ValueBinding="Gold" CombineMode="Stack" ItemsSource="{Binding AllData}"> <telerik:BarSeries.DefaultVisualStyle> <Style TargetType="Border"> <Setter Property="Background" Value="#F2A000" /> <Setter Property="CornerRadius" Value="0,20,20,0" /> </Style> </telerik:BarSeries.DefaultVisualStyle> </telerik:BarSeries> </telerik:RadCartesianChart>