Overview
Plotly 5.10, released on October 15, 2022, improves integration with Dash for interactive web applications.
Main Features
Dash integration
Dash integration is strengthened, enabling better synchronization between Plotly charts and Dash components.
python
import plotly.express as px
# Interactive chart for Dash
df = px.data.gapminder()
fig = px.scatter(
df.query('year == 2007'),
x='gdpPercap', y='lifeExp',
size='pop', color='continent',
hover_name='country', log_x=True,
)
# fig.show()
Theme improvements
Chart themes are extended with new color palettes and finer customization options.
python
import plotly.express as px
import plotly.io as pio
# Use a theme
pio.templates.default = 'plotly_dark'
df = px.data.iris()
fig = px.scatter(
df, x='sepal_width', y='sepal_length',
color='species',
)
# fig.show()
