It all works but the documentation is a little difficult to understand in 
places.

There's another way of drawing the graphs and that uses an object called 
ChartWrapper - 
https://developers.google.com/chart/interactive/docs/reference#chartwrapperobject
 

In that, you can set the options using dot notation as in *setOption(key, 
value)* so you can use things like *setOption('hAxis.slantedText', 'true')*

*var options* uses bracket notation but in the list of available options 
dot notation is used. You just need to realize how to change the dot 
notation to bracket notation.

In the histogram documentation one of the options is given as 
*histogram.hideBucketItems* but you cannot use that. It has to be changed 
to *histogram: {hideBucketItems: true},*

Likewise for *hAxis.title* that has to be changed to *hAxis: { title: 
'Energy-use per square ft.'},*

Here's your new options:

var options = {
          title: 'Efficiency of East Bank Buildings',
          legend: { position: 'none' },
          colors: ['gold'],
  hAxis: { title: 'Energy-use per square ft.'},
  histogram: {hideBucketItems: true},
 };


Ray





-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/bf1b4457-bca7-4db2-a900-452f248b999c%40googlegroups.com.

Reply via email to