Skip to main content
100%

Test

✓ Published0🌍 Public
PPhilip Rago
Last edited Dec 31, 2021
Created on Dec 30, 2021
Forked from D3 Starter

This example demonstrates a reusable D3 checkbox component that can be configured with custom sizes, positions, colors, and checked states. Three checkboxes are rendered on an SVG canvas, and clicking them updates a text label to display their boolean statuses. The implementation defines a `d3CheckBox` factory function that builds interactive SVG elements with rectangular boxes and path-based check marks, using D3 version 3’s `d3.svg.line()` for the mark geometry. A click event toggles opacity and triggers a callback showing how the component supports custom interaction logic.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes