← All changes
|
classes/Visualizer/Gutenberg/src/Components/ChartSelect.js
+1
-6
3.10.14
→
3.4.8
View file →
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | import PanelButton from './PanelButton.js'; |
| 23 | 23 | |
| 24 | 24 | import merge from 'merge'; |
| 25 | 25 | |
| 26 | -import { compact, formatDate, isValidJSON, formatData, googleChartPackages } from '../utils.js'; | |
| 26 | +import { compact, formatDate, isValidJSON, formatData } from '../utils.js'; | |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * WordPress dependencies |
| 30 | 30 | */ |
| @@ -55,9 +55,8 @@ | ||
| 55 | 55 | }; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | render() { |
| 59 | - let chartVersion = 'undefined' !== typeof google.visualization ? google.visualization.Version : 'current'; | |
| 60 | 59 | |
| 61 | 60 | let chart, footer; |
| 62 | 61 | |
| 63 | 62 | let data = formatDate( JSON.parse( JSON.stringify( this.props.chart ) ) ); |
| @@ -160,9 +159,8 @@ | ||
| 160 | 159 | options={ data['visualizer-settings'] } |
| 161 | 160 | /> |
| 162 | 161 | ) : ( '' !== data['visualizer-data-exploded'] ? ( |
| 163 | 162 | <Chart |
| 164 | - chartVersion={ chartVersion } | |
| 165 | 163 | chartType={ chart } |
| 166 | 164 | rows={ data['visualizer-data'] } |
| 167 | 165 | columns={ data['visualizer-series'] } |
| 168 | 166 | options={ |
| @@ -171,13 +169,11 @@ | ||
| 171 | 169 | compact( this.props.chart['visualizer-settings']) |
| 172 | 170 | } |
| 173 | 171 | height="500px" |
| 174 | 172 | formatters={ formatData( data ) } |
| 175 | - chartPackages={ googleChartPackages } | |
| 176 | 173 | /> |
| 177 | 174 | ) : ( |
| 178 | 175 | <Chart |
| 179 | - chartVersion={ chartVersion } | |
| 180 | 176 | chartType={ chart } |
| 181 | 177 | rows={ data['visualizer-data'] } |
| 182 | 178 | columns={ data['visualizer-series'] } |
| 183 | 179 | options={ |
| @@ -186,9 +182,8 @@ | ||
| 186 | 182 | compact( this.props.chart['visualizer-settings']) |
| 187 | 183 | } |
| 188 | 184 | height="500px" |
| 189 | 185 | formatters={ formatData( data ) } |
| 190 | - chartPackages={ googleChartPackages } | |
| 191 | 186 | /> |
| 192 | 187 | ) |
| 193 | 188 | ) } |
| 194 | 189 | |