Skip to main content
100%

Responsive Line Chart

✓ Published3🌍 Public
DDonald Bagwell
Last edited Apr 14, 2024
Created on Apr 14, 2024

This responsive line chart visualizes the Keeling Curve, showing atmospheric CO2 measurements over time as a black line against a gray plotting area. The visualization uses D3 scales and line generators to map the data, with the chart dimensions automatically updating through the `observeResize` function from `@drbagwell/responsive-viz-axes`. The example demonstrates how to build a resize-aware chart that redraws its axes and marks when the container size changes, using data from the `@drbagwell/keeling-curve-data` package.

AI-generated description

Creating circles with D3.

Challenge

  • Fork this example
  • Modify it
  • Maybe make it Halloween themed
  • Maybe make it Christmas themed
  • Be creative
MIT Licensed

Similar vizzes