Issue with legend pagination (Google Interactive chart API)

蹲街弑〆低调 提交于 2020-01-25 01:08:30

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/4244102/issue-with-legend-pagination-google-interactive-chart-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!