lumesec

Choropleth Map

Dashboards

About

An interactive world map that shows a numeric value per country as a dot-density pattern, with a ranked list, hover tooltip and keyboard navigation.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Choropleth Map to your project and fits it to your theme.

Code

How Choropleth Map is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  GeoChoropleth,
  type CountryValue,
} from "@/components/ui/geo-choropleth";

const requests: CountryValue[] = [
  { code: "US", value: 412000 },
  { code: "IN", value: 268000 },
  { code: "DE", value: 168000 },
  { code: "BR", value: 131000 },
  { code: "JP", value: 118000 },
];

export default function GeoChoroplethDemo() {
  return (
    <div className="w-full">
      <GeoChoropleth
        label="Requests by country"
        unit="requests"
        data={requests}
        onValueChange={(code) => console.log(code)}
      />
    </div>
  );
}

More by lumesec

View all
  • Geo Traceroute

    Geo Traceroute

    80
  • Date Picker

    Date Picker

    25
  • Region Picker

    Region Picker

    20
  • Rotary Dial

    Rotary Dial

    19
  • Pixel Toaster

    Pixel Toaster

    14
  • Command Palette

    Command Palette

    11
  • Effort Slider

    Effort Slider

    9
  • Pixel Select

    Pixel Select

    7

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Stat Card

    Stat Card

    46
  • Sidebar

    Sidebar

    392
  • Chart Component

    Chart Component

    11
  • SaaS Template

    SaaS Template

    2.7K
  • Fitness Bento Grid

    Fitness Bento Grid

    42
  • Financial Bento Grid

    Financial Bento Grid

    129
  • Course Design Cards

    Course Design Cards

    1.3K