MSChart标题字体如何更改字体?求支招
如图所示,我想修改 横坐标的标题“日期”和纵坐标的标题“测试数量”的字体信息,这是我的代码
this.Chart_Daily.ChartAreas["ChartArea1"].AxisX.TitleFont = new System.Drawing.Font("宋体", 40f, System.Drawing.FontStyle.Bold);
this.Chart_Daily.ChartAreas["ChartArea1"].AxisY.TitleFont = new System.Drawing.Font("宋体", 30f, System.Drawing.FontStyle.Bold);
不知为何代码不起作用,还是方法有误?求解答
补充:.NET技术 , C#