Skip to main content
100%

day1

✓ Published0🌍 Public
AAnniWis
Last edited Feb 9, 2018
Created on Feb 6, 2018

This example shows a simple horizontal bar chart of six numeric values. It displays the data as teal bars with white value labels at the end of each bar, with bar height proportional to the value. The chart is built using d3.v4, with d3.scaleLinear mapping the data domain to pixel widths, and d3-selection methods appending SVG `rect` and `text` elements. The bars are grouped in `g` elements translated vertically, and the chart’s width and height are set dynamically based on the data length and a fixed bar height. The source data is a hardcoded array.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes