Skip to content

Add Stack property to BarChartDataset and LineChartDataset#31

Open
berndlueneburg wants to merge 2 commits into
BlazorExpress:mainfrom
berndlueneburg:feature/dataset-stack
Open

Add Stack property to BarChartDataset and LineChartDataset#31
berndlueneburg wants to merge 2 commits into
BlazorExpress:mainfrom
berndlueneburg:feature/dataset-stack

Conversation

@berndlueneburg
Copy link
Copy Markdown

Summary

Implements the stack dataset property for BarChartDataset and
LineChartDataset — both files already carry a //stack placeholder.

stack is a standard Chart.js dataset option. On a stacked scale,
datasets sharing the same stack id are combined; datasets with
different ids render independently. This enables the documented
"Stacked Bar with Groups" chart, currently not expressible via the wrapper.

Changes

  • BarChartDataset: new string? Stack (replaces the //Stack placeholder)
  • LineChartDataset: new string? Stack (replaces the //stack placeholder)

Both follow the existing property pattern ([AddedVersion],
[DefaultValue(null)], [Description], [ParameterTypeName],
[JsonIgnore(WhenWritingNull)]). Purely additive — no behaviour change,
omitted from JSON when null.

[AddedVersion("1.2.3")] is a placeholder — happy to adjust to whatever
the next release version should be.

Added Stack property to BarChartDataset for dataset grouping.
Added Stack property to LineChartDataset for dataset grouping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant