泰哥,在木有,问个关于MS CHART 的制表问题 - 急 -
我图表,要绑定左右两条Y轴,x当然是条 。 左边y轴可以绑定,但是,右边的y2,怎么绑定,我在网上查的,都是设置Y2样式的,没有绑定数据的。
//this.chartGraph.Series[cname].Points.DataBindXY(x, y);//绑定数据源 this.chartGraph.DataSource = dt; this.chartGraph.Series[cname].XValueMember = bname; this.chartGraph.Series[cname].YValueMembers = cname;
this.chartGraph.ChartAreas[cname].AxisY.Interval = 1; this.chartGraph.ChartAreas[cname].AxisY2.Interval = 1; //this.chartGraph.ChartAreas[cname].AxisY2.Maximum = 80;