simple Line Chart_drb
✓ Published1🌍 Public
This example renders a simple line chart of the Keeling Curve, plotting atmospheric CO2 concentration over time. The visualization uses a gray inner rectangle as the plotting area and displays axes with labeled year and CO2 values. The code leverages D3’s `scaleTime`, `scaleLinear`, and `line` generators to map data points and draw the path, while custom `xAxis`, `yAxis`, and label utilities from `@drbagwell/axis-labels` handle the chart furniture. The line is drawn in black with no fill, using the CO2 and date fields from the imported dataset.
AI-generated descriptionCreating circles with D3.
Challenge
- Fork this example
- Modify it
- Maybe make it Halloween themed
- Maybe make it Christmas themed
- Be creative
MIT Licensed