Reset the zoom before destroying the chart.

pull/87/head
Akshay Joshi 2022-06-28 14:31:08 +05:30
parent d4657dcd32
commit b804f7db03
1 changed files with 1 additions and 0 deletions

View File

@ -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();
};