Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只需要图表区域而不是整个图表的边框。我找不到要设置的属性。这是在 Google 可视化 API 中。
适当的选项是未记录的。您需要设置chartArea.backgroundColor.stroke和chartArea.backgroundColor.strokeWidth选项。该stroke选项控制边框的颜色,并采用任何有效的 HTML 颜色字符串。该strokeWidth选项控制边框的宽度,并采用一个整数作为像素宽度:
chartArea.backgroundColor.stroke
chartArea.backgroundColor.strokeWidth
stroke
strokeWidth
chartArea: { backgroundColor: { stroke: '#4322c0', strokeWidth: 3 } }