superset: Bar chart does not emit cross-filter if dimension is not set
A clear and concise description of what the bug is.
How to reproduce the bug
on superset 3.0.0
dashboard below before using cross filters
dashboard below after using cross filters on blue bar chart
same dashboard but using cross filters on the pie chart
same dashboard but using dimensions on bar chart
Expected results
cross filters work with bar chart without the need of dimensions
Actual results
cross filters on bar chart only work when using dimensions
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
- browser type and version:
- superset version:
superset version - python version:
python --version - node.js version:
node -v - any feature flags active:
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
Add any other context about the problem here.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 5
- Comments: 22 (11 by maintainers)
If category axis is not a date,you can set like this.It works for me.
(https://github.com/apache/superset/assets/49085215/7f1cd5c8-2267-45fe-92f3-927ac9898486) (https://github.com/apache/superset/assets/49085215/b404037f-c14f-46e4-a2e5-83343be0c4b5)
It works like a champ, thanks for your support
Thanks, but when doing this, char bars get too narrow
@visharavana this issue persists through 4.0.0. I do not know of a fix or workaround at this time.
Oh… I forget…
In CUSTOMIZE, you need choose “STACK” option…
Correct, it persists on the latest version 4.0.2 as well. I expect that if/when this is addressed, the pull request will link back here and close the issue.
Hi…
This issue persits on 4.0.1.
I think the ideal fix would be: bar charts without dimension emit cross-filters as if the series was a dimension. That seems to be the behavior people expect. I have no idea how hard that is to implement.