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

Localize "Total" Label in Donut Chart

Đang mở
#29 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
186
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have a donut chart defined with:
```

protected DonutConfig ConfigSpreading { get; private set; } = new DonutConfig
{
ForceFit = true,
Color = new[] { "#314A9B", "#9D4FA0", "#E45E8D", "#FF8671", "#FFBD5E", "#F9F871", "#6154A2", "#F1F1E6" },
Theme = "dark",
Radius = 0.8,
Padding = "auto",
AngleField = "effort",
ColorField = "customer"
};
```

Here I want to localize the "Total" label. I saw in the source code that I can set:

`Statistic = new DonutViewConfigStatistic { Visible = true },
`
and in the OnInitializedAsync Method:

`ConfigSpreading.Statistic.TotalLabel = Localizer["TotalLabel"];`

How is this option intended to use?

But as soon as I set the Statistic Property the chart is no longer rendered.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.