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

[Solved] Center the label in the chart

1 Answer 29 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rohit
Top achievements
Rank 1
Rohit asked on 22 Apr 2013, 12:34 PM
hi,

1. I have created RadCartesianChart but the label are not displayed properly half in left half in right. I want the label to be in the center of the part.

2. How to change the colors of the aria serise?? as now its showing light blue and dark blue but I want it to be red and green.

3. How can I display a description of the red and green colors in left or right side of the chart as red is for lost and green is for won opportunity?

4. In my chart the VerticalAxis is only showing number e.g. 1900000 but I want it as currency 19,00,000 how to do it?

Rohit

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 25 Apr 2013, 11:55 AM
Hello Rohit,

Thank you for your questions.

In the screenshot "what-I-want" I believe I see just one category. Our RadChart cannot draw AreaSeries based on one point. If this is the case you can use BarSeries instead and set the ChartSeriesLabelDefinition.VerticalAlignment to Center. If this is not the case, the only possible way is to use the  Label Strategy and create a custom algorithm which positions the labels in the desired place.

As for the label formatting - you can use the Axis.LabelFormat property. More information may be found in the following help topics:

Chart Axis
Chart Legend
Area Series
Label Definitions

I hope this helps.

Kind regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Rohit
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or