set_chart_series_grouping
Creates dynamic series groupings in a chart by applying a field or expression, enabling fan-out into multiple series for unknown categories.
Instructions
Promote a chart's static ChartMember to a dynamic-fanout series. Writes /////. At render time, one rendered series is produced per distinct value of the group expression — the '13 violation types unknown at design time' fan-out. group_field='Type' is a shorthand for =Fields!Type.Value; group_expression accepts any VB.NET. Mutually exclusive. replace=False (default) refuses if the ChartMember already has a ; pass replace=True to overwrite. Operates on the FIRST ChartMember in the hierarchy (v0.4 commit 21 scope; multi-member chains aren't reachable from any v0.4 tool). Returns {chart, series, kind: 'ChartGroup', group_name, expression, changed}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| replace | No | ||
| chart_name | Yes | ||
| group_field | No | ||
| series_name | Yes | ||
| group_expression | No |