Skip to main content
100%

Making a bar chart

✓ Published0🌍 Public
SSuvrajit karmaker
Last edited Apr 27, 2020
Created on Apr 27, 2020
Forked from Face making

This example shows a blank SVG canvas prepared for building a bar chart, with the viewport dimensions explicitly read from the SVG element’s width and height attributes. The code uses d3’s `select` and `attr` methods to access the SVG and its dimensions, setting up the foundation for subsequent data binding and shape generation. The rendering approach is SVG-based, and the initial state includes a simple body style with zero margin and hidden overflow. The chart itself is not yet populated, focusing purely on the setup phase of the visualization.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes