<html><head><script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script><script type="text/javascript">google.charts.load('current', {'packages':['bar']});google.charts.setOnLoadCallback(drawChart);function drawChart() {var data = google.visualization.arrayToDataTable([['Year', 'Paid', 'Suspended', 'Offered'],['2009', 1030, 540, 1350],['2010', 1000, 400, 200],['2011', 1170, 460, 250],['2012', 660, 1120, 300],['2013', 1030, 540, 1350],['2014', 1000, 400, 200],['2015', 1170, 460, 250],['2016', 660, 1120, 300],['2017', 1030, 540, 1350],['2018', 1000, 400, 200],]);var options = {isStacked: true,// height: 300,title: 'Awards Offered, Suspended, and Paid',subtitle: 'FY2009 - FY2018',legend: {position: 'bottom', maxLines: 3},bar: { groupWidth: "61.8%" },colors:['green'],vAxis: {format: 'decimal',minValue: 0,ticks: [0, .3, .6, .9, 1]}};var chart = new google.charts.Bar(document.getElementById('columnchart_material'));chart.draw(data, google.charts.Bar.convertOptions(options));}</script></head><body><div id="columnchart_material" style="width: 800px; height: 500px;"></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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/6811a668-3040-4f34-bdec-649ca92f795b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/09362f74-b34d-42ee-9251-dd14f9557189%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var visualization = new google.visualization.ColumnChart(container);
Yes, you need to change your google.load() call to load the 'corechart' package, and then google.visualization.ColumnChart will be defined. See documentation here: https://developers.google.com/chart/interactive/docs/gallery/columnchart#stacked-column-charts
On Wed, Mar 13, 2019 at 1:22 PM Heywood Buzzfuddle <heyb...@gmail.com> wrote:
--
If I dochart.draw(data, google.charts.BarChart.convertOptions(options));
orchart.draw(data, google.charts.ColumnChart.convertOptions(options));
it doesn't render.
The only place i see google.visualization in my code anywhere isgoogle.visualization.arrayToDataTableAm I supposed to somehow change this line:var chart = new google.charts.Bar(document.getElementById('columnchart_material'));Terribly confused.
On Wednesday, March 13, 2019 at 11:46:40 AM UTC-5, Daniel LaLiberte wrote:Sorry, the 'percent' and 'relative' stacking option is not supported by the material 'Bar' chart. If you can use the google.visualization.BarChart or ColumnChart, it should work. You might want to use the 'theme': 'material' option to get the material colors and fonts.
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/09362f74-b34d-42ee-9251-dd14f9557189%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--dlali...@Google.com Cambridge MA
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/09362f74-b34d-42ee-9251-dd14f9557189%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--dlali...@Google.com 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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/af6b10cc-375b-4f83-91df-178ac7967a3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You need to replacevar chart = new google.charts.ColumnChart(document.getElementById('columnchart_material'));withvar chart = new google.visualization.ColumnChart(document.getElementById('columnchart_material'));Also, with the 'corechart' charts, many options are different, and you should *not* call google.charts.Bar.convertOptions(). Maybe it would help to start with a full example (from the documentation page) that uses google.visualization.ColumnChart() with percent stacking, and then swap in your data, and add options incrementally.