I need to draw lines of graphs on the same area and paint some areas with the necessary color. For drawing graphs I use ZedGraph. Is it possible to fill this component with built-in functions? If not, is there a ready-made component in which this can be done without drawing it with “handles”?

    1 answer 1

    If by some areas you mean areas entirely under some graphs, just use Curve.Line.Fill .

    If you need to paint the gaps under the graphs, you can use a not very nice, but easy to implement method: add a graph without a fill outside the gap, and in the gap - a graph of the same color, but with a fill.

    At the expense of completely arbitrary areas, I can’t recommend anything except how to write on a rather lively forum of the project itself .

    • 2
      Everything turned out to be much simpler :) If you draw a closed loop, then only it is filled. PointPairList line = new PointPairList (); line.Add (0, 50); line.Add (0, 100); line.Add (100, 100); line.Add (100, 50); line.Add (0, 50); var curve = graphPane.AddCurve ("", line, Color.FromArgb (255, 255, 255, 0)); curve.Line.Fill = new Fill (Color.FromArgb (255, 255, 0, 0), Color.FromArgb (255, 255, 255, 0), 270F); - Donil