Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
Variable coloring between two lines on a chart
posted

Note from the attachment we have drawn a blue and black line (2 line series).  We then add a RangeAreaSeries to color the area between the lines gray. The upper series of the range is constructed from the greater values of the two line series and the lower series from the lesser values.

We are having two problems:

1.  As you can see, the gray area is not always precisely contained within the lines near where the lines cross each other. This is due to switching from one series to the next and the space between points. It's not likely this can be fixed unless there is a different way to color between lines.

2.  We would like to color the range in two different colors: one color when the blue line is above the black line and a different color when the blue line is below the black line.  RangeAreaSeries does not support this.  It can be done with one line above and below zero, using a positive and negative brush, but we haven't figured out a way to do it with two lines.

Any suggestions?

Jim

 

Parents Reply Children
No Data