From texttemplate or hovertemplate, how do I access the attribute “error_y” or “error_x” using the “%{variable}” syntax? I have Bar objects like this:
go.Bar(
x=xs[i],
y=ys[i],
error_y={
“type”: “data”,
“array”: cis[i],
},
texttemplate=“%{error_y}”,
)
Which results in this:
I tried the following unsuccessfully:
texttemplate=“%{error_y}”
texttemplate=“%{error_y[‘array’]}”
texttemplate=“%{error_y[array]}”
Running fig[‘data’][0] shows me this:
Bar({
‘error_y’: {‘array’: array([0, 2, 3, 4, 5,6, 8]),
‘type’: ‘data’},
‘texttemplate’: ‘%{error_y}’,
‘x’: array([‘1’, ‘2’, ‘3’,‘4’, ‘5’, ‘6’, ‘7’],
dtype=object),
‘y’: array([1, 2, 3, 4, 5, 6, 7])
})
This post suggests error_y might be accessible, but I could use your help. javascript - What variable can be used in the "%{variable}" syntax in plotly - Stack Overflow