Fix clipped chart axis labels - #64
Merged
Merged
Conversation
Prompt To Fix All With AI### Issue 1
frontend/src/components/widgets/ChartWidget.tsx:1367
**Automatic width collapses plot area**
If a scatter or bubble chart's categorical Y field contains a long query-result value, `width="auto"` allocates the label's full rendered width to the axis, causing the plotting area to collapse or become unreadable.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "Fix clipped chart axis labels" | Re-trigger Greptile |
karakanb
force-pushed
the
fix-default-axis-labels
branch
from
August 18, 2026 17:54
4e1e46e to
d5708be
Compare
Prompt To Fix All With AI### Issue 1
frontend/src/components/widgets/ChartWidget.tsx:1161-1164
**Automatic width collapses plot area**
When a numeric axis formatter renders a long tick label, `width="auto"` allocates the label's full measured width to the axis without a maximum, causing narrow or dual-axis charts to lose their usable plotting area.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (2): Last reviewed commit: "Preserve categorical scatter axis width" | Re-trigger Greptile |
|
Reviews (3): Last reviewed commit: "Cap automatic axis width" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix clipped formatted Y-axis ticks by measuring their rendered width and removing negative left offsets.
Testing
make testmake buildChecklist
docs/and updated (or added) the relevant pages