The code for the attached chart is shown below.....as you can see the customer names under the bars do not fit. I added the code for "SlantText" and it doesn't seem to work. What am I doing wrong?
function drawVisualization10() {
var chartdata = {dialog.object}._data;
var data = google.visualization.arrayToDataTable(chartdata);
var options = {
series: {
0: { axis: 'Price' },
1: { axis: 'Tons' }
},
hAxis: { slantedText:'true', slantedTextAngle:90 },
axes: {
y: {
Price: {label: 'Dollars'}, // Left y-axis.
Tons: {side: 'right', label: 'Tons'} // Right y-axis.
}
}
};
var chart = new google.charts.Bar(document.getElementById('visualization'));
chart.draw(data, google.charts.Bar.convertOptions(options));
};