From ee7aa26e9885d185ea20dbb74b440cb3cf83c930 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 30 Dec 2025 11:40:02 +0800 Subject: [PATCH 1/3] chore: remove comment --- .../BootstrapBlazor.Chart/Components/Chart/Chart.razor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js b/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js index 6dfa0bb8..d6cdfd7b 100644 --- a/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js +++ b/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js @@ -356,7 +356,6 @@ const getChartOption = function (option) { } } - // pie 图除外默认显示 网格线与坐标系 if (option.type !== 'pie' && option.type !== 'doughnut') { if (option.options.showXScales === null) { scale.x.display = true From c67f459c7b8b8aa1de4dfa67b9c85791d121b068 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 30 Dec 2025 11:53:33 +0800 Subject: [PATCH 2/3] feat(Chart): keep data hidden --- .../BootstrapBlazor.Chart/Components/Chart/Chart.razor.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js b/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js index d6cdfd7b..9b46c58e 100644 --- a/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js +++ b/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js @@ -490,7 +490,13 @@ export function init(id, invoke, method, option) { } export function update(id, option, method, angle) { - const { invoke, chart } = Data.get(id) + const { invoke, chart } = Data.get(id); + option.data.forEach(d => { + const l = chart.legend.legendItems.find(i => i.text === d.label); + if(l) { + d.hidden = l.hidden; + } + }); let op = getChartOption(option); handlerClickData(invoke, op, option.options.onClickDataMethod); op.angle = angle From f8ffd7418d5b07ec6c324fad61613f0c472c9a98 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 30 Dec 2025 11:53:58 +0800 Subject: [PATCH 3/3] chore: bump version 10.0.2 --- .../BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj b/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj index 7a16f1a4..3570d624 100644 --- a/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj +++ b/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj @@ -1,7 +1,7 @@ - 10.0.1 + 10.0.2