Herramientas de Google Chart truncando etiquetas del eje y


Trabajando con un gráfico de barras de Google , esto es lo que tengo:

introduzca la descripción de la imagen aquí

Aquí mis opciones personalizadas

var options = {
    width: 500, height: 240,
    legend : 'none',
    vAxis:{title:'Answers',textStyle:{color: '#005500',fontSize: '12', paddingRight: '100',marginRight: '100'}},
    hAxis: { title: 'Percentage', textStyle: { color: '#005500', fontSize: '12', paddingRight: '100', marginRight: '100'} } 
 };

No puedo establecer un ancho para estos <g> / <rect> ¿etiquetas?

Author: Junior M, 2012-01-17

2 answers

Creo que la ChartArea.la opción izquierda es lo que estás buscando. Prueba algo como esto, y juega con ChartArea.izquierda y ChartArea.valores de ancho (deben sumar hasta su ancho total de 500) hasta que sus etiquetas y sean todas visibles:

var options = {
    width: 500, height: 240,
    legend : 'none',
    vAxis:{title:'Answers',textStyle:{color: '#005500',fontSize: '12', paddingRight: '100',marginRight: '100'}},
    hAxis: { title: 'Percentage', textStyle: { color: '#005500', fontSize: '12', paddingRight: '100', marginRight: '100'} },
    chartArea: {left:100, width: 400} 
 };
 43
Author: Tom Hughes,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-04-20 16:18:50

El ancho de la zona gráfica se puede establecer en porcentaje. ChartArea: {ancho: 50%}. Esto dejará hasta el 50% del ancho total del gráfico en la columna izquierda.

 2
Author: flm,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-09-20 00:55:56