我只需要在图表区域周围而不是整个图表周围设置边框。我找不到要设置的属性。这是在 Google Visualization API 中。
最佳答案
适当的选项没有记录。您需要设置 chartArea.backgroundColor.stroke
和 chartArea.backgroundColor.strokeWidth
选项。 stroke
option 控制边框的颜色,并采用任何有效的 HTML 颜色字符串。 strokeWidth
选项控制边框的宽度,并以像素为单位的宽度取整数:
chartArea: {
backgroundColor: {
stroke: '#4322c0',
strokeWidth: 3
}
}
关于charts - 如何在 Google Charts 中的图表区域周围绘制边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19307072/