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

label on the line in line graph

5 Answers 75 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.
harini
Top achievements
Rank 1
harini asked on 06 Oct 2008, 07:54 AM
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

5 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 06 Oct 2008, 10:54 AM
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.
0
harini
Top achievements
Rank 1
answered on 06 Oct 2008, 11:12 AM
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
0
Dwight
Telerik team
answered on 07 Oct 2008, 09:24 AM
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.
0
harini
Top achievements
Rank 1
answered on 07 Oct 2008, 09:34 AM
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
0
Dwight
Telerik team
answered on 08 Oct 2008, 06:45 AM
Hi Harini,

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

Regards,
Evtim
Tags
Chart (obsolete as of Q1 2013)
Asked by
harini
Top achievements
Rank 1
Answers by
Dwight
Telerik team
harini
Top achievements
Rank 1
Share this question
or