展开全部
这个是三个序列的柱状图,外观定义为了圆柱形,步骤可如下:
//清除序列
this.chart1.Series.Clear();
//循环添加三个随机数序列并设置序列外观
Random random = new Random();
for (int i = 0; i < 3; i++)
{
Series series = new Series();
series.ChartType = SeriesChartType.Column;
series.CustomProperties = "DrawingStyle=Cylinder";
this.chart1.Series.Add(series);
for (int j = 1; j < 5; j++)
series.Points.AddXY(j, random.Next(0, 100));
}
运行结果截图如下:
希望对你有帮助,还有疑问请追问或是Hi
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询