如何在Asp.net图表中标记图表 [英] How to Label Chart in Asp.net Chart
本文介绍了如何在Asp.net图表中标记图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
如何在折线图中的折线附近应用标签. 标签"属性适用于图表中的所有数据点.但是我仅在线"附近只有一个Label来显示Graph绘制的数据.
在此先感谢您
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
推荐答案
将图例添加到图表中并设置其LegendText属性.
Add legend to your chart and set its LegendText property .
<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>
Chart1.Series[0].LegendText = "#VALX";
这篇关于如何在Asp.net图表中标记图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文