如何更改 Winforms 图表控件中轴标签的字体大小? 我这样创建图表:
chart1.Series.Clear();
var series = chart1.Series.Add("Difetti");
foreach (var stat in Stats)
{
var pt = series.Points.Add(stat.Count);
pt.AxisLabel = stat.Nome_TipoDifetto;
pt.Label = stat.Count.ToString();
}
我发现我可以写:
chart1.ChartAreas[0].AxisX.LabelStyle.Font = new Font(chart1.ChartAreas[0].AxisX.LabelStyle.Font.FontFamily, 14);