How can I set different colors in a ZedGraph histogram?
I got a histogram drawn in ZedGraph. And I have to set the specific color for a specific range of the values. For example: Graph Pane = zedGraph.GraphPane; list = new PointPairList (); for (int i = 0; i < 256; i++) { list.Add(i, array_with_y_values[i]); } Pane.AddBar("", list, Color.Red); And how I can set the other color for some of them? Are you looking for something like this? This piece of code adds 50 bars with random y values between 0 and 15. It will color bars with y values <5 as red, 5-10 as yellow, and >10 as green. GraphPane pane = zedGraphControl1.GraphPane; PointPairList list =