Skip to content

fix(heatmap): correctly render int and boolean falsy values on axes #33238

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sfirke
Copy link
Member

@sfirke sfirke commented Apr 25, 2025

SUMMARY

Currently values of 0 and false on a heatmap axis render as <NULL>. This fixes that.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE
Screenshot from 2025-04-24 20-52-14
Screenshot from 2025-04-24 21-16-39

AFTER
Screenshot from 2025-04-24 20-44-08
Screenshot from 2025-04-24 21-08-55

TESTING INSTRUCTIONS

Create a new dataset in SQL Lab like this and make a heatmap.

SELECT column1 as foo, column2 as bar, column3::boolean as is_active
FROM (VALUES 
    (0, 0, 't'),
    (1, 1, 'f'),
    (2, 2, 't'),
    (1, 0, 'f'),
    (0, 2, 't'),
    (2, 2, 'f')
) as t(column1, column2, column3);

ADDITIONAL INFORMATION

@dosubot dosubot bot added the viz:charts:heatmap Related to the Heatmap chart label Apr 25, 2025
@sfirke
Copy link
Member Author

sfirke commented Apr 25, 2025

The heatmap y-axis sort is still broken, as noted in that issue. You can see that in the AFTER images still above.

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've completed my review and didn't find any issues.

Files scanned
File Path Reviewed
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/transformProps.ts

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@sfirke sfirke requested a review from michael-s-molina April 25, 2025 01:33
@sfirke sfirke changed the title fix(heatmap): correct render int and boolean falsy values fix(heatmap): correctly render int and boolean falsy values on axes Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugins size/XS viz:charts:heatmap Related to the Heatmap chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants