我要做图表,以下代码Dim Chart As WinForm.Chart '定义一个图表变量
Dim Series As WinForm.ChartSeries '定义一个图系变量
Chart = e.Form.Controls("Chart4") ' 引用窗口中的图表
'Chart.VisualEffect = True '加上这一行,让你的图表更漂亮
Chart.ChartType = ChartTypeEnum.Bar '图表1类型该为Bar(条形)
Chart.DataSource = "供应商考核" '设置绑定表
Chart.SeriesList.Clear() '清除图表原来的图系
Series = Chart.SeriesList.Add() '给图表1增加一个图系
Series.Text = "数量"
Series.X.DataField = "供应商简称" 'X轴绑定到产品列
Series.Y.DataField = "数量" 'Y轴绑定到数量列
Chart.ChartType2 = ChartTypeEnum.Bar '图表2类型该为线形
Chart.AxisY2.Min = 0 '指定Y轴的最小值
Chart.AxisY2.Max = 1 '指定Y轴的最大值
Series.Length = 10
Series = Chart.SeriesList2.Add() '给图表2增加一个图系
Series.Text = "效率"
Series.X.DataField = "供应商简称" 'X轴绑定到产品列
Series.Y.DataField = "效率" 'Y轴绑定到数量列
Series = Chart.SeriesList2.Add()
Series.Text = "质量合格率"
Series.X.DataField = "供应商简称" 'X轴绑定到产品列
Series.Y.DataField = "合格率" 'Y轴绑定到数量列
Chart.LegendVisible = True '显示图列
Chart.LegendCompass= CompassEnum.South '图列显示在南方(底端)
Chart.AxisY.Text = "采购量"
Chart.AxisY2.Text = "效率-合格率"
其中一条数据条图是重叠的怎么改代码才能不重叠
此主题相关图片如下:图表.png