label on the line in line graph

6 posts, 0 answers
  1. harini
    harini avatar
    5 posts
    Member since:
    Oct 2008

    Posted 06 Oct 2008 Link to this post

    Hi,

    I am trying to place a label between two points (and NOT at the point) in a line chart and I am not sure how to go abt it. Kindly guide me. Any help would be greatly appreciated.

    Thanks,
    Harini
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 06 Oct 2008 Link to this post

    Hi harini,

    Thanks for asking. Unfortunately, our RadChart does not support such functionality. You can set the label to appear to the right of the point like this:

    RadChart1.Series[0].Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Right;
    RadChart1.Series[0].Appearance.LabelAppearance.LabelLocation = ItemLabelLocation.Inside;

    Still, the line may go up or down and there is no way to force the label to stay on the line.

    Regards,
    Evtim
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. harini
    harini avatar
    5 posts
    Member since:
    Oct 2008

    Posted 06 Oct 2008 Link to this post

    Thanks Evtim for the immediate reply

    So if there no option to place labels between two points in a line graph directly, is there any other work around that u can suggest?

    The soln mentioned below does not gaurentee me that the label will lie between two points.

    So is there any other work around soln for the same?

    Thanks,
    Harini
  5. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 07 Oct 2008 Link to this post

    Hi harini,

    Unfortunately, this is the only workaround we can suggest - no other solutions and/or workarounds are currently available.
     
    Sorry for not being able to help you at this time.
     

    Regards,
    Evtim
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. harini
    harini avatar
    5 posts
    Member since:
    Oct 2008

    Posted 07 Oct 2008 Link to this post

    Thanks Evtim.

    Ok i will place my labels near the points(either right or left). I tried out the code snippet u suggested. But those do not seem to show any labels near my point.

    1.) How do I make these labels visible and see them near the points of the line?

    2.) Also if I have to set a value to the label, say 10 or 20 how do I set that?

    Thanks,
    Harini
  7. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 08 Oct 2008 Link to this post

    Hi Harini,

    Please, find the answer to your question in your other post.

    Regards,
    Evtim
Back to Top
UI for WinForms is Visual Studio 2017 Ready