Awesome, @Alexboiboi, thanks a lot! Is it also possible to use the jitter
parameter or something like that to control the spacing between individual dots?
fig = px.strip(df, x='day', y='total_bill', color="day").update_traces(jitter = 1)
actually works quite well; thanks again.
import pandas as pd
import plotly.express as px
df = pd.read_excel("https://www.dropbox.com/s/za5e81lksyipztm/tips_2.xlsx?dl=1")
fig = px.strip(df, x='day', y='total_bill', color="day").update_traces(jitter = 1)
# Customization of y-axis
#fig.update_yaxes(range=[0, 10])
# Figure layout
fig.update_layout(template='simple_white', width=400, height=500, title='Main Title', yaxis_title='Distance moved',
legend=dict(title='', itemclick='toggle', itemsizing='constant', traceorder='normal',
bgcolor='rgba(0,0,0,0)', x=1),
xaxis=dict(title='This is a title', showticklabels=True, ticks='outside', type='category')
)
# Make figure zoomable
config = dict({'scrollZoom': False})
fig.show(config=config)