Lollipop
<zyna-lollipop>
Horizontal lollipop chart. A lighter alternative to bar charts: each item is a thin stem from zero to the value, capped with a circle. The first item is highlighted in the accent colour.
Demo
Libya — top cities by aid received (USD millions)
<zyna-lollipop data='[ {"label":"Tripoli", "value":1040}, {"label":"Al Jufara", "value":108}, {"label":"Sabha", "value":51}, {"label":"Benghazi", "value":45} ]' theme="dark" ></zyna-lollipop>
Usage Tips
- Sort data descending. The ranking is the primary message.
- Put the most important item first so it gets the accent colour automatically
- Keep category labels short (under 20 characters)
- Don't use for time series. The horizontal axis implies ranking, not time.
- Don't use more than ~15 items. Stems become too dense.