From 76994a38f494462a495abaa17c94c0550e3479c1 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Sun, 18 Jan 2026 15:14:22 +0000 Subject: [PATCH] Stop dynamicOptions growing unrestricted --- ui/src/widgets/ui-chart/UIChart.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/widgets/ui-chart/UIChart.vue b/ui/src/widgets/ui-chart/UIChart.vue index 71beec29..45aa9e8e 100644 --- a/ui/src/widgets/ui-chart/UIChart.vue +++ b/ui/src/widgets/ui-chart/UIChart.vue @@ -188,13 +188,16 @@ export default { if (!updates) { return } + // merge the updates into the chart if (updates.chartOptions) { - // merge the updates into the chart if (this.chart) { this.chart.setOption(updates.chartOptions) + // consolidate the options applied this session + this.dynamicChartOptions = [this.chart.getOption()] + } else { + // add these options to the array of previous updates received this session + this.dynamicChartOptions.push(updates.chartOptions) } - // add these options to the array of previous updates received this session - this.dynamicChartOptions.push(updates.chartOptions) } }, generateChartOptions () {