Choropleth Chart Example
bklit-ui/choropleth-chart-exampleFreeExample
Composable choropleth-chart demo for Open in v0
Install it
npx shadcn@latest add https://bklit.com/r/choropleth-chart-example.jsonSource
1"use client"23// In your app (monorepo/npm): import { ChoroplethChart, ChoroplethFeatureComponent, ChoroplethTooltip } from "@bklitui/ui/charts"4import { ChoroplethChart, ChoroplethFeatureComponent, ChoroplethTooltip } from "@/components/charts"56const features = [7 { id: "US", name: "United States", value: 120 },8 { id: "CA", name: "Canada", value: 45 },9 { id: "GB", name: "United Kingdom", value: 62 },10];1112export default function Component() {13 return (14 <main className="flex min-h-svh w-full items-center justify-center p-6 md:p-10">15 <div className="w-full max-w-3xl">16 <ChoroplethChart data={features} aspectRatio="2 / 1">17 <ChoroplethFeatureComponent />18 <ChoroplethTooltip />19</ChoroplethChart>20 </div>21 </main>22 )23}
What it pulls in
npm packages
Other registry items
Files it writes
More from bklit-ui
All 56 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Area Chart Examplearea-chart-example | bklit-ui | Examples | Free | 3 deps · 2 files | |
| Bar Chart Examplebar-chart-example | bklit-ui | Examples | Free | 4 deps · 2 files | |
| Candlestick Chart Examplecandlestick-chart-example | bklit-ui | Examples | Free | 2 deps · 2 files | |
| Composed Chart Examplecomposed-chart-example | bklit-ui | Examples | Free | 3 deps · 2 files | |
| Funnel Chart Examplefunnel-chart-example | bklit-ui | Examples | Free | 2 deps · 2 files | |
| Gauge Chart Examplegauge-chart-example | bklit-ui | Examples | Free | 2 deps · 2 files | |
| Heatmap Chart Exampleheatmap-chart-example | bklit-ui | Examples | Free | 3 deps · 2 files | |
| Line Chart Exampleline-chart-example | bklit-ui | Examples | Free | 3 deps · 2 files |
