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

@datalith/dotmap

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datalith/dotmap

datalith dotmap

  • 0.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

@datalith/dotmap

yarn add @datalith/dotmap

Docs

<DotMap />

NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
defsJSX.ElementOptional <defs /> element to include in the SVG
size{ width: number; height: number }Width and Height of the SVG. Default is parent node size.
data *Array<Datum> or Array<[number, number]>Array of data
coords(Datum) => Datum(Datum) => [number, number] or [number, number]Coords accessor
value10(Datum) => number or numberValue accessor
fillrgb(0,0,0)(Datum) => string or stringFill color accessor
stroke(Datum) => string or stringStroke color accessor
featureCollection *FeatureCollectionGeoJson object
projectiongeoNaturalEarth1()GeoProjectionD3 GeoProjection to map coordinates
side5numberGrid cell dimension
tooltip(Datum) => stringReturn HTML or text as a string to show on element mouseover

<DotMapUs />

NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
defsJSX.ElementOptional <defs /> element to include in the SVG
size{ width: number; height: number }Width and Height of the SVG. Default is parent node size.
data*Array<Datum> or Array<[number, number]>Array of data
projectiongeoAlbersUsa()GeoProjectionD3 GeoProjection to map coordinates
side5numberGrid cell dimension
tooltip(Datum) => stringReturn HTML or text as a string to show on element mouseover

<DotMapWorld />

NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
defsJSX.ElementOptional <defs /> element to include in the SVG
size{ width: number; height: number }Width and Height of the SVG. Default is parent node size.
data*Array<Datum> or Array<[number, number]>Array of data
coords(Datum) => Datum(Datum) => [number, number] or [number, number]Coords accessor
value10(Datum) => number or numberValue accessor
fillrgb(0,0,0)(Datum) => string or stringFill color accessor
stroke(Datum) => string or stringStroke color accessor
projectiongeoNaturalEarth1()GeoProjectionD3 GeoProjection to map coordinates
side5numberGrid cell dimension
tooltip(Datum) => stringReturn HTML or text as a string to show on element mouseover

Keywords

FAQs

Package last updated on 05 Jul 2019

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