Fix candle reload bug

closes #1742
This commit is contained in:
Matthias 2024-02-08 07:07:24 +01:00
parent cfcb9e5da5
commit a1b2598b5c

View File

@ -140,7 +140,7 @@ usePercentageTool(
toRef(() => props.theme),
toRef(() => props.dataset.timeframe_ms),
);
console.log(candleChart);
function updateChart(initial = false) {
if (!hasData.value) {
return;
@ -493,7 +493,7 @@ function updateChart(initial = false) {
// console.log('chartOptions', chartOptions.value);
candleChart.value?.setOption(chartOptions.value, {
replaceMerge: ['series', 'grid', 'yAxis', 'xAxis', 'legend'],
notMerge: !initial,
notMerge: initial,
});
}