LevisNgigi opened a new pull request, #33831: URL: https://github.com/apache/superset/pull/33831
feat(dashboard): chart customization/dynamic group by in dashboards ### SUMMARY This PR introduces dashboard-level group by customization, allowing dashboard viewers to dynamically change how charts group data (e.g., by country, region, funder, etc.) directly from the dashboard, without editing the chart itself. Key functionality: Adds a Group By customization modal, similar to the existing native filters modal, where authors can configure one or more "group by" controls. Supports selecting a dataset to group charts by. Includes toggles for default values, required selection, and multi-select mode. When configured, the selected group by values are injected into the chart’s form data, replacing the original groupby field. Group by selections are broadcast to charts with matching datasets/columns, enabling dynamic drill-down or slice-and-dice capabilities. Group By controls appear in the filter bar alongside native filters and behave similarly with filter cards and popovers. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF https://github.com/user-attachments/assets/06ce2fc1-90f8-4340-8476-1cd16fa00e4f ### TESTING INSTRUCTIONS Open any dashboard and click the "Chart customization" option in the filter bar settings icon. In the Chart Customization modal, fill in name: Select a dataset. you can save at this point Optionally toggle: Default value – pick a value that will be pre-applied. Required – ensures a value must be selected to render charts. ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ x ] Introduces new feature or API - [ ] Removes existing feature or API FEATURE_AG_GRID_TABLE_ENABLED=true FEATURE_CHART_PLUGINS_EXPERIMENTAL=true -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org