Hello, the columnchart package is extremely outdated and deprecated. Use the newer corechart package to get the new charts and features. An added bonus is that you only have to load the corechart package to get ColumnChart, BarChart, LineChart, PieChart, CandlestickChart, BubbleChart, and ScatterChart.
- Sergey On Tue, Feb 18, 2014 at 3:42 PM, Evgueni Gordienko <[email protected]>wrote: > > The example below does not work - any hint what is wrong? > > Thanks, > Eugene > > <html> > <head> > <script type="text/javascript" src="https://www.google.com/jsapi > "></script> > <script type="text/javascript"> > google.load('visualization', '1', {'packages' : ['columnchart']}); > google.setOnLoadCallback(drawChart); > > function drawChart() { > var dataTable = new google.visualization.DataTable(); > dataTable.addColumn('string', 'Year'); > dataTable.addColumn('number', 'Sales'); > // A column for custom tooltip content > dataTable.addColumn({type: 'string', role: 'tooltip'}); > dataTable.addRows([ > ['2010', 600, '$600K in our first year!'], > ['2011', 1500, 'Sunspot activity made this our best year ever!'], > ['2012', 800, '$800K in 2012.'], > ['2013', 1000, '$1M in sales last year.'] > ]); > > var options = { legend: 'none' }; > var chart = new > google.visualization.ColumnChart(document.getElementById('traceChart')); > chart.draw(dataTable, options); > } > </script> > </head> > <body style="font-family: Arial;border: 0 none;"> > <div id="traceChart" style="width: 1200px; height: 800px;"></div> > </body> > </html> > > -- > 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 > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
