Let's build a bar chart - d3fc canvas version
✓ Published0🌍 Public
CColinEberhardt
Last edited May 28, 2019
Created on Dec 5, 2016
This example shows a bar chart of letter frequencies in English, coloring vowels in indianred and consonants in steelblue while displaying percentage labels above each bar. It uses d3fc’s `seriesCanvasBar` with `autoBandwidth` to render the bars on a canvas, paired with `chartCartesian` for axes. The chart reads data from a TSV file, scales the y-axis as percentages via `d3.scaleLinear`, and uses `decorate` to draw custom text and fill styles directly on the canvas context.
AI-generated descriptionmit Licensed