You can do this, but it requires a bit of fiddling with the data.  You will 
need to use a ComboChart with 3 data series: 1 line and two area.  Use the 
lower data series as both a line and area series, and use the other as an 
area series, then set the "isStacked" option to true and the color of the 
lower area series to "transparent".  Depending on how your data is set up, 
you may or may not need to use the difference between the upper and lower 
lines to calculate the data for the second area series.  You can use a 
DataView to arrange the data as needed.

Here's an example using a DataView that computes the difference between the 
two series to make the second area: http://jsfiddle.net/asgallant/ydNT2/

On Wednesday, November 7, 2012 3:05:22 PM UTC-5, Ambientson wrote:
>
> Hi,
> I'd like to fill in with color the area between two lines (data series) in 
> a line chart. I've used Area chart but it always fills all the way down to 
> the x-axis. I can't get it to fill on between two series and not go all the 
> way to the x-axis.
> I did find a way to do it but with the old deprecated API: 
> *Line Fills chm [Line, Radar]
> You can fill the area below a data line with a solid color. 
> You can combine line fills with any other chm parameters using a pipe 
> character ( | ) to separate the chm parameters.
> Syntax: chm= <b_or_B>,<color>,<start_line_index>,<end_line_index>,<0>*
> Is there any way to do it with the new API?
> Many thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/D3Vf-8l1sg8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to