目前实现到第三张图形,有可以实现四张图形的请大佬帮助。
实现到第三张图的设置如下
private void Form1_Load(object sender, EventArgs e)
{// 隐藏标题//chart1.Titles.Clear();// 隐藏图例chart1.Legends.Clear();// 隐藏 Y 轴的网格线和标签chart1.ChartAreas[0].AxisY.Enabled = AxisEnabled.False;chart1.ChartAreas[0].AxisX.Enabled = AxisEnabled.False;// 隐藏 X 轴的标签chart1.ChartAreas[0].AxisX.LabelStyle.Enabled = false;chart1.ChartAreas[0].AxisY.LabelStyle.Enabled = false;// 隐藏 X 轴的网格线chart1.ChartAreas[0].AxisX.MajorGrid.Enabled = false;chart1.ChartAreas[0].AxisY.MajorGrid.Enabled = false;// 隐藏 X 轴的小数点//chart1.ChartAreas[0].AxisX.Interval = 1;// 隐藏 Z 轴//chart1.ChartAreas[0].Area3DStyle.Enable3D = false;//chart1.ChartAreas[0].Area3DStyle.Inclination = 0;//chart1.ChartAreas[0].Area3DStyle.Rotation = 0;// 设置柱形条的颜色和宽度//chart1.Series[0].Color = Color.Red;//chart1.Series[0].BorderWidth = 0;chart1.ChartAreas[0].BackColor = System.Drawing.Color.WhiteSmoke;chart1.ChartAreas[0].BorderColor = System.Drawing.Color.WhiteSmoke;chart1.ChartAreas[0].BorderWidth = 0;chart1.ChartAreas[0].Position.Auto = false;chart1.ChartAreas[0].Position.Height = 100F;chart1.ChartAreas[0].Position.Width = 100F;chart1.Series["Series1"].Points.AddXY("Percentage", 1.00);
}