
Hello,
I have to draw chart with two line series, where:
- area beetwen series is filled with color
- grid lines are visible
My first try to get fill, was to draw two area series: one with data from 'upper' plot and fill color, and second with background color and data from 'lower' plot. On top of them, I've added two line series. This works, but grid lines below 'fill' area are missing, because they are obscured by area series with background color (see pic).
https://drive.google.com/file/d/0B1A54aAogwtgRGlXdHA2bGJMbkk/edit?usp=sharing
To show grid lines, I've put another instance of XYChart on top of the previous one - this way grid lines from second chart are drawn on top of the first chart (see pic).
https://drive.google.com/file/d/0B1A54aAogwtgZmZreXpaQ1FrV2M/edit?usp=sharing
This solution works, but IMHO is very ugly, so here's my questions:
1. Is there some better way to achive such effect?
2. If no, could you implement some property, to force drawing grid on top of series?
Here is link to zipped sample solution: https://drive.google.com/file/d/0B1A54aAogwtgTmllYVhKVUFpTGc/edit?usp=sharing