-
Notifications
You must be signed in to change notification settings - Fork 76
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
Painting bugs with the Data Explorer column null percentage graph #4291
Labels
area: data explorer
Issues related to Data Explorer category.
area: ui
Issues related to UI category.
Milestone
Comments
softwarenerd
added
area: data explorer
Issues related to Data Explorer category.
area: ui
Issues related to UI category.
labels
Aug 8, 2024
Also covered (partly?) by #2861 |
Addressed in #4295. |
wesm
pushed a commit
that referenced
this issue
Aug 8, 2024
This PR addresses #2861 and #4291 by refining how the `ColumnNullPercent` component is painted. Now, when the column null percent is 100% or 0%, the graph is painted at 100% red or 0% red: ![image](https://github.com/user-attachments/assets/f469e5f7-4698-4efd-b3d4-74859afe81ec) When the column null percent is less than 5%, the graph is painted at 5% so that it registers properly: ![image](https://github.com/user-attachments/assets/20ffe522-3be9-432f-976e-14c5375b4830) Similarly, when the column null percent is greater than 95%, the graph is painted at 95% so that it registers properly: ![image](https://github.com/user-attachments/assets/b85ba64f-ee32-4aca-8af2-d93940c18305) Finally, as can be seen in the screen shots above, the graph is now clipped to prevent it from bleeding outside its bounds (which was happening, here's how that used to look): ![image](https://github.com/user-attachments/assets/e1a6a3a0-acf2-413f-b5bd-7275f182f836)
#2861 has been closed as a duplicate. |
Verified Fixed
Test scenario(s)Used polars data frame from qa-example-content with column b equal to null. Looks good. Link(s) to TestRail test cases run or created: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: data explorer
Issues related to Data Explorer category.
area: ui
Issues related to UI category.
System details:
Positron and OS details:
Positron Dev Version: 2024.08.0 build 0
Code - OSS Version: 1.91.0
Commit: Unknown
Date: Unknown
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Interpreter details:
Python 3.11.9
Describe the issue:
There are a couple of painting bugs with the Data Explorer column null percentage graph.
First, when 100% of the values in the column are null, the graph is painting as though some small percentage of the values are non-null:
The graph above should be 100% red with a grey border.
Second, the graph is bleeding outside of the rounded corners of the indicator:
The graph above should have a clean grey border.
Steps to reproduce the issue:
Expected or desired behavior:
The column null percentage graph should be drawn without these issues.
Were there any error messages in the UI, Output panel, or Developer Tools console?
No.
The text was updated successfully, but these errors were encountered: