Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

0b5b257c346d4fe684c06225b11fe095

Fork of HTML Starter

0 stars0🌍 Public
MMichaelBGonzalez
Last edited Dec 10, 2021
Created on Dec 7, 2021
Forked from HTML Starter

This example shows a simple SVG legend with two colored circles labeled “variable A” and “variable B,” positioned at fixed coordinates. The visualization is built with D3 v7, where `d3.select` targets the SVG element with the `legend` id and appends circle and text elements. It uses static attributes like `cx`, `cy`, `r`, and `style` to define the legend’s appearance. The page also includes commented-out bar chart code using `d3.selectAll` and `.data`, but only the legend renders.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.