You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "asishPatnaik2000 (via GitHub)" <gi...@apache.org> on 2026/06/25 07:14:12 UTC
[D] How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0? [superset]
GitHub user asishPatnaik2000 created a discussion: How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0?
How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0?
GitHub link: https://github.com/apache/superset/discussions/41411
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0? [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0?
<!-- Answer -->
Unfortunately, **Superset v6.0.0 does not have a built-in toggle to completely hide the X-axis** on ECharts-based bar charts [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/Regular/Bar/controlPanel.tsx) [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts).
The Customize tab does offer these X-axis options, but none fully hide it:
- **X Axis Title** — you can leave this blank to remove the title [[3]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/Regular/Bar/controlPanel.tsx#L62-L74)
- **X Axis Label Rotation** — rotate labels (0°, 45°, 90°) [[4]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/Regular/Bar/controlPanel.tsx#L171-L179)
- **Truncate X Axis** / **X Axis Bounds** — control numerical range [[5]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx#L328-L357)
**Workarounds to visually hide the X-axis:**
1. **Custom CSS** — In the chart's dashboard context, you can add custom CSS to hide the axis. Go to the dashboard, click the three-dot menu on the chart card → enter CSS like:
```css
.echarts-for-react svg g[clip-path] ~ g:last-of-type { display: none; }
```
*(The exact selector may vary — inspect the rendered chart to target the axis group.)*
2. **Code-level change** — If you're self-hosting, you could modify the ECharts `transformProps` to add `show: false` to the `xAxis` configuration object [[6]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts#L498-L523).
There's no simpler path at the moment. If this is important to your workflow, consider opening a feature request for an "X-axis visibility" toggle.
<!-- 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=72dd3ab9-1d7e-4d8f-bfcd-71f1cb312edb) [](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/41411#discussioncomment-17430397
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0? [superset]
Posted by "amlan5 (via GitHub)" <gi...@apache.org>.
GitHub user amlan5 added a comment to the discussion: How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0?
@dosu I couldn't find the option "Go to the dashboard, click the three-dot menu on the chart card". I tried it inside Themes and CSS in the edit dashboard option. It didn't work.
`.chart-slice[data-test-chart-name="Hierarchy Tree"] .echarts-for-react svg g[clip-path] ~ g:last-of-type {
display: none !important;
}`
GitHub link: https://github.com/apache/superset/discussions/41411#discussioncomment-17430632
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0? [superset]
Posted by "asishPatnaik2000 (via GitHub)" <gi...@apache.org>.
GitHub user asishPatnaik2000 added a comment to the discussion: How to hide X-axis in a dashboard for a specific bar chart in superset v6.0.0?
@dosu any help here?
GitHub link: https://github.com/apache/superset/discussions/41411#discussioncomment-17430334
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org