Hello everyone, currently I am having issues with labelalias not being recognized. I am trying to update the label alias of a color bar legend on the side. However it does not seem to be working, despite the fact that I am on a version compatible with labelalias (5.9.0). To add to the confusion, my code seems to be working fine on google colab but not on dash in vscode.
I have been receiving this error message:
ValueError: Invalid property specified for object of type plotly.graph_objs.scatter.marker.ColorBar: βlabelaliasβ
Here is the code snippet:
legendFig = px.scatter(df_melted, x="value", facet_col_spacing=0.04, y="y", facet_col="feature", facet_col_wrap=2,custom_data=['rank'], category_orders={
"feature": [feature + "_v" for feature in features]})
legendFig.update_traces(
hoverinfo='skip',
opacity=0,
marker=dict(
color=df_melted["rank"],
showscale=True,
colorbar=dict(
title="Rank",
tickmode="array",
tickvals=tickVal,
labelalias={1: '429', 250: '250', 429: '1'}
)
))
If anyone can give me any insight as to why this isnβt working itβd be greatly appreciated!
edit: I added bug-reporter to the tags, just incase this is potentially a bug.