feat(Chart): add Stack parameter (#4038)

* Revert "feat(Layout): do not render Header/Footer if template is null (#3946)"

This reverts commit 1b727d972b.

* Reapply "feat(Layout): do not render Header/Footer if template is null (#3946)"

This reverts commit ebc5367d63ab00a3b230abf4813c13213beeef89.

* 增加堆叠分组属性。

---------

Co-authored-by: Argo Zhang <argo@live.ca>
This commit is contained in:
AiZhen 2024-08-12 23:35:23 +08:00 committed by GitHub
parent 04026f7f29
commit e3cfcdc98b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,4 +77,9 @@ public class ChartDataset
/// 获得/设置 柱状图的边框颜色数组 /// 获得/设置 柱状图的边框颜色数组
/// </summary> /// </summary>
public string[] BorderColor { get; set; } = { "rgb(255, 205, 86, 0)" }; public string[] BorderColor { get; set; } = { "rgb(255, 205, 86, 0)" };
/// <summary>
/// 获得/设置 <see cref="ChartOptions.X"/> 等轴线 <see cref="ChartAxes.Stacked"/> 为 <see langword="true"/> 时的分组名称。
/// </summary>
public string? Stack { get; set; }
} }