Putting label in barseries into bar

2 posts, 0 answers
  1. Matthias
    Matthias avatar
    2 posts
    Member since:
    Oct 2013

    Posted 18 Mar 2014 Link to this post

    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?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 19 Mar 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top