图例分页问题(Google 交互式图表 API)

发布于 2024-10-03 21:25:46 字数 239 浏览 0 评论 0原文

我正在使用谷歌交互式图表来显示折线图等图表, 条形图、饼图等 我在图表顶部显示图例。对于漫长的传说来说, 新发布 Google Visualization API(第 7 版)后,图例出现在分页方面 默认情况下,2010 年 11 月)。 但我不想将其显示为分页。可以显示吗 这以不同的方式,所有的传说都在顶部的一个视图下? 或者是否可以在第二行显示更多图例,即 就在第一行图例的下方(如果有更多)? 我无法找到如何配置它。 请帮我。 谢谢!

I am using google interactive chart for showing chart like linechart,
barchart, piechart etc.
I am showing legends in the top of chart. For long legends, the
legends are appearing in terms of pagination after new release of Google Visualization API(7th
November 2010) by default.
But i don't want to show this as pagination. Can it possible to show
this in different way by that all legends come under one view in top?
Or can it possible to show the more legends in the second line i.e
just below of 1st line of legends(in case of more)?
I am not able to find how to configure this.
Please help me.
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凶凌 2024-10-10 21:25:46

一旦可以指定图例的字体大小:

legendTextStyle: {color: <string>, fontName: <string>, fontSize: <number>}

或者可以调整图表的宽度,为图例腾出更多空间。

查看更多信息:http://code.google.com/apis/图表/interactive/docs/gallery/barchart.html

Once can specify the font size of the legend:

legendTextStyle: {color: <string>, fontName: <string>, fontSize: <number>}

or alternatively play around with the width of the chart to make up more room for the legend.

See more: http://code.google.com/apis/chart/interactive/docs/gallery/barchart.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文