Change each trace meeting condition in PlotyJS plot

for (k,it) in enumerate(fig.plot.data)
    if endswith(String(it[:name]), "_calc")
        restyle!(fig, k, line_dash="dash")
    end
end
1 Like