Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
LLonwabo11
Last edited May 23, 2019
Created on May 6, 2019

This example demonstrates a bar chart of telescope data with fixed red, black, and green bars, arranged using D3's `scaleBand` and `scaleLinear`. The SVG axes are generated with `axisBottom` and `axisLeft`, and the chart includes padding and a title. Although the README describes an animated smiley face with moving eyebrows, the visible code instead renders static bar heights for each telescope, colored per data index. The implementation uses D3 v5 selections, scales, and axis components, with data sourced from an in-code array.

AI-generated description

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

MIT Licensed

Similar vizzes