在Google图表顶部或底部的图例格式 [英] Legend formatting when at top or bottom of Google Chart
本文介绍了在Google图表顶部或底部的图例格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个图表,其中的图例由网址组成(可能有很多)
我想将它们排列在垂直列表或网格中,摆脱< >,但似乎无法解决问题。
我已浏览了文档,但没有显示出任何建议?
var options = {
解决方案
图例:{position:'top',maxLines:'6'},
vAxis:{format:'###,###'}
};
希望能帮到忙!
I've got a chart where the legend consists of URLs (there could be many)
I'd like to arrange them in a vertical list or grid and get rid of < >, but can't seem to work out how.
I've had a look through the docs but nothing stands out, any suggestions?
解决方案
Try this on your code:
var options = {
legend: { position: 'top', maxLines: '6'},
vAxis: {format:'###,###'}
};
Hope to help!
这篇关于在Google图表顶部或底部的图例格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文