¿Cómo se centran las leyendas verticalmente con la API de Google Charts?

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

preguntado el 09 de enero de 11 a las 00:01

¿Está utilizando el static image API? -

I believe so - that link is to exactly what we used. 2D pie chart. -

This is what we were using: code.google.com/apis/visualization/documentation/gallery/… -> and using the parameters listed for styling. -

2 Respuestas

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

Respondido 03 Oct 14, 12:10

Are you using the chdlp and chma parameters?

Respondido el 09 de enero de 11 a las 03:01

nope, didn't see that - looking into it now. This is the exactly how we want the legend to align, but I don't see any parameter that indicates centering. - Andador

code.google.com/apis/visualization/documentation/gallery/… <- those are the parameters we were using / I was aware of. - Andador

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.