Skip to main content
100%

Canvas Bar Chart

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 23, 2015

This bar chart displays the relative frequency of each English letter from A to Z, using a familiar alphabetized ordering along the x‑axis. The chart is rendered entirely to a Canvas element using raw drawing commands rather than SVG. It relies on d3.scaleBand for the categorical x‑axis, d3.scaleLinear for the numeric y‑axis, and d3.requestTsv to load the tab‑separated data. All rectangles, tick marks, and axis labels are drawn directly via the Canvas 2D context, with tick formatting applied through scale's tickFormat method.

AI-generated description

A variant of the simple bar chart using d3-scale and d3-request to render to Canvas.

gpl-3.0 Licensed

Similar vizzes