vb中怎样添加mschart控件在哪里
2个回答
2016-08-02
展开全部
试试如下代码:Chart1.Series("Series1").Clear()VB不懂的,应该和C#是类似,你试一试能不能行,有问题请追问或是Hi,希望对你有帮助
展开全部
Dim testdata(1 To 24, 1 To 5) '职称数 Private Sub Form_Load() Dim srow, scol As Integer testdata(1, 1) = "A" ' 在第一列设置标签。 testdata(2, 1) = "B" testdata(3, 1) = "C" testdata(4, 1) = "D" testdata(5, 1) = "E" For srow = 1 To 24 For scol = 1 To 5 testdata(srow, scol) = testdata(srow, scol) Next scol Next srow MSChart1.Legend.Location.LocationType = VtChLocationTypeBottom '图例在图表下方 With MSChart1 .ColumnCount = 4 .ChartData = testdata .DataGrid.ColumnLabel(1, 1) = "tushi" .DataGrid.ColumnLabel(2, 1) = "2C" .DataGrid.ColumnLabel(3, 1) = "3D" .DataGrid.ColumnLabel(4, 1) = "4E" '.DataGrid.ColumnLabel(5, 1) = "5" '.DataGr
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询