Asp.net 如何:在图表控件中突出显示x轴标签中的一个值?
如何使用MS.Chart控件突出显示x轴上的值 X轴值,不在图形中Asp.net 如何:在图表控件中突出显示x轴标签中的一个值?,asp.net,charts,mschart,Asp.net,Charts,Mschart,如何使用MS.Chart控件突出显示x轴上的值 X轴值,不在图形中 谢谢 使用图表自定义事件(OnCustomize=“chart\u Customize”): 使用图表自定义事件(OnCustomize=“chart\u Customize”): protected void monthchart_Customize(object source, EventArgs e) { foreach (CustomLabel cl in chart.ChartAreas[0].AxisX.Cu
谢谢 使用图表自定义事件(OnCustomize=“chart\u Customize”):
使用图表自定义事件(OnCustomize=“chart\u Customize”):
protected void monthchart_Customize(object source, EventArgs e)
{
foreach (CustomLabel cl in chart.ChartAreas[0].AxisX.CustomLabels)
{
if (cl.Text == "rightcolumnname")
{
cl.ForeColor = Color.Gold;
}
}
}