Skip to main content
100%

simple bar chat with interaction

✓ Published0🌍 Public
EEssohanamKouyou
Last edited Nov 10, 2017
Created on Nov 9, 2017

A simple bar chart displays ten numeric values as black-outlined white rectangles, with each bar’s value labeled above it. On mouseover, the hovered bar turns red and its label enlarges; on mouseout, the bar smoothly transitions to green and the label shrinks. The chart is built with d3.v4, using `d3.scaleLinear` for positioning and `d3.line` to draw an overlaid path. SVG elements handle rendering, while `transition().duration(500)` animates the color and font-size changes.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/c607174fc6fd5c7bfaa804d46ca70eab'>simple bar chat with interaction</a>

mit Licensed

Similar vizzes