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

    93
  • Effort Slider

    Effort Slider

    65
  • Connection Globe

    Connection Globe

    34
  • Date Picker

    Date Picker

    29
  • Region Picker

    Region Picker

    26
  • Rotary Dial

    Rotary Dial

    26
  • Live Visitors Map

    Live Visitors Map

    18
  • Pixel Toaster

    Pixel Toaster

    15

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    659
  • Analytics Dashboard

    Analytics Dashboard

    59
  • Creator Dashboard

    Creator Dashboard

    208
  • Insights Dashboard

    Insights Dashboard

    35
  • serf dashboard

    serf dashboard

    137
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    293
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Business/Sales Dashboard

    Business/Sales Dashboard

    1.5K