各位老师,请问我想将线的颜色设置成数组中的这几种颜色,代码该怎么写?
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