From 9709375d9ea1f88620e9ab224069fe3eb11ef4d5 Mon Sep 17 00:00:00 2001 From: Atanas Korchev Date: Fri, 24 Apr 2026 13:04:09 +0300 Subject: [PATCH] Refresh chart when a series is removed Removing a series from the chart only dropped it from the Series list without rebuilding the category/value scales. When a RadzenChart instance was reused across a render that replaced its series, new series' Data callbacks would refresh the scale while the outgoing series were still present, and after they were finally disposed the scale kept the stale categories. Triggering a refresh on removal rebuilds the scales from the live series set. --- Radzen.Blazor/RadzenChart.razor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Radzen.Blazor/RadzenChart.razor.cs b/Radzen.Blazor/RadzenChart.razor.cs index 3b1dc63c7..2a4234671 100644 --- a/Radzen.Blazor/RadzenChart.razor.cs +++ b/Radzen.Blazor/RadzenChart.razor.cs @@ -314,7 +314,10 @@ namespace Radzen.Blazor internal void RemoveSeries(IChartSeries series) { - Series.Remove(series); + if (Series.Remove(series)) + { + _ = Refresh(false); + } } /// /// Returns the Series used by the Chart.