What this demonstrates

Four inputs, one responsive chart

  • [data] supplies one or more Plotly traces.
  • [layout] controls axes, legends, margins, and sizing.
  • [config] configures the modebar and Plotly behavior.
  • [useResizeHandler] keeps the chart aligned with the viewport.