我一直在试图找到答案,但是我没有这么幸运。我想知道是否可以使用Google脚本在图表的图例中添加一些自定义?如果是这样的话,也许你们会指出我正确的方向吗?提前致谢。
这是我到目前为止设置的选项。
options = {'title':'Production',
'width':1366,
'height':768,
'vAxis': {'format': '$#,##0.00;($#,##0.00)',
'title': 'Money'},
'hAxis': {'title': 'Month'}
};
此致Sicariuxs
以下示例说明了如何使用Google图表自定义图表的图例:
var options = {
//sliceVisibilityThreshold: 0.01,
chartArea:{left:10,top:0,width:'100%',height:'100%'},
height: 300,
legend: { position: 'right', textStyle: {fontSize: 7}},
pieSliceText: 'none',
colors:['#03A9F4','#0091EA']
};
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句