-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Axis title disappears when editing bar chart #30370
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
@dosu
When I comment out |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi! |
@viktorfilyk4 that would very much be appreciated. Ping us here if/when you open a PR. Thanks in advance! |
Has anyone managed to fix the problem? |
@BGZ-spec I am currently working on this. Trying to figure out what's the problem. The same for me, when I comment Any suggestions? |
@dosu |
To fix the issue with the X-axis title disappearing when both The visibility condition for the X-axis title is currently set to be visible only when the chart is vertical: visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isVertical(controls) : isHorizontal(controls), To ensure the X-axis title is visible when it should be, verify that the Similarly, ensure that the Y-axis title visibility condition is set correctly: visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isHorizontal(controls) : isVertical(controls), This condition ensures that the Y-axis title is visible when the chart is horizontal. Adjust the chart's orientation settings accordingly to make sure the axis titles appear as expected [1]. |
I'm experiencing this when creating a bar chart with a categorical x-axis in 4.0.2. |
Happens here too with a fresh setup of v4.0.2. Also, if the (X) axis title does not disappear, the title margin is not respected. |
Bug description
Description
When editing a bar chart in Superset, changing the X-axis title causes the title to disappear. Similarly, adjusting the margins leads to unexpected behavior—they either reset or are not applied correctly.
How to reproduce the bug
Screenshots/recordings
Screencast.from.2024-09-24.10-57-58.webm
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Firefox
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: