如何更改谷歌图表字体大小?

发布于 2025-01-04 11:35:06 字数 179 浏览 6 评论 0原文

是否可以更改 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?

enter image description here

Also is it posible to change tooltip size , described as a in the image?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

强辩 2025-01-11 11:35:06

设置图例和工具提示

在选项中,通过{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

朦胧时间 2025-01-11 11:35:06

对于面积图:

var options = {
tooltip: {textStyle:  {fontName: 'TimesNewRoman',fontSize: 12,bold: false}}
}

谢谢,
阿伦五世

For Areachart:

var options = {
tooltip: {textStyle:  {fontName: 'TimesNewRoman',fontSize: 12,bold: false}}
}

Thanks,
Arun v

口干舌燥 2025-01-11 11:35:06

legend.textStyle 和 tooltip.textStyle 对此进行控制,如散点图所述,例如此处< /a>

legend.textStyle and tooltip.textStyle control this as documented for scatter charts for instance here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文