angleref not implemented for scattergl
It seems to me that angleref works fine using px.scatter when using svg, and it does not work when using webgl.
angleref Code: fig.update_traces(marker_angleref=<VALUE>, selector=dict(type='scatter'))
However, the scattergl page does not, but it is referenced that it should
angle
Code: fig.update_traces(marker_angle=<VALUE>, selector=dict(type='scattergl'))
Type: angle
Default: 0
Sets the marker angle in respect to angleref
Is this a bug? Or perhaps missing because webgl does not support angleref?
Any update on this issue? Per default, Plotly Express will change between using svg and webgl so users might run into this depending on the amount of data points in a particular plot.
The following works with the default (svg) but fails with webgl:
import plotly.express as px
df = px.data.gapminder()
countries = df.query("continent == 'Europe'")["country"].unique()[:5]
fig = px.line(df.loc[df["country"].isin(countries)],
x="year", y="pop", color="country",
markers=True,
# render_mode="webgl"
)
fig.update_traces(marker=dict(symbol="arrow", size=15, angleref="previous",))
fig.show()