Skip to content
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

Y Axis boundaries on Line/Area/Bar charts remove values rather than truncating. #27449

Open
2 of 3 tasks
rusackas opened this issue Mar 8, 2024 · 1 comment
Open
2 of 3 tasks

Comments

@rusackas
Copy link
Member

rusackas commented Mar 8, 2024

Bug description

Y axis truncation doesn't truncate the lines/areas, it deletes the data point entirely

How to reproduce the bug

  1. Create a dataset from this sample query:
SELECT 1 AS value, '2023-01-01'::date AS date
UNION ALL
SELECT 2, '2023-01-02'::date
UNION ALL
SELECT 3, '2023-01-03'::date
UNION ALL
SELECT 4, '2023-01-04'::date
UNION ALL
SELECT 1000, '2023-01-05'::date
UNION ALL
SELECT 4, '2023-01-06'::date
UNION ALL
SELECT 2, '2023-01-07'::date
UNION ALL
SELECT 3, '2023-01-08'::date
UNION ALL
SELECT 4, '2023-01-09'::date
UNION ALL
SELECT 2, '2023-01-10'::date
UNION ALL
SELECT 3, '2023-01-11'::date
UNION ALL
SELECT 4, '2023-01-12'::date
UNION ALL
SELECT 2, '2023-01-13'::date
UNION ALL
SELECT 3, '2023-01-14'::date
UNION ALL
SELECT 4, '2023-01-15'::date
UNION ALL
SELECT 3, '2023-01-16'::date
UNION ALL
SELECT 4, '2023-01-17'::date
UNION ALL
SELECT 2, '2023-01-18'::date
UNION ALL
SELECT 3, '2023-01-19'::date
UNION ALL
SELECT 4, '2023-01-20'::date;
  1. Create a line chart (or area chart) plotting this time series. Awesome:
image

Now turn on Y Axis truncation, and set the Max value to something less than our high peak of 1000.
image

Expected result - proper truncation (in 3.0)
image

Acutal result - that data point on the 5th is just GONE:
image

Screenshots/recordings

See above.

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

I love this new issue submission form!!!

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@rusackas rusackas changed the title Y Axis boundaries on Line/Area charts remove values rather than truncating. Y Axis boundaries on Line/Area/Bar charts remove values rather than truncating. Mar 8, 2024
@rusackas
Copy link
Member Author

rusackas commented Mar 8, 2024

Same is happening on Bar charts, it seems:
image
becomes
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant