Overview
Plotly 5.5, released on January 10, 2022, introduces uniform text on charts and new icicle charts.
Main Features
Uniform text
The uniformtext option harmonizes text size across all chart elements, automatically hiding labels that are too small.
python
import plotly.express as px
df = px.data.gapminder().query('year == 2007 and continent == "Europe"')
fig = px.pie(df, values='pop', names='country')
fig.update_layout(
uniformtext_minsize=12,
uniformtext_mode='hide',
)
# fig.show()
Icicle charts
Icicle charts provide a hierarchical visualization alternative to treemaps and sunburst charts, displaying levels from top to bottom.
python
import plotly.express as px
df = px.data.tips()
fig = px.icicle(
df, path=['day', 'time', 'sex'],
values='total_bill',
color='total_bill',
)
# fig.show()
