Skip to main content
100%

Vertical Area Chart D3 V4

✓ Published0🌍 Public
CChandrakantThakkarDigiCorp
Last edited Feb 9, 2020
Created on Feb 9, 2020

This example shows a vertical area chart comparing the cumulative runs scored by two teams across 20 overs, using a filled area for Team A and a line for Team B. It renders to SVG with D3 v4 and jQuery, using `d3.scaleLinear` for both axes, `d3.area()` for the filled region, and `d3.line()` for the second series. The x-axis represents runs, the y-axis shows overs, and axes are drawn with `d3.axisBottom` and `d3.axisLeft`. Data is hardcoded in the script, with null values filtered to stop line drawing at the final over.

AI-generated description

Similar vizzes