Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

How to apply a Label near the Lines in Line Chart. "Label" Property applies to all the data point in the chart. But I just only one Label near to the Line to show which data the Graph plots.

Thanks in advance
Posted

1 solution

Add legend to your chart and set its LegendText property .

ASP.NET
<legends>
								<asp:legend backcolor="Transparent" alignment="Center" docking="Bottom" font="Trebuchet MS, 8.25pt, style=Bold" istextautofit="False" name="Default" legendstyle="Column" forecolor="255, 255, 255" xmlns:asp="#unknown"></asp:legend>
								
							</legends>




C#
Chart1.Series[0].LegendText = "#VALX";
 
Share this answer
 
Comments
aswathy.s.88 9-Jan-12 5:31am    
Thank you very much ....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900