File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed
packages/web/src/components/chart Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -253,28 +253,23 @@ class ReactiveChart extends React.Component {
253253 const { options, currentValue } = this . state ;
254254 const { setOption } = this . props ;
255255 const results = parseHits ( hits ) || [ ] ;
256- if ( setOption ) {
257- return setOption ( {
258- aggregationData : options ,
259- rawData,
260- value : currentValue ,
261- data : results ,
262- xAxisField,
263- yAxisField,
264- } ) ;
265- }
266- return ReactiveChart . getOption ( {
267- chartType,
268- value : currentValue ,
256+ const chartOptions = {
269257 aggregationData : options ,
258+ rawData,
259+ value : currentValue ,
260+ data : results ,
261+ xAxisField,
262+ yAxisField,
263+ chartType,
270264 title,
271265 labelFormatter,
272266 xAxisName,
273267 yAxisName,
274- xAxisField,
275- yAxisField,
276- data : results ,
277- } ) ;
268+ } ;
269+ if ( setOption ) {
270+ return setOption ( chartOptions ) ;
271+ }
272+ return ReactiveChart . getOption ( chartOptions ) ;
278273 } ;
279274 handleRange = ( ...args ) => {
280275 const { useAsFilter, onDataZoom } = this . props ;
You can’t perform that action at this time.
0 commit comments