以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]生成图表 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=129205) |
-- 作者:狐说八道 -- 发布时间:2018/12/24 9:49:00 -- [求助]生成图表 各位老师,请问我想将线的颜色设置成数组中的这几种颜色,代码该怎么写? Dim Colors() As object = {"Color.Orange","Color.green","Color.blue","Color.yellow","Color.red"} For i As Integer = 0 To t.DataTable.GetValues("年").count -1 Chart.SeriesList(i).LineColor = Colors(i) Chart.SeriesList(i).LineThickNess = 3 \' 设置连线的宽度,默认为1,单位为像素. Chart.SeriesList(i).MarkSize = 10 \' 设置数据点标记的大小,单位为像素,默认是5. Next
|
-- 作者:有点甜 -- 发布时间:2018/12/24 10:00:00 -- 改成
Dim Colors() As object = {Color.Orange,Color.green,Color.blue,Color.yellow,Color.red} |