sxx*_*xxx 16 html google-visualization
如何在Google图表中更改标题的字体大小?
var options = {
title: 'My Daily Activities',
'backgroundColor': 'transparent',
is3D: true,
};
Run Code Online (Sandbox Code Playgroud)
j3f*_*3ff 44
在这样的选项中使用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
}
}
Run Code Online (Sandbox Code Playgroud)
您可以在https://developers.google.com/chart/interactive/docs找到Google图表的完整支持指南