Skip to main content
100%

Bar chart.js

✓ Published0🌍 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.

MIT Licensed

Similar vizzes