Skip to main content
100%

Círculos con interacción

✓ Published0🌍 Public
Ffcordon@pin.upv.es
Last edited Feb 10, 2025
Created on Feb 9, 2025

Seven colorful circles rest on a soft green background, with one highlighted by a black outline and full opacity. Clicking any circle selects it and persists that choice by rewriting the `selectedIndex.csv` file through VizHub’s `writeFile` API. The code uses D3 selections (`select`, `join`) to render and update the SVG circles, while reading the initial selection from the CSV via an imported module. This demonstrates self-modifying code where user interaction changes the stored state.

AI-generated description

An example of self-modifying code using VizHub's writeFile API.

MIT Licensed

Similar vizzes