🌍 Public
Viewing a saved revision (read-only)
c2cccc96451f488595d962ee7debd6da
Task-9 Q2
This visualization compares sales figures for six car manufacturers—Ferrari, Mercedes, Audi, Porsche, BMW, and McLaren—using hardcoded data. It renders a filled area chart in SVG, where the area’s height corresponds to each brand’s sales value. The code builds the chart with d3.scaleBand for the x-axis, d3.scaleLinear for the y-axis, and d3.area to generate the filled path. Axes are added via d3.axisBottom and d3.axisLeft, with labels and a title included.
AI-generated description