Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart.js

Public visualization

Viewing a saved revision (read-only)

84f69685b71c49b89c0f397e9f37b805

Bar chart.js

0 stars0🌍 Public
Aalhdezg
Last edited Jan 3, 2021
Created on Jan 3, 2021

This example displays a simple bar chart rendered in SVG, taking its dimensions from the svg element's attributes. The visualization shows a blank canvas with no data bars, as the code only initializes the chart container and imports the selection utility from D3. It uses `d3.select` to grab the SVG element and reads the `width` and `height` attributes, while loading D3 v6 from a CDN and applying a stylesheet that hides overflow. The chart appears as an empty, margin-less SVG area awaiting data.

AI-generated description

An example including some commonly used features of SVG.