Legend Different Colour
Posted: Thu Oct 13, 2011 12:28 pm
I have a bar graoh and specified the colours like so:-
bar1.Add(age1m, "Under 20", Color.Green);
bar1.Marks.Visible = false;
bar2.Add(age1f, "Under 20", Color.Orange);
bar2.Marks.Visible = false;
bar1.Add(age2m, "20-29", Color.Green);
bar1.Marks.Visible = false;
bar2.Add(age2f, "20-29", Color.Orange);
bar2.Marks.Visible = false;
How do I get the legend colour to match, see example you will see different colours
bar1.Add(age1m, "Under 20", Color.Green);
bar1.Marks.Visible = false;
bar2.Add(age1f, "Under 20", Color.Orange);
bar2.Marks.Visible = false;
bar1.Add(age2m, "20-29", Color.Green);
bar1.Marks.Visible = false;
bar2.Add(age2f, "20-29", Color.Orange);
bar2.Marks.Visible = false;
How do I get the legend colour to match, see example you will see different colours