Hello, Iโm using px.scatter
to create a scatter plot, and I want the symbols to be squares. Iโd also like to show the text for each point.
Currently, Iโm using
fig.update_traces(
marker=dict(symbol="square",
line=dict(width=2, color="DarkSlateGrey") ),
selector=dict(mode="markers"),
)
to generate this chart:
Iโd like to add text next to each square, and I have a corresponding columns in my dataframe that Iโd like to use. However, when I enable the text
parameter in px.scatter
, the chart doesnโt show squares anymore, and overrides to circles.
I.e. if I do:
fig = px.scatter(heatmap_data,
x="...",
y="...",
size="...",
color = "...",
text = 'something',
color_continuous_scale= "...",
width=1100,
height=750,
title= "..."
The squares above become circles.
How can I avoid this, and add text without losing the squares?