The slanttext options are not supported for the material charts.  You might
want to use ColumnChart with theme: 'material' option to get the colors and
fonts of the material style.

On Fri, Apr 22, 2016 at 9:25 PM, Thomas Ritter <[email protected]>
wrote:

>
> 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));
>
>     };
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/1f7743ec-c130-4b45-ab35-6df8c3cdd3a2%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/1f7743ec-c130-4b45-ab35-6df8c3cdd3a2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNJkFd099NYN3%3DZyPcu%3Do0RbhjUG_pU5EW60rwZy7_cqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to