This is a migrated thread and some comments may be shown as answers.

Putting label in barseries into bar

1 Answer 20 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthias
Top achievements
Rank 1
Matthias asked on 18 Mar 2014, 05:04 PM
Hello,
since my labels on a bar series (with maximum 6 categories) are sometimes pretty long, I have the following LabelTemplate:

                        <telerikChart:CategoricalAxis.LabelTemplate>
                            <DataTemplate>
                                    <TextBlock Text="{Binding}" Width="120" TextWrapping="Wrap" />
                            </DataTemplate>
                        </telerikChart:CategoricalAxis.LabelTemplate>
                
But unfortunately this give very height labels, and reduces the height of the chart. So I want to put those labels into the bar itself and save the space, like LabelDefinitions - but there it shows me the value instead of the category.

You have any ideas, how to achieve this?

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 19 Mar 2014, 08:45 AM
Hello Matthias,

Thanks for writing.
This is actually a feature that we are currently working on. We called it outer/inner labels. In a future release you will be able to specify whether the labels are drawn inside the chart or outside it. For now this is not possible however.

Please write again if you have other questions.

Regards,
Victor
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
Chart
Asked by
Matthias
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or