Bar chart series item color not working
Posted: Tue May 11, 2004 2:10 pm
I'm currently using build 1.1.1499.42325 of the product. I just had a bug report come in that series colors were wrong for one of my graphs. I have replicated the issue in the lab. Here is what i'm doing:
if (entry.status == STATUS_FAILED)
bar.Add(jentry.StartTime, newTime, Color.Red);
else
bar.Add(entry.StartTime, newTime, DEFAULT_BAR_COLOR);
I also have tried this:
if (entry.status == STATUS_FAILED)
bar.Add(jentry.StartTime, newTime, Color.Red);
else
bar.Add(entry.StartTime, newTime);
Neither one works. I get the series color for the majority of bars no matter what i do. It actually looks like it only colors the first point red, even though i have verified that the second point is red as well. I'm pretty confused at this point. Any help is greatly appreciated. If this is fixed in the latest build i can upgrade but I dont want to unless I have to because last time it was a struggle (gantt chart issues).
if (entry.status == STATUS_FAILED)
bar.Add(jentry.StartTime, newTime, Color.Red);
else
bar.Add(entry.StartTime, newTime, DEFAULT_BAR_COLOR);
I also have tried this:
if (entry.status == STATUS_FAILED)
bar.Add(jentry.StartTime, newTime, Color.Red);
else
bar.Add(entry.StartTime, newTime);
Neither one works. I get the series color for the majority of bars no matter what i do. It actually looks like it only colors the first point red, even though i have verified that the second point is red as well. I'm pretty confused at this point. Any help is greatly appreciated. If this is fixed in the latest build i can upgrade but I dont want to unless I have to because last time it was a struggle (gantt chart issues).