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

    89
  • Effort Slider

    Effort Slider

    32
  • Date Picker

    Date Picker

    28
  • Connection Globe

    Connection Globe

    25
  • Region Picker

    Region Picker

    23
  • Rotary Dial

    Rotary Dial

    22
  • Pixel Toaster

    Pixel Toaster

    14
  • Pixel Select

    Pixel Select

    12

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    94
  • serf dashboard

    serf dashboard

    84
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.1K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    572
  • Sidebar

    Sidebar

    422
  • Dashboard Shell

    Dashboard Shell

    215