plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Text should contribute to autorange calculations

Open RedShift1 opened this issue 8 years ago • 5 comments

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:

plotly_filled

JSFiddle: https://jsfiddle.net/sd7drgph/

RedShift1 avatar Sep 13 '17 07:09 RedShift1

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 avatar Sep 13 '17 14:09 alexcjohnson

Merging #2001 -> ensure our solution works for both scatter and bar traces.

alexcjohnson avatar Sep 13 '17 14:09 alexcjohnson

This would be a nice addition post https://github.com/plotly/plotly.js/issues/2704

etpinard avatar Jul 25 '19 21:07 etpinard

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

gvwilson avatar Jun 10 '24 17:06 gvwilson

still an issue

emilykl avatar Sep 15 '25 20:09 emilykl