A slim bar with a marker at the value. Sample data: new deposits in four regions, South $596K, West $174K.
Installation
- 1
Set up the registry once
This chart is free in Hearth and MIT licensed: no token. Add @chartory to components.json once (the URL alone, no headers), or skip this when another chart is already installed.
Installation guide - 2
Add the chart
One command adds the Lollipop component to your project.
npx shadcn add @chartory/lollipop - 3
Use it
Pass your rows. The props are the Figma properties.
usage.tsximport { Lollipop } from "@/components/chartory/lollipop"<Lollipop data={regionDeposits} size="m" legend/>
Props
<Lollipop>
Every prop but data is a Figma property with the same name and values.
LollipopData
The data prop: one object for the whole chart.
The data as a JSON Schema: schemas/lollipop.json
Lollipop chart: a React and Figma chart in four sizes
What does a lollipop chart show?
A lollipop chart draws each value as a slim bar on a track, with a ringed marker at its end and a dotted drop line, so a few items compare cleanly in a light card. Use it for a short list of amounts such as regions or channels.
Chartory ships it as a Figma component and a React component with the same name. The code installs from the shadcn registry with one command and lands in your project as a file you own.
What is the Lollipop component?
It is one <Lollipop> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is one value per item.
Sizes XS, S, M and L re-lay the chart out from the data instead of scaling it, so labels stay readable at every size.
When should I use it?
- Is it a short list? Yes means the lollipop fits.
- Is there one value per item? Yes means the lollipop fits.
- Is it items, not periods? Yes means the lollipop fits.
When does another type fit better?
- Many items read better as bars. Use Horizontal bars instead.
- Two values per item. Use Dumbbell instead.
- A year of periods in a ring. Use Radial lollipop instead.
Lollipop questions
Installing, data, Figma and plans.
Yes. It installs through the shadcn registry with the shadcn CLI, and the file lands in your project.
It is free in Hearth and MIT licensed: add the @chartory registry URL once, no token, then run npx shadcn add @chartory/lollipop. The Installation guide has the steps.
Yes. Connect the Chartory MCP server and ask for the lollipop chart; the agent runs the same command and you review the diff.
One value per item. The sample data comes with the component, and the props table lists every field.
XS, S, M and L, in Figma and in code. Each size is laid out again from the data, so text and lines keep their size.
Yes. chart/009-lollipop has the same properties as the component.
Yes. Every paint is a token, so the chart follows light and dark mode and the collection you pick.
None for Hearth: it is free in the public registry, no token. The Signal collection (@chartory/signal) comes with Code and Complete.