Today, the output of
import plotly.graph_objects as go
fig = go.Figure(go.Scatter(meta=dict(a=1,b=2)))
print(len([f for f in fig.select_traces(selector=dict(meta=dict(a=1,b=2)))]))
print(len([f for f in fig.select_traces(selector=dict(meta=dict(a=1)))]))
is 1, 0, meaning that we can't use selector to do partial matches on meta.
It would be really convenient if PX could tag all of its traces with some structured data in meta so that users could target these traces with updates, but for that to be useful we would need to do partial matches.
@jonmmease any major reason not to do this?
Today, the output of
is
1, 0, meaning that we can't useselectorto do partial matches onmeta.It would be really convenient if PX could tag all of its traces with some structured data in
metaso that users could target these traces with updates, but for that to be useful we would need to do partial matches.@jonmmease any major reason not to do this?