Changes in Column Chart?

25 views
Skip to first unread message

David Segarra

unread,
Feb 29, 2016, 4:27:23 AM2/29/16
to Google Visualization API
there has been some change in column charts? Saturday graphics are perfectly looked and this morning, without changing anything, not displayed.

The code is as follows:


                  <div id="chart_div" style="padding-bottom: 10px;"></div>
                  <script  type="text/javascript">
                      google.charts.load('current', {packages: ['corechart', 'bar'], 'language': 'es'});
                    google.charts.setOnLoadCallback(drawChart);
                    function drawChart() {
                       
                         var data = google.visualization.arrayToDataTable([
                             ["", "", { role: "style" }],
                             [""+<%=request.getAttribute("ano1") %>, <%=total%>, '#A4A4A4'],
                             [""+<%=request.getAttribute("ano2") %>, <%=total2%>, '#D8D8D8'],
                         ]);
                       
                         var options = {
                                  legend: { position: 'none' },
                                  bar: {groupWidth: "50%"},
                                  chart: {
                                    title: ' ',
                                  },
                                  bars: 'vertical',
                                  vAxis: {format: 'currency', minValue: 0},
                                  height: 500,
                                  width: 500,
                                  colors: ['#A4A4A4', '#D8D8D8']
                                };
                         var chart = new google.visualization.ColumnChart(document.getElementById("chart_div"));
                         chart.draw(data, google.charts.Bar.convertOptions(options));
                      }
                </script>

Daniel LaLiberte

unread,
Feb 29, 2016, 8:57:55 AM2/29/16
to Google Visualization API
Change 'current' to '44' and it should work.

--
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/9f6880f2-030b-48be-8bda-c4c236fb702e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages