Google visualization Google图表工具截断y轴标签

Google visualization Google图表工具截断y轴标签,google-visualization,truncated,axis-labels,Google Visualization,Truncated,Axis Labels,与a一起工作,我得到的是: 这里是我的自定义选项 var options = { width: 500, height: 240, legend : 'none', vAxis:{title:'Answers',textStyle:{color: '#005500',fontSize: '12', paddingRight: '100',marginRight: '100'}}, hAxis: { title: 'Percentage', textStyle:

与a一起工作,我得到的是:

这里是我的自定义选项

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选项就是您要找的。尝试类似的操作,然后乱用chartArea.left和chartArea.width值(但总宽度应为500),直到y标签全部可见:

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} 
 };

图表区域宽度可以按百分比设置。图表区域:{宽度:50%}。这将使左栏最多保留图表总宽度的50%