Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何:在图表控件中突出显示x轴标签中的一个值?_Asp.net_Charts_Mschart - Fatal编程技术网

Asp.net 如何:在图表控件中突出显示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

如何使用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.CustomLabels)
    {
        if (cl.Text == "rightcolumnname")
        {
            cl.ForeColor = Color.Gold;
        }
    }

}