✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Legend points not displaying in dash

have a pretty basic scatter plot. It displays well in the jupyter notebook, but in dash, the legend points are missing. In dash the legend appears, but the points (and colors) are gone.

fig = px.strip(ref_df, x=x_metric, y=y_metric,
color=my_color,
log_y=True)
fig.update_layout(
title=fig_title,
xaxis_title=x_metric,
yaxis_title=y_metric,
legend= {‘itemsizing’: ‘constant’}, # this added to see if it helps, it didn’t
)

I would like to know if anyone else has had this problem and what they did to solve it. I have tried positioning the legend on top of the graph (horizontal position)