如何使用MS突出显示x轴中的值。图表控件?
X轴值,不在图表中。
谢谢!
答案 0 :(得分:1)
使用图表Customize event(OnCustomize =“chart_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;
}
}
}