Why Plotly · Plotly Express · Hover Data · Animations · HTML Export
px.line(df, x="date", y="sales")color, size, facet_col, animation_framehover_data=["col1","col2"] adds fields to tooltiphover_name="col" sets bold title in hover boxlabels={"sales": "Revenue ($)"}hovertemplate="$%{y:,.0f}"animation_frame="year" adds a play buttonanimation_group="id" tracks entities over timerange_x / range_y for stabilityfig.write_html("chart.html") — fully interactivefig.write_image("chart.png") — static (needs kaleido)fig.show() renders inline in notebooks