* Drop chart div before init it.

This commit is contained in:
songchenxuan
2023-09-18 13:09:23 +08:00
parent de52e6af24
commit d2c24fdff2
+2
View File
@@ -274,6 +274,8 @@ window.renderChart = function()
var $currentBox = $('#metricBox' + current.id);
if(viewType == 'single') $currentBox = $('.table-and-chart-single');
if(!$currentBox.find('.chart').length) return;
$currentBox.find('.chart').remove();
$currentBox.find('.chart-side').append('<div class="chart chart-container"></div>');
window.initChart($currentBox.find('.chart')[0], resultHeader, resultData);
}