Need to store colors in a list for a radar chart. The number of series are unknown, want to loop through the colors list to assign a color to each series plotted.
Can't find how to get all colors of System.Drawing.Color to add it to a list.
System.Windows.Forms.DataVisualization.Charting.series series str = new System.Windows.Forms.DataVisualization.Charting.series()
series.Color = // colours[i];??
}
}
[/code]
There's also a problem with syntax in these two lines, conflicting local variables.
string str = "series" + i;
System.Windows.Forms.DataVisualization.Charting.series series str = new .....
[code]
for(int i = 0; i < list.Count; i++){ // contains the number of series.
string str = "series" + i;
for(int j = 0; j < colours.Count; j++){
System.Windows.Forms.DataV
series.Color = // colours[i];??
}
}
[/code]
There's also a problem with syntax in these two lines, conflicting local variables.
string str = "series" + i;
System.Windows.Forms.DataV