# Garden

> Use a garden to show two linked counts per item: each plant's height is one value and its flowers count a standout outcome within it.

- Data type: Values per item (`compare`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`compare`)
- Example: **China matched the United States on 40 golds at Paris 2024, but the US plant grew 35 medals taller** (Paris 2024 Olympic medals, top 12 nations by the official ranking (golds first))
- How to read it: Each plant is a nation: its height is all medals won, and each flower on the spike is one gold.
- Phone: Not recommended for mobile (13 labels overlap on a phone) · Video formats: none passed; closest 16:9

## Use it when
- each item has a total and a count of a special outcome inside it
- 5 to 15 items in a ranked row
- a warm, playful view for a young audience

## Avoid it when
- the outcome is not part of the total
- counts run into hundreds (flowers stop being countable)
- readers need exact comparisons (use grouped bars)
- more than 15 items (the plants crowd)

## Fields (data.json)
- `country` (category): the plant's name (the nation)
- `code` (id): a short code shown under the plant (the IOC country code)
- `gold` (number, unit "medals", format count): the parts of the total, one number key each, any names; the first one sets the flowers (one each, or a round amount each). Here: gold medals
- `silver` (number, unit "medals", format count): silver medals
- `bronze` (number, unit "medals", format count): bronze medals
- `total` (number, unit "medals", format count): sets the plant's height; optional, the sum of the parts when absent. Here: all medals

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a plant to read its medals
- Motion: Stems grow up out of the soil, leaves unfurl, then each nation's gold flowers pop open one by one; the plants sway gently in a breeze.
- Sound: A soft pop on hover, pitched by rank. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "garden",
  "title": "China matched the United States on 40 golds at Paris 2024, but the US plant grew 35 medals taller",
  "subtitle": "Paris 2024 Olympic medals, top 12 nations by the official ranking (golds first)",
  "data": "/charts/garden.data.json"
}
```

## Source
2024 Summer Olympics medal table, Wikipedia (from the International Olympic Committee) (CC BY-SA 4.0), retrieved 2026-12-01: https://en.wikipedia.org/wiki/2024_Summer_Olympics_medal_table

Note: Ranked as the IOC ranks: by golds, then silvers, then bronzes. Plants and leaves are drawn by code; only height and flower count carry data.

Live: /charts/garden · Manifest: /charts/garden.json · Tags: garden, plants, flowers, isotype, counts, olympics, sport, playful
