Builder for bar charts. For more details, see the Google Charts documentation.
Here is an example that shows how to build a bar chart. The data is imported from a
Google spreadsheet.
// Get sample data from a spreadsheet.
var dataSourceUrl = 'https://docs.google.com/spreadsheet/tq?range=B1%3AC11' +
'&key=0Aq4s9w_HxMs7dHpfX05JdmVSb1FpT21sbXd4NVE3UEE&gid=0&headers=-1';
var chartBuilder = Charts.newBarChart()
.setTitle('Top Grossing Films in US and Canada')
.setXAxisTitle('USD')
.setYAxisTitle('Film')
.setDimensions(600, 500)
.setLegendPosition(Charts.Position.BOTTOM)
.setDataSourceUrl(dataSourceUrl);
var chart = chartBuilder.build();
Builder for bar charts. For more details, see the Google Charts documentation.
Here is an example that shows how to build a bar chart. The data is imported from a Google spreadsheet.