This visualization is inspired from here.

Interactivity

  • Button to switch between Imports and Exports. Visualization gets updated on mouse click.
  • Details on demand using mouse hover. A gray line appears on hover to compare between different time-series (fertilizers). Also the exact values are displayed to the right of legend.
  • Filtering functionality to select different fertilizers. The Y-axis (volume) is automatically adjusted based on the selections.

Source Code