@code{ private Task OnPieInit(int dsCount, int daCount) { var ds = new ChartDataSource(); ds.Options.XAxes.Add(new ChartAxes() { LabelString = "天数" }); ds.Options.ShowXAxesLine = false; ds.Options.YAxes.Add(new ChartAxes() { LabelString = "数值" }); ds.Options.ShowYAxesLine = false; ds.Labels = Colors.Take(daCount); for (var index = 0; index < dsCount; index++) { ds.Data.Add(new ChartDataset() { Label = $"数据集 {index}", Data = Enumerable.Range(1, daCount).Select(i => Randomer.Next(20, 37)).Cast