Skip to main content
100%

fresh block

✓ Published0🌍 Public
TTollyCoburn
Last edited May 17, 2018
Created on May 17, 2018

A set of vertical bars displays a small numeric array, with bar heights proportional to values and fill colors interpolating from red to green based on each value’s position in the data range. The visualization uses d3.scaleLinear for the y-axis and color mapping, d3.scaleBand for horizontal positioning, and d3.schemeCategory20 as a fallback palette. Each rectangle is appended to an SVG canvas, with blue strokes outlining the bars. The code computes bar positions and heights directly from the scales, rendering the chart entirely with D3 v4.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes