See https://docs.mendix.com/refguide/charts-configuration for information about the configuration for charts.
Don't think there is an out of the box solution for this built in. What i should do:
- Use the chart widget and use a microflow as datasource
- The datasource microflow retries the data.
- Create the filter buttons yourself.
- each filter button should have a microflow attached which adds the filter and refreshes the dataview around the chart widget.