GeezerVison is showing github.com — Text should contribute to autorange calculations · Issue #2000 · plotly/plotly.js
Text should contribute to autorange calculations #2000
Description
When drawing a scatter plot with
{ mode: 'lines+markers+text', fill: 'tonexty' }
or
{ mode: 'lines+markers+text', fill: 'tozeroy' }
the text of the first point and the last point is cut off:

JSFiddle: https://jsfiddle.net/sd7drgph/
Activity
changed the title
[-]Text is cut off on the first and last point of a filled scatter plot[/-] [+]Text should contribute to autorange calculations[/+] on Sep 13, 2017alexcjohnson commented on Sep 13, 2017
Known issue but doesn't look like we have an issue for it - thanks for bringing this up @RedShift1
I was going to suggest cliponaxis: false #1861 (your leftmost text item would overlap the tick labels but at least would be visible) but I notice that has problems with date axes... another bug report coming :)
alexcjohnson commented on Sep 13, 2017
Merging #2001 -> ensure our solution works for both scatter and bar traces.
etpinard commented on Jul 25, 2019
This would be a nice addition post #2704
gvwilson commented on Jun 10, 2024
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
emilykl commented on Sep 15, 2025
Metadata
Metadata
Development
No branches or pull requestsIssue actions