RadChart Labels

4 posts, 0 answers
  1. Tim
    Tim avatar
    27 posts
    Member since:
    Jul 2006

    Posted 05 Feb 2008 Link to this post

    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...?
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 07 Feb 2008 Link to this post

    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

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Tim
    Tim avatar
    27 posts
    Member since:
    Jul 2006

    Posted 09 Feb 2008 Link to this post

    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???
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 11 Feb 2008 Link to this post

    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
Back to Top