Skip to main content
100%

fresh block

✓ Published0🌍 Public
SSokrates86
Last edited Oct 9, 2016
Created on Oct 9, 2016

An interactive SVG pictogram displays ten identical icons arranged in a single row, with a jQuery UI slider controlling how many are highlighted in black versus white. The code defines a reusable icon path in `<defs>`, generates each instance via `d3.selectAll("use").data().enter()`, and updates classes through `d3.selectAll("use").attr("class", …)` based on the slider’s `ui.value`. A text label shows the current count.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/59de7dfa17d35c2c6592d9c0995f4f4b'>fresh block</a>

mit Licensed

Similar vizzes