Skip to content

Plotly Dash

Posted on:September 23, 2022 at 03:22 PM

The dash_core_components library includes a component called Graph.

The figure argument in the dash_core_components. Graph component is the same figure argument that is used by plotly.py.

The dcc.Graph component has four attributes that can change through user-interaction: hoverData, clickData, selectedData, relayoutData. Below are the events that changes these attributes.

  1. hover over points,
  2. click on points
  3. select regions of points in a graph