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 25, 2024
Created on Feb 25, 2024
Forked from Flowers with D3

A fork of the D3.js v3 "Flowers" example, this visualization renders a bar chart where each bar is styled as a green stem topped with a five-petal flower. The flower colors and stem heights derive from an array of country scores. The code uses `d3` scales (`scaleBand`, `scaleLinear`), axes (`axisLeft`, `axisBottom`), and SVG primitives (`circle`, `path`, `rect`) to draw the scene. A brown vase path anchors the stems at the bottom.

AI-generated description

Creating flowers with D3.

The height of each individual flower can be changed by editing an array.

Comments

Sign in to join the discussion.

MIT Licensed