可以,参考
Dim Chart As WinForm.Chart '定义一个图表变量
Dim Series As WinForm.ChartSeries '定义一个图系变量
Chart= Forms("窗口4").Controls("Chart1") ' 引用窗口中的图表
Chart.VisualEffect = True '加上这一行,让你的图表更漂亮
Chart.ChartType = ChartTypeEnum.Pie '图表1类型改为Bar(条形)
For i As Integer = 0 To 5
Series = Chart.SeriesList.Add() '增加一个图系
Series.Length = 2 '一个系列只能包括一个值
Series.Text = "产品" & i
Series.Y(0) = i
Series.Y(1) = i+10
Series.Offset = 20
Next
Chart.LegendVisible = True '显示图列
Chart.LegendCompass= CompassEnum.East '图列显示在东方(右方)