dosubot[bot] commented on issue #29519:
URL: https://github.com/apache/superset/issues/29519#issuecomment-2215397490
<!-- Greeting -->
Hey @clavidk,
I'm here to help you with your Superset issue. I'm a bot designed to assist
you with bugs, questions, and contributions while you wait for a human
maintainer. Let's tackle this together!
<!-- Answer -->
The issue you're experiencing with dashboard-level filters not applying to
some mixed charts (combo line + bar charts with a primary and secondary y-axis)
is likely due to the `adhoc_filters` and `adhoc_filters_b` parameters having a
`comparator` set to "No filter". This configuration means that the chart is not
set up to apply any date range filter by default.
To resolve this, ensure that the `comparator` values in both `adhoc_filters`
and `adhoc_filters_b` are set to accept the date range filter from the
dashboard. Here is an example configuration:
```yaml
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
adhoc_filters_b:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
```
Additionally, the `transformProps` function in the
`superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/transformProps.ts`
file handles the transformation of chart properties, including the application
of filters. Ensuring that the `filterState` and `queriesData` are correctly
processed in this function can help in applying the dashboard-level date range
filter to mixed charts
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/examples/configs/charts/Featured
Charts/Mixed.yaml)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/transformProps.ts)</sup>.
If the issue persists, you might want to check for any recent updates or
changes in the Superset codebase that address the application of
dashboard-level filters to mixed charts. Recent updates have improved the
dashboard native filter feature, which provides a way to apply and manipulate
filters over many charts at the dashboard level, including mixed charts
<sup>[[3]](https://github.com/apache/superset/blob/master/RELEASING/release-notes-1-2/README.md)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/RELEASING/release-notes-1-1/README.md)</sup><sup>[[5]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/reducers/dashboardFilters.js)</sup><sup>[[6]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/util/activeDashboardFilters.js)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]