Skip to main content
100%

D3.js

✓ Published1🌍 Public
JJuanmaBV
Last edited Dec 30, 2022
Created on Oct 26, 2022
Forked from HTML Starter

A static bar chart displays four values by region, with the tallest bar representing China (12) and the shortest Germany (6). The visualization uses D3.js v5, loading data from a local JSON file via `fetch()` while also referencing a hardcoded `DUMMY_DATA` array. Scales are constructed with `d3.scaleBand` for x-axis positioning and `d3.scaleLinear` for y-axis values, rendering SVG rectangles with purple fill in a bordered container.

AI-generated description
MIT Licensed

Similar vizzes