Black Lives Matter. Please consider donating to Black Girls Code today.

Using yref paper for area chart

I can use yref = paper for shapes if I want to position them above the chart:

I am looking into an option to replace shapes with an area chart. Can I use paper settings for such chart?


Hmm, I don’t think you can: an area chart is a Scatter trace which needs an x and a y axis, so you cannot use paper coordinates. However, if you need coordinates which are independent of your initial chart, you can define another y-axis for your chart, as described for example in (you don’t need to display ticks or labels for this other axis), and you can use a range of [0-1] for this axis if you wish.

Hope this helps, otherwise don’t hesitate to tell us a little more about what you’re doing, it wasn’t completely clear to me.

I have everything perfectly working using shapes. There is only one problem using massive amount of shapes (thousands). Performance.