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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tenqube/react-korea-bubble-map

v0.0.4

Published

React SVG Korea map with d3 and topojson.

Downloads

6

Readme

The current version is being developed and tested internally.

@tenqube/react-korea-bubble-map

React SVG Korea map with d3 and topojson.

Installation

$ npm install @tenqube/react-korea-bubble-map

Bubble Map

react-korea-bubble-map-example

Levels

South Korean administrative divisions are consisted of three levels:

Quick Start

import React from "react";
import ReactDOM from "react-dom/client";
import { KoreaBubbleMap, KoreaMapData } from "@tenqube/react-korea-buble-map";
const container = document.getElementById("wrap") as HTMLElement;
const root = ReactDOM.createRoot(container);
const data: KoreaMapData = {
  sido: [{ code: "1100000000", name: "서울특별시", count: 400 }],
  sigungu: [
    { code: "1168000000", name: "강남구", count: 300 },
    { code: "1171000000", name: "송파구", count: 100 },
  ],
  emd: [
    { code: "1168010100", name: "역삼동", count: 300 },
    { code: "1171010100", name: "잠실동", count: 100 },
  ],
};
root.render(<KoreaBubbleMap data={data} width={500} height={500} />);

BubbleMapConfigProps

| Prop | Type | Mandatory | Default | Description | | ------------- | ------------------------------------------------ | ------------------ | ------- | --------------------------------------------------------------------------- | | width | number | :heavy_check_mark: | - | svg의 width | | height | number | :heavy_check_mark: | - | svg의 height | | data | KoreaMapData | :heavy_check_mark: | - | 시도(sido), 시군구(sigungu), 읍면동(emd)의 지역별 코드와 데이터를 가진 타입 | | countLabel | string | | 인원 | 버블의 툴팁에 나오는 count label | | countPostfix | string | | 명 | 버블의 툴팁에 나오는 count postfix | | percentLabel | string | | 비율 | 전체 count 중 현재 지역의 count(%) label | | customTooltip | customTooltip?(params: TooltipProps): ReactNode; | | - | 버블의 커스텀 툴팁 |

KoreaMapData

| Prop | Type | Mandatory | Default | Description | | ------- | ------- | ------------------ | ------- | --------------- | | sido | MapData | :heavy_check_mark: | - | 시/도 데이터 | | sigungu | MapData | :heavy_check_mark: | - | 시/군/구 데이터 | | emd | MapData | :heavy_check_mark: | - | 읍/면/동 데이터 |

MapData

| Prop | Type | Mandatory | Default | Description | | ----- | ------ | ------------------ | ------- | ----------- | | code | string | :heavy_check_mark: | - | 법정동코드 | | name | string | :heavy_check_mark: | - | 지역 이름 | | count | number | :heavy_check_mark: | - | 집계된 수 |

TooltipProps

| Prop | Type | Mandatory | Default | Description | | ------- | ------ | ------------------ | ------- | --------------------------- | | name | string | :heavy_check_mark: | - | 지역 이름 | | count | number | :heavy_check_mark: | - | 집계된 수 | | percent | number | :heavy_check_mark: | - | 전체 집계 중 현재 지역 비율 |

행정구역 데이터 최근 업데이트 날짜

2024.02.13

References

  • http://www.gisdeveloper.co.kr/?p=2332
  • https://github.com/southkorea/southkorea-maps