Tributary inlet
✓ Published0🌍 Public
CCBasis
Last edited Feb 24, 2013
Created on Feb 24, 2013
Ten vertical bars are arranged in a row, forming a stepped diagonal pattern that shifts from red at the top to green at the bottom. The visualization highlights a simple ordinal-to-linear color mapping, where the tallest bar corresponds to the deepest green and the shortest to bright red. Using D3’s selection and data binding, the code appends `rect` elements to an SVG canvas, computing each bar’s height, vertical position, and horizontal spacing from its index. A linear color scale with HSL interpolation drives the gradient, while the data consists of a static array of ten integers.
AI-generated description