GitHub user dosubot[bot] added a comment to the discussion: Mixed Timeseries chart does not expose existing X-Axis Sort controls (pip installation)
<!-- Answer --> Yes, you're targeting the correct injection point. The fix involves adding `x_axis_sort` and `x_axis_sort_asc` into the `controlSetRows` within the Mixed Timeseries control panel. However, there's an important nuance: the Mixed Timeseries chart uses a **suffixed naming pattern** for controls (e.g., `metrics`, `metrics_b`) to keep Query A and Query B separate. So if you're adding these to the `createQuerySection()` helper, you'd follow this pattern [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/controlPanel.tsx#L64-L133): ```typescript [{ name: `x_axis_sort${controlSuffix}`, config: xAxisSortControl }], [{ name: `x_axis_sort_asc${controlSuffix}`, config: xAxisSortAscControl }], ``` That said, since the X-axis is **shared** between both queries (it's in the shared query fields section, not per-query), you may actually want to add these controls to the **shared query fields section** rather than inside `createQuerySection()`. In the regular Timeseries chart, these controls sit alongside `x_axis` and `time_grain_sqla` [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-chart-controls/src/sections/echartsTimeSeriesQuery.tsx#L50-L57): ```typescript controlSetRows: [ ['x_axis'], ['time_grain_sqla'], [xAxisForceCategoricalControl], [xAxisSortControl], [xAxisSortAscControl], ...controlsWithoutXAxis, ] ``` Since both queries in Mixed Timeseries share the same X-axis, placing the sort controls in the shared section (where `x_axis` and `time_grain_sqla` already live) is likely the more correct approach—otherwise you'd have conflicting sort settings between Query A and Query B. Also note that `xAxisSortAscControl` has conditional visibility—it only shows when `x_axis_sort` has a value [[3]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/customControls.tsx#L156-L170)—so you'll want to make sure that visibility logic is preserved in your patch. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).* --- Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=f9f1c6b2-b356-47db-8280-3132b48fd4c7) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset) GitHub link: https://github.com/apache/superset/discussions/40011#discussioncomment-16876366 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
