Is it possible to link a color to a label value?
For instance if I have a pie chart with two labels 'yes' and 'no', in random order. Is it possible to make the 'yes' green and the no 'red'?
HI David, I have a problem that probably I can resolve following the suggestion of your post.
I have a 3DPiechart and I have to fill any slice with a specific color, any color identify a specific slice and label.
I'm working in ASP.NET Visual Basic and I'm not able to replicate your suggestion in my environment.
Can you help me?
Thanks
Erik
I know what I need to know. Thank you for the help.
would something like this work for you?
int indexOfYesRow;for (int current = 0; current < ds.Tables[0].Rows.Count; current++){ if (ds.Tables[0].Rows[current]["RowLabel"] == "Yes") ; { indexOfYesRow = current; }}if (indexOfYesRow == 0){ this.ultraChart1.ColorModel.CustomPalette = new Color[ { Color.Green, Color.Red };}else{ this.ultraChart1.ColorModel.CustomPalette = new Color[ { Color.Red, Color.Green };}
DataSet