求解答 vs 自带Chart柱状图
将y轴的百分比倒过来
从上至下y轴最顶端是百分之零
Chart1.DataSource = dataDT;//设置数据源
if (Chart1.Series.Count > 0)
{
//绑定
Chart1.Series[0].XValueMember = "test";
Chart1.Series[0].YValueMembers = "test1";
}
Chart1.DataBind();
Chart1.ChartAreas[0].AxisX.Interval = 1;
Chart1.ChartAreas[0].Area3DStyle.Enable3D = true;
Chart1.ChartAreas[0].Area3DStyle.PointDepth =
Chart1.ChartAreas[0].Area3DStyle.PointGapDepth = 50;
Chart1.ChartAreas[0].Area3DStyle.WallWidth = 10;
Chart1.ChartAreas[0].AxisY.LabelStyle.Format = "{0;0}" + "%";
Chart1.ChartAreas[0].AxisY.Interval = 10;
Chart1.Series[0].Label = "#VAL{N2} %";
Chart1.Series[0].IsValueShownAsLabel = true;