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
Jim, The crossing is happening there because you don't actually have a data point at the crosspoint, so the line series are interpolating in either direction and the interpolations cross. But to the range series it will always just take the maximum of the high and low value to be the high value, so it doesn't appear to the range area series that the range has closed to 0 unless that data point where there high and low are equal is actually present. Nevertheless, I think there might be a way you can achieve the display you want, let me see what I can do.
First though, Jim, are you using the CategoryXAxis or CategoryDateTimeXAxis?