I need a border around just the chart area and not the whole chart. I can't find what property to set. This is in the Google Visualization API.
Click the chart to select it. In the Format sidebar, click the Chart tab. In the Chart Options section of the sidebar, select the Border checkbox.
The appropriate option is undocumented. You need to set the chartArea.backgroundColor.stroke
and chartArea.backgroundColor.strokeWidth
options. The stroke
option controls the color of the border, and takes any valid HTML color string. The strokeWidth
option controls the width of the border, and takes an integer for the width in pixels:
chartArea: {
backgroundColor: {
stroke: '#4322c0',
strokeWidth: 3
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With