npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@some19ice/nigeria-geo-viz

v0.1.4

Published

Visualization components for Nigeria maps - React components and TopoJSON assets

Downloads

463

Readme

@some19ice/nigeria-geo-viz

Interactive Nigeria Map Components for React - States & LGAs with Choropleth Support

npm version License: MIT

Render interactive Nigeria maps in React with state and LGA boundaries, choropleth data visualization, and click/hover interactions.

Installation

npm install @some19ice/nigeria-geo-viz react
# or
pnpm add @some19ice/nigeria-geo-viz react

Quick Start

import { NigeriaMap } from '@some19ice/nigeria-geo-viz/react';

function App() {
  return (
    <NigeriaMap
      width={600}
      height={500}
      onStateClick={(stateId) => console.log('Clicked:', stateId)}
    />
  );
}

Examples

Choropleth Map (Data Visualization)

<NigeriaMap
  width={600}
  height={500}
  choroplethData={{
    lagos: 100,
    kano: 80,
    rivers: 60,
    fct: 40,
  }}
  colorScale={['#f0f9ff', '#0284c7']}
/>

LGA-Level Map

import { LGAMap } from '@some19ice/nigeria-geo-viz/react';

// Show all LGAs in Lagos State
<LGAMap
  width={400}
  height={400}
  stateId="lagos"
  onLGAClick={(lgaId) => console.log('Clicked:', lgaId)}
/>

Direct TopoJSON Access

import statesGeo from '@some19ice/nigeria-geo-viz/assets/nigeria-states.topo.json';
import lgasGeo from '@some19ice/nigeria-geo-viz/assets/nigeria-lgas.topo.json';

Components

<NigeriaMap />

| Prop | Type | Default | Description | |------|------|---------|-------------| | width | number | 600 | Map width in pixels | | height | number | 500 | Map height in pixels | | onStateClick | (stateId: string) => void | - | State click handler | | onStateHover | (stateId: string \| null) => void | - | State hover handler | | showLabels | boolean | false | Show state name labels | | choroplethData | Record<string, number> | - | Data values for coloring | | colorScale | string[] | Blues | Min/max colors for choropleth | | theme | Partial<MapTheme> | - | Custom styling |

<LGAMap />

Same props as NigeriaMap, plus:

| Prop | Type | Description | |------|------|-------------| | stateId | string | Filter to show only LGAs in this state | | onLGAClick | (lgaId: string) => void | LGA click handler | | onLGAHover | (lgaId: string \| null) => void | LGA hover handler |

Theming

<NigeriaMap
  theme={{
    backgroundColor: '#1a1a2e',
    defaultFill: '#16213e',
    strokeColor: '#0f3460',
    hoverFill: '#e94560',
    selectedFill: '#533483',
    labelColor: '#ffffff',
  }}
/>

License

MIT © Some19ice


Keywords: Nigeria map React, Nigerian states map component, Nigeria choropleth map, Nigeria SVG map, Nigerian LGA map, Nigeria data visualization, interactive Nigeria map JavaScript