Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atlas-geomap

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlas-geomap

Modular Geo Map for visualizing import/export data

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

atlas-geomap

by the Growth Lab at Harvard's Center for International Development

Modular Geo Map for visualizing import/export data in the Atlas of International Complexity

This package is part of Harvard Growth Lab’s portfolio of software packages, digital products and interactive data visualizations. To browse our entire portfolio, please visit The Viz Hub at growthlab.app. To learn more about our research, please visit Harvard Growth Lab’s home page.

NPM JavaScript Style Guide

View live examples ↗

Install

npm install --save atlas-geomap

Usage

import React from 'react'
import GeoMap from 'atlas-geomap';

const App = () => {
  ...

  return (
    <GeoMap
      data={data}
      hideTooltip={() => console.log('hide tooltip')}
      showTooltip={(info) => console.log(info)}
      onCountryClick={(countryId) => console.log(countryId)}
      domainEnd={1000000000}
      domainSpectrumEnd={398107170.55349696}
      domainSpectrumStart={10000000}
      domainStart={100000}
      rangeEnd={"#0A4486"}
      rangeStart={"#B1E0BB"}
      showSelectedCountry={true}
    />
  )
}

export default App

The GeoMap component takes the following props:

  • data: CountryData;
  • hideTooltip: () => void;
  • showTooltip: (info: ITooltipInfo) => void;
  • onCountryClick: (countryId: number) => void;
  • domainEnd: number
  • domainSpectrumEnd: number
  • domainSpectrumStart: number
  • domainStart: number
  • rangeEnd: string
  • rangeStart: string
  • showSelectedCountry: boolean

License

MIT © The President and Fellows of Harvard College

FAQs

Package last updated on 18 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc