← All changes
|
classes/Visualizer/Gutenberg/src/Components/ChartRender.js
+3
-1
3.10.2
→
3.10.8
View file →
| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | import DataTable from './DataTable.js'; |
| 7 | 7 | |
| 8 | 8 | import merge from 'merge'; |
| 9 | 9 | |
| 10 | -import { compact, formatDate, isValidJSON, formatData } from '../utils.js'; | |
| 10 | +import { compact, formatDate, isValidJSON, formatData, googleChartPackages } from '../utils.js'; | |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * WordPress dependencies |
| 14 | 14 | */ |
| @@ -107,8 +107,9 @@ | ||
| 107 | 107 | compact( this.props.chart['visualizer-settings']) |
| 108 | 108 | } |
| 109 | 109 | height="500px" |
| 110 | 110 | formatters={ formatData( data ) } |
| 111 | + chartPackages={ googleChartPackages } | |
| 111 | 112 | /> |
| 112 | 113 | ) : ( |
| 113 | 114 | <Chart |
| 114 | 115 | chartVersion={ chartVersion } |
| @@ -121,8 +122,9 @@ | ||
| 121 | 122 | compact( this.props.chart['visualizer-settings']) |
| 122 | 123 | } |
| 123 | 124 | height="500px" |
| 124 | 125 | formatters={ formatData( data ) } |
| 126 | + chartPackages={ googleChartPackages } | |
| 125 | 127 | /> |
| 126 | 128 | ) ) } |
| 127 | 129 | |
| 128 | 130 | <div className="visualizer-settings__charts-footer"><sub> |