开发者

Changing Line Color in MSChart Control using Visual Basic 6

I am working on a Growth Chart using MS Chart Control in VB6. Can someone tell开发者_运维问答 me how can I change color of each line in the diagram. Also I am trying to get the value of the data in the line graph.

Thanks,

AG


Right-click on the chart control, and then go to the "Series Color" tab. Then you can select the series (line of data) you want to change, and set whatever colors you want.


At run time, you can copy a color from one series MSChart1 to the first (for example) Series other MSChart2:

MSChart2.Plot.SeriesCollection(1).DataPoints(-1).Brush.FillColor.Blue = MSChart1.Plot.SeriesCollection(Series).DataPoints(-1).Brush.FillColor.Blue
MSChart2.Plot.SeriesCollection(1).DataPoints(-1).Brush.FillColor.Green = MSChart1.Plot.SeriesCollection(Series).DataPoints(-1).Brush.FillColor.Green
MSChart2.Plot.SeriesCollection(1).DataPoints(-1).Brush.FillColor.Red = MSChart1.Plot.SeriesCollection(Series).DataPoints(-1).Brush.FillColor.Red
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜