Skip to main content
Public

Share visualization

Loading preview…

Fork of Flowers with D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Flowers with D3

0
NNanditha Reddy
Last edited Feb 27, 2024
Created on Feb 26, 2024
Forked from Flowers with D3

This visualization generates flowers positioned on stems above a light green background, with each flower’s height corresponding to a country’s score from a hardcoded array. The code uses the D3 library to build scales and axes (`d3.scaleBand`, `d3.scaleLinear`, `d3.axisLeft`, `d3.axisBottom`) and renders the stems as rectangles, petals as circles at computed angles, and decorative vases and leaves via SVG paths.

AI-generated description

Creating flowers with D3.

The height of Flowers has been changed by modifying an array

Comments

Sign in to join the discussion.

MIT Licensed