4 Answers, 1 is accepted
0
Hello Nadeem,
Unfortunately RadChart does not support such functionality (positioning custom text above each bar). However, you can achieve similar functionality by setting the ChartSeries.Appearance.LabelAppearance.LabelLocation property to "Inside" and using the series items labels instead:
Best wishes,
Manuel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Unfortunately RadChart does not support such functionality (positioning custom text above each bar). However, you can achieve similar functionality by setting the ChartSeries.Appearance.LabelAppearance.LabelLocation property to "Inside" and using the series items labels instead:
<telerik:RadChart ID="RadChart1" runat="server" SeriesOrientation="Horizontal"> |
<Series> |
<telerik:ChartSeries> |
<Appearance> |
<LabelAppearance LabelLocation="Inside"> |
</LabelAppearance> |
</Appearance> |
<Items> |
<telerik:ChartSeriesItem YValue="10"> |
<Label> |
<TextBlock Text="Custom Text"> |
</TextBlock> |
</Label> |
</telerik:ChartSeriesItem> |
<telerik:ChartSeriesItem YValue="15"> |
<Label> |
<TextBlock Text="Custom Text 2"> |
</TextBlock> |
</Label> |
</telerik:ChartSeriesItem> |
</Items> |
</telerik:ChartSeries> |
</Series> |
</telerik:RadChart> |
Best wishes,
Manuel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Nadeem
Top achievements
Rank 1
answered on 29 Dec 2008, 11:33 PM
OK. I see but there might be a problem:
What happens if the text inside a bar is too long to fit inside ? Can I make it extend outside the bar?
How can I make sure that text will always be visible over the bar color and background color?
What happens if the text inside a bar is too long to fit inside ? Can I make it extend outside the bar?
How can I make sure that text will always be visible over the bar color and background color?
0

Nadeem
Top achievements
Rank 1
answered on 03 Jan 2009, 11:48 PM
Is not there a work-around for that?
0
Hello Nadeem,
Labels will not be clipped if they are too big. About visibility - you will need to manually specify a color that will have enough contrast to be readable on the background you selected.
All the best,
Vladimir Milev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Labels will not be clipped if they are too big. About visibility - you will need to manually specify a color that will have enough contrast to be readable on the background you selected.
All the best,
Vladimir Milev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.