The setup for this is a bit tricky:
1) in the DataTable, set the boundaries of the areas in the 3rd column, using increasing integers, starting from 0. Any row that isn't an area border should have a null in the 3rd column.
2) in this section of the code:
series.push({
type: 'area',
lineWidth: 0,
targetAxisIndex: 1,
visibleInLegend: false
// you can set area color here if you like
});
you can set colors on the bands. The key to getting whitespace between colored bands is to set the "color" parameter in this object to "transparent" for the bands that represent the empty spaces.
On Friday, April 19, 2013 5:43:40 PM UTC-4, Rogelio Flores wrote:
Yes!... something like that, except I can't seem to be able to generate a band of a given color surrounded by white using this approach.
On Friday, April 19, 2013 3:19:43 PM UTC-4, Rogelio Flores wrote:
A request has come to me to create color bands in our LineCharts similar to these pinkish bands shown in these two charts:
(note these are only opaque divs that I put on top of the charts, but I'm looking for these bands to be in the background of the chart and correspond to an h-axis range)
Is this possible?
If not, I'll go with the "scope" role to de-emphasize the values for the range.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-visualization-api/hi_605b-1Pw/unsubscribe?hl=en.