ant-design-blazor / ant-design-blazor/ant-design-charts-blazor

ChangeData and Repaint are not updating Pie Chart Labels

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
186
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Labels do not update after changing a Pie Charts data set

`private IChartComponent PieDeploymentChart;`

![image](https://user-images.githubusercontent.com/1752840/194031727-b78c08b2-5d05-4f22-989f-7b3e18855ca2.png)

`var deployment = _jiraFiltered.Select(x => x.IncidentDeployment).GroupBy(x => x).OrderByDescending(x => x.Count()).Select(x => new { type = x.Key.ToString(), value = x.Count() }).ToArray();`

`PieDeploymentChart.ChangeData(deployment, true);`

Before:
![image](https://user-images.githubusercontent.com/1752840/194032246-b5b1b51b-6df7-48dc-8ce3-545694126c20.png)

After:
![image](https://user-images.githubusercontent.com/1752840/194032315-1418eb48-1206-4283-943b-e9927784c783.png)

I have tried to use .Repaint as well with no luck.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.