How do you vertically center legends using the Google Graphics API?

I'm having trouble vertically centering the legends in the graph chart of Google graphs. Has anyone already had experience? Or is it best to put the code of my own pie?

Thanks in advance Walker

+3
source share
2 answers

In the chart list, use the following:

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

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

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

+7
source

Do you use chdlp and chma options?

+1
source

Source: https://habr.com/ru/post/1784314/


All Articles