C# chart控件 画柱状图,最好是三维,每个柱子颜色不同,并且右上角有对应柱子颜色的说明,谢谢

2024-12-28 12:25:41
推荐回答(1个)
回答1:

Series series = new Series("货品数量");
series.XValueMember = "bill_code";
series.YValueMembers = "bill_num";
series.IsValueShownAsLabel = true;
series.ToolTip = dropGoods.SelectedItem.Text+":#VAL";
series.ChartType = SeriesChartType.Column;//类型为柱形图
Chart1.Series.Add(series);
Chart1.ChartAreas[0].Area3DStyle.Enable3D = true;//3D效果