The 'backgroundColor' option controls the background settings (border,
border width, and fill); 'colors' controls the colors of the elements (array
of colors, assigned by series [DataTable column]); 'vAxis.gridlineColor'
controls the color of the horizontal gridlines (use 'hAxis' instead for
charts with vertical gridlines). There is no API support for adding
vertical lines to Line Charts (or any other chart that normally has
horizontal gridlines; vice versa for charts that normally have vertical
gridlines). To use the options, do something like this:
chart.draw(data, {
width: 970,
height: 540,
title: 'Commodities',
backgroundColor: {
stroke: '#FF0000',
strokeWidth: 5,
fill: '#00FF00'
},
colors: [
'#0000FF'
],
vAxis: {
gridlineColor: '#FFFF00'
}
});
Note that my arbitrarily selected colors produce a horrible color scheme,
please don't use them >;o)
--
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/-/5HanG08LfBIJ.
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.