1

I have a web app, where I pass Plotly configs via. GUI.

Whenever I pass multiple data lines and 1 marker, it automatically alters the traces to having one unique marker_symbol.

How can I have 1 marker_symbol, e.g. circle, for all lines?


Below, is an example plot that is similar to what I want - but has unique marker_symbols.

import plotly.express as px
df = px.data.gapminder().query("continent == 'Oceania'")
fig = px.line(df, x='year', y='lifeExp', color='country', symbol="country")
fig.show()

Plot

Source - half way down the page

0 Answers0