Skip to main content
100%

D3.js Frontend Masters - Intro Histogram

✓ Published0🌍 Public
Aanosikeosifo
Last edited Sep 9, 2017
Created on Sep 9, 2017

This histogram example visualizes six fixed data values as vertical bars, with each bar’s height proportional to its numeric value and colored teal with white strokes. The chart includes a y-axis with ten ticks, where tick labels are colored red or green depending on whether the value exceeds 200. Built with D3 v4, it uses `d3.scaleLinear` and `d3.axisLeft` to construct the axis, while `d3.select` and data joins append SVG rectangles for the bars. Hovering over a bar changes its fill to orange via CSS.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes