Reset the zoom before destroying the chart.
parent
d4657dcd32
commit
b804f7db03
|
|
@ -102,6 +102,7 @@ export default function BaseChart({type='line', id, options, data, redraw=false,
|
|||
};
|
||||
|
||||
const destroyChart = function() {
|
||||
chartObj.current?.resetZoom?.();
|
||||
chartObj.current && chartObj.current.destroy();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue