html - 谷歌折线图中的图例图标宽度变化

标签 html css google-visualization

我从这个位置使用了谷歌图表

https://developers.google.com/chart/interactive/docs/gallery/linechart#Example

enter image description here

是否有可能更改图例图标的宽度和高度,即蓝色和红色矩形。

最佳答案

如文档中所示:

legend: {position: 'top', textStyle: {color: 'blue', fontSize: 16}}

legend.textStyle: {color: <string>, fontName: <string>, fontSize: <number>}

这是您要找的吗?

关于html - 谷歌折线图中的图例图标宽度变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12004498/

相关文章:

html - 垂直导航 - 单击时加载 Html 页面

html - ADA - 屏幕阅读器在进入屏幕时未阅读 <h1>

html - 如何更改 DataTables 文本 `Showing page 1 of 5 of x entries`?

jquery - 可以根据 bg 颜色更改加载指示器颜色吗?

javascript - 谷歌图表 : how do I style one point in a scatter chart?

html - 如何垂直对齐图标字体的文本?

javascript - 如何将参数从javascript发送到html表单

html - OSX 字体宽度与标准跨平台字体的窗口不同

javascript - Google chart api explorer 与 selecthandler

pdf - 如何以编程方式生成在图像顶部带有标签的维恩图图像?