You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rumbin (via GitHub)" <gi...@apache.org> on 2023/11/20 16:22:15 UTC
[I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
rumbin opened a new issue, #26034:
URL: https://github.com/apache/superset/issues/26034
When using a _numeric_ column as the generic x-axis, the x-axis values aren't linearly distributed along the x-axis but they are evenly distributed, just as if they were categorical values
#### How to reproduce the bug
0. Have the `GENERIC_CHART_AXES` feature flag enabled
1. Create a dataset or a SQLLab query with numerical columns, e.g.
```sql
select
*
from (values
(1,1)
, (2,2)
, (5,5)
, (10,10)
) as v(x,y)
```
2. Visualize the query/dataset as bar chart (or line chart)
3. Use `x` as x-axis and, e.g., `max(y)` as y-axis
4. See that the x-axis values are shown with equal spacing instead of the expected linear distribution of the x values
### Expected results
This is what it should look like and what it did correctly in Superset 2.0.1:

### Actual results
X-axis values are seemingly treated as categorical values:

Any distribution/scatter/histogram plots based on this functionality are actually unusable due to this bug.
### Environment
(please complete the following information):
- browser type and version:
- superset version: 3.0.2rc1
- 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.
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1829782290
Thank you all!
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "WojtekWaga (via GitHub)" <gi...@apache.org>.
WojtekWaga commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1820825237
Hey @villebro I checked the backend response and it's identical in this respect. I fed the json from Superset 2.0.1 backend into Superset 3.0.2rc1 frontend and it also misinterprets XAxis type. This made me convinced it's a FE issue. It looks like the getAxisTime defaults to AxisType.category in this case whereas it should return AxisType.time.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "rumbin (via GitHub)" <gi...@apache.org>.
rumbin commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1824834392
@villebro, we found a fix on our side. @WojtekWaga will report here tomorrow and/or provide a PR.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro closed issue #26034: [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values
URL: https://github.com/apache/superset/issues/26034
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1819498592
@villebro @zhaoyongjie Could you take a look at this one?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1819499398
I will take a look, thanks for reporting @rumbin
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1824837991
@rumbin @WojtekWaga oops, I already opened a fix 🙁 Do you mind reviewing the PR #26087 to see if it's in line with the changes you were proposing?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] [Regression] GENERIC_CHART_AXES: numeric x-axis treated as categorical values [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on issue #26034:
URL: https://github.com/apache/superset/issues/26034#issuecomment-1824809439
I was able to repro, investigating now
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org