Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of fruit

Public visualization

Viewing a saved revision (read-only)

921bb357f51947cbb2c17b28b8880395

Bowl of fruit

0 stars1🌍 Public
SShweta-tech
Last edited Jan 13, 2020
Created on Jan 13, 2020

The visualization shows a horizontal row of five circles meant to represent apples, evenly spaced across an SVG canvas. It uses the d3 v5 library, specifically the `select` and `range` functions, to create a data array of fruit objects and append a circle element for each one. The circles' x-coordinates are calculated by their index, all positioned at the vertical center, with a set radius. The rendering is done via SVG, with the chart's dimensions sourced from the SVG attributes. The code, though incomplete, demonstrates the basic d3 workflow of selecting, binding data, and appending graphical marks.

AI-generated description