Skip to main content
100%

Fork of Fork of activity7, area chart

✓ Published0🌍 Public
Ssahithitoomu@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025

This area chart visualizes fruit weights across ten sample data points, with a steel-blue filled area beneath the line and labeled axes for index and weight. Using D3.js v6, the code defines hardcoded fruit data with attributes like weight, diameter, and fruit type, then renders an SVG path via the `d3.area()` generator. Linear scales map the data point index to the x-axis and weight values to the y-axis, with `d3.axisBottom` and `d3.axisLeft` providing tick marks and text labels for the chart’s axes.

AI-generated description
MIT Licensed

Similar vizzes