◐ Shell
clean mode source ↗

Text should contribute to autorange calculations

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/