Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Lets make face with D3.js

Public visualization

Lets make face with D3.js

0 stars0๐ŸŒ Public
Kkhuton
Last edited Feb 29, 2020
Created on Feb 29, 2020

This example uses D3.js v5 to create a simple bar chart from a hardcoded array of six numbers. The visualization shows each value as a horizontal bar, where the bar width is proportional to the number and the value is displayed at the right end. Using D3's selection API, the code targets the `.chart` div, binds the data array, and appends new div elements, setting each one's width style and text content. The bars render in steelblue with white text, producing a compact, unadorned visual representation of the dataset.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed