Skip to content

Fix clipped chart axis labels - #64

Merged
karakanb merged 3 commits into
mainfrom
fix-default-axis-labels
Aug 18, 2026
Merged

Fix clipped chart axis labels#64
karakanb merged 3 commits into
mainfrom
fix-default-axis-labels

Conversation

@karakanb

Copy link
Copy Markdown
Contributor

Summary

Fix clipped formatted Y-axis ticks by measuring their rendered width and removing negative left offsets.

Testing

  • make test
  • make build
  • relevant example or manual smoke test

Checklist

  • scanned docs/ and updated (or added) the relevant pages
  • examples updated if the authoring model changed
  • screenshots or recordings attached for UI changes

@greptile-apps

greptile-apps Bot commented Aug 18, 2026

Copy link
Copy Markdown

Fix all with Greploop Fix All in Conductor

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

Comment thread frontend/src/components/widgets/ChartWidget.tsx Outdated
@karakanb
karakanb force-pushed the fix-default-axis-labels branch from 4e1e46e to d5708be Compare August 18, 2026 17:54
@greptile-apps

greptile-apps Bot commented Aug 18, 2026

Copy link
Copy Markdown

Fix all with Greploop Fix All in Conductor

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

Comment thread frontend/src/components/widgets/ChartWidget.tsx Outdated
@greptile-apps

greptile-apps Bot commented Aug 18, 2026

Copy link
Copy Markdown

Reviews (3): Last reviewed commit: "Cap automatic axis width" | Re-trigger Greptile

@karakanb
karakanb merged commit d701edb into main Aug 18, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant