Reset the zoom before destroying the chart.

This commit is contained in:
Akshay Joshi 2022-06-28 14:31:08 +05:30
parent d4657dcd32
commit b804f7db03

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