如何更改Google图表中标题的字体大小?
var options = {
title: 'My Daily Activities',
'backgroundColor': 'transparent',
is3D: true,
};
在这样的选项中使用titleTextStyle
var options = {
titleTextStyle: {
color: <string>, // any HTML string color ('red', '#cc00cc')
fontName: <string>, // i.e. 'Times New Roman'
fontSize: <number>, // 12, 18 whatever you want (don't specify px)
bold: <boolean>, // true or false
italic: <boolean> // true of false
}
}
您可以在这里https://developers.google.com/chart/interactive/docs上找到有关Google图表的完整支持指南。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句