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

RadChart Labels

3 Answers 195 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tim
Top achievements
Rank 1
Tim asked on 05 Feb 2008, 03:38 PM
If I am doing a simple bar chart, how can I place a label Middle Center inside the bar and a label at the Top of the bar...?

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Feb 2008, 01:08 PM
Hi Leonard,

There are two approaches to place labels inside the center of the bars:
  1. Programmatically. Just refer to the following code snippet:
    RadChart1.Series[0].Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;  
    RadChart1.Series[0].Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Center; 
  2. Using the designer:
    1. In the Visual Studio Property Builder navigate to the Series collection.
    2. Choose the preferred Series from the collection, and in its property builder navigate to: Appearance >> LabelAppearance >> LabelLocation.
    3. Set the LabelLocation to Inside.
    4. Then navigate to Appearance >> LabelAppearance >> Position >> AlignedPosition.
    5. Set the AlignedPosition to Center.

If you need additional assistance, do not hesitate to contact me.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center

0
Tim
Top achievements
Rank 1
answered on 09 Feb 2008, 06:22 PM
Thanks Nikolay, that's exactly what I wanted for one of the labels.  But what about the other label that goes on top of the bar?  How do you place another label on top of the same bar.  For instance, if this is for a movie theatre, I would like to show how many people came to any given movie (which would be the number inside the bar.. MiddleCenter), but also I would like to show how much money we made for that movie (which would be the label at the top of the bar...  TopCenter).  Any suggestions on that???
0
Nikolay
Telerik team
answered on 11 Feb 2008, 03:09 PM
Hi Leonard,

Unfortunately, RadChart for WinForms does not support multiple labels. It has only one label which shows the actual value of the corresponding bar.

Contact me, if I can be of your further assistance.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (obsolete as of Q1 2013)
Asked by
Tim
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Tim
Top achievements
Rank 1
Share this question
or