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?
精彩评论