使用谷歌图表选择字体系列? [英] Font Family Selection With Google Charts?

查看:28
本文介绍了使用谷歌图表选择字体系列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为任何非 Flash 谷歌图表可视化设置字体系列?专门用于图表轴上的文本等内容.谷歌图表功能强大,但丑陋.不幸的是,我不能转向更好的东西,比如 gRaphael.

Is it possible to set font-family for any of the non-flash Google chart visualizations? Specifically for things like the text on the chart axis. Google charts is powerful, but ugly. And unfortunately I can’t move to something nicer, like gRaphael.

推荐答案

查看 textstyle 属性,以 hAxis.textStyle 为例:

Have a look to the textstyle properties, take for example the hAxis.textStyle:

hAxis.textStyle: { color: '#FF0000', 
                   fontName: 'Arial', 
                   fontSize: '10' }

这篇关于使用谷歌图表选择字体系列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆