开发者

How do you vertically center legends using Google Charts API?

I'm开发者_开发技巧 having trouble vertically centering the legends in Google Charts Pie Graph. Anyone have previously experience? Or is the best bet to code my own pie graph?

Thanks in advance, Walker


Use the following in the charts option:

 var options = {
      title: 'My Daily Activities',
      legend: {'position':'top','alignment':'center'},
    };

The "legend.alignment" can be found in this documentation:

https://developers.google.com/chart/interactive/docs/gallery/piechart?csw=1


Are you using the chdlp and chma parameters?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜