For example, there is a curve on the graph, I need to paint over its area on the left / right. In Chart, there is a type of chart called 'Area', it allows you to fill in the area starting from the OX axis line to the curve, i.e. this can be done only relative to the x-axis and only starting from the ruler to the curve. How to do this for the y-axis? So that you can paint on the left (starting from the OU line to the curve) and on the right (starting from the curve to the end of the width of the graph).

it happens now when setting the type of the diagram "Area"

But I would like to receive:

Shaded left relative to the curve Shaded right relative to the curve

  • @rdorn is the view for a sample of what I want to get. The chart can be any kind of broken line. So it is not possible to implement the fill color to the left of the curve or to the right? - Naf
  • moved his comments in response in the form of domesticated - rdorn
  • one
    Well, the chart can't do that. But you can try to swap the values ​​of X and Y points of the graph and apply to the very control of the RotateTransform chart. - Alexey
  • @Alexey would form the answer, with a minimal example for understanding - rdorn

1 answer 1

Control Chart is a standard control for standard charts, and even standard charts can display not all. All that can be depicted on it is limited to enumerating the type of diagrams of the Series class, defining the set of points to be displayed. Therefore, if you did not find the desired type among the proposed diagrams, you will have to look for some other solution.

The source code of this control is officially closed, so even it’s impossible to see what’s done there, you can of course dig up the details through ILDasm or Refector, but it’s like a license violation, and the result is not worth the time required for this venture.

If the graphics are simple but non-standard, then it may be easier to draw them by hand, GDI + has a toolbox rich enough for this. Otherwise it is worth trying to look for an alternative control. They are not that very much, but they are, both paid and free, I would not risk specifically advising any one.


DevExpress - judging by the samples on the site does not know what you want, and it costs money

ZedGraph - in its pure form, it also does not look like it can, but its source code is open and, if desired, you can add the necessary information yourself to the finished frame.

Nevron - in the description state support for this type of diagrams

2D Area Charts including - horizontal Area orientation