Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
SSean Moore
Last edited Nov 4, 2019
Created on Nov 4, 2019

This example demonstrates the first steps of building a bar chart with D3.js, using the `select` API to target the SVG element and reading its `width` and `height` attributes. The page renders an empty 960 by 500 pixel SVG canvas, setting up the fundamental scaffolding for a future chart. The code relies on D3 v5 and renders vector graphics through the SVG framework, though it does not yet draw any bars or data.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes