注册 登录
编程论坛 VB6论坛

VB引用MsChart控件怎么改变每一列的颜色呢???

VBnext 发布于 2014-03-23 23:15, 845 次点击
不是需要在控件上右键属性那种
我的代码下:
Private Sub Command2_Click()
  Dim x
  MSChart1.chartType = VtChChartType2dBar
  MSChart1.RowCount = 50
  MSChart1.ColumnCount = 1
  For x = 1 To 50
    MSChart1.Row = x
    MSChart1.RowLabel = x
    MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Brush.FillColor.Set 2, 0, 255
 Next
End Sub
怎么才能分别设置每一列的颜色呢?如1红色 2 蓝色 3 绿色等
[local]1[/local]
3 回复
#2
VBnext2014-03-23 23:18
附件没添加上
只有本站会员才能查看附件,请 登录
#3
VBnext2014-03-24 15:54
大家有知道的吗
#4
VBnext2014-03-24 21:14
没人知道吗《《《《大神门》》》干嘛呢
1