如何更改谷歌图表字体大小?
是否可以更改 Google 图表字体大小,我的问题是,当我缩小整个图表的宽度和高度时,文本会变小且不可读,有什么方法可以自定义设置字体大小?
是否可以更改工具提示大小(在图像中描述为 a)?
Is it possible to change Google chart font size, my problem is that when i shrink width and height of whole chart, text becomes small and unreadable, any way to custom set font size?
Also is it posible to change tooltip size , described as a in the image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
设置图例和工具提示
在选项中,通过{legend:{textStyle:{fontSize:'xx', fontName:'xx'}}}
{tooltip:{textStyle:{fontSize:'xx', fontName:'xx'}}}
查看此处了解更多详细信息
in options, set legend and tooltip by
{legend:{textStyle:{fontSize:'xx', fontName:'xx'}}}
{tooltip:{textStyle:{fontSize:'xx', fontName:'xx'}}}
Check out here for more details
对于面积图:
谢谢,
阿伦五世
For Areachart:
Thanks,
Arun v
legend.textStyle 和 tooltip.textStyle 对此进行控制,如散点图所述,例如此处< /a>
legend.textStyle and tooltip.textStyle control this as documented for scatter charts for instance here