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

Bar Chart Label Possition

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 04 Nov 2010, 11:34 AM
Hi,

    Is it possible to set the possition of a bar chart series Label based on the value of the bar.

    for example i have a bar chat that is used to display a percentage that can be posative or negative value. it is Horizontal and the 0 possition starts in the middle. so what i want to do is if the value is negative have the label on the right and if posative have the label on the left so it is not overlapping the bar.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Nov 2010, 05:11 PM
Hello David,

This behavior is controlled through the series Appearance properties, namely LabelAppearance.LabelPosition=Outside and LabelAppearance.Position.AlignedPosition = Right.
As you might figure out, this would take effect for all items in a serie, thus the negative would display on the right, but so will the positive. So if you want to fully control this, you would have to build the chart programmatically and when the value is positive, change the AlignedPosition to Left.

Regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
David
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or