Adding Labels to a Plotly Shape

Hi Folks,

I'd like to add some vertical lines in a chart and include a label for those lines. I'm able to update the Plotly layout json to draw the lines - however I can't seem to make Plotly display the labels (using the JSON spec provided by plotly).

Does anyone know of an example that shows this?


Hey @seq-gpunukollu!

Based on these examples from the plotlyjs docs it looks like labels for any additional shapes are added as their own traces. This should be possible in Retool as well, I'm including an app you can import that's based on one of the examples from the doc. Is that something like what you're looking for?