| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | |
| 40 | 40 | function renderSpecificChart(id, chart) { |
| 41 | 41 | var render, container, series, data, table, settings, i, j, row, date, axis, property, format, formatter; |
| 42 | 42 | |
| 43 | - if ( $('#' + id).hasClass('visualizer-chart-loaded') || ( 'canvas' !== id && $('#' + id).children( ':not(.loader)' ).length > 0 ) ) { | |
| 43 | + if ( $('#' + id).hasClass('visualizer-chart-loaded') || $('#' + id).children( ':not(.loader)' ).length > 0 ) { | |
| 44 | 44 | return; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | if(chart.library !== 'google'){ |
| @@ -570,9 +570,9 @@ | ||
| 570 | 570 | |
| 571 | 571 | objects = {}; |
| 572 | 572 | if ( 'object' === typeof google ) { |
| 573 | 573 | $chart_types.push( 'controls' ); |
| 574 | - google.load( 'visualization', '51', {packages: $chart_types, mapsApiKey: v.map_api_key, 'language' : v.language, | |
| 574 | + google.load( 'visualization', 'current', {packages: $chart_types, mapsApiKey: v.map_api_key, 'language' : v.language, | |
| 575 | 575 | callback: function () { |
| 576 | 576 | gv = google.visualization; |
| 577 | 577 | all_charts = v.charts; |
| 578 | 578 | if(v.is_front == true && typeof v.id !== 'undefined'){ // jshint ignore:line |