Controlling a plot with a dropdown#

This page demonstrates a plot with updating the selected contents based on the value of the dropdown.

  • changing the dropdown value updates which elements of the plot are rendered.

  • single clicking an item in the legend hides it from the plot; double clicking an item in the legend hides all other items from the plot.

  • click and drag in the plot to define a window to zoom in; double clicking in the plot resets the zoom.

  • additional controls are visible at the top right of the plot.