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

Wrap the text on the labels in Bar Chart

1 Answer 251 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.
Shobha
Top achievements
Rank 1
Shobha asked on 08 Oct 2013, 10:56 AM
Hi,

   I have a horizontal stacked Bar chart and I have labels for each of the sections in the Bar chart. Is there any option to wrap the text on the labels?, so that they don't overlap. Also please give me some pointers on adding legend in Bar chart.
(Im using windows phone8)

Thanks
Shobha

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 10 Oct 2013, 01:51 PM
Hello Shobha,

Thank you for the question.

If you wish to wrap the text of the labels, you can use the LabelTemplate property of the axis:

<chart:CategoricalAxis>
    <chart:CategoricalAxis.LabelTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding}" Width="70" TextWrapping="Wrap"/>
        </DataTemplate>
    </chart:CategoricalAxis.LabelTemplate>
</chart:CategoricalAxis>

You can also try these axis settings:
<chart:CategoricalAxis LabelRotationAngle="30" LabelFitMode="Rotate">
 
<chart:CategoricalAxis LabelFitMode="MultiLine"/>

As to the legend, the chart does not implement such feature, but you can vote for it in our Ideas & Feedback Portal to raise its priority.

I hope this was useful. Please, do not hesitate to contact us if you have further questions.

Regards,
Rositsa Topchiyska
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Chart
Asked by
Shobha
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or