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

@datalith/gridmap

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/gridmap

datalith gridmap

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

@datalith/gridmap

yarn add @datalith/gridmap

Docs

<GridMap />

NameDefaultTypeDescription
className
string
Custom css classes to pass to the SVG
width *
number
Width of the SVG
height *
number
Height of the SVG
data *
Array<{
v: [number, number],
y?: number,
z?: string
}>
Array<string>
Array of data
featureCollection *
FeatureCollection
GeoJson object
projection
geoNaturalEarth1()
GeoProjection
D3 GeoProjection to map coordinates
customRender
props => <circle cx={d.x} cy={d.y} r={value} {...props} /> 
(d: { x: number; y: number; i: number; j: number; value: number; datum?: Datumdatalith }, props: any, ) => JSX.Element
Return custom element to render as data point
side
5
number
Grid cell dimension
fill
true
boolean
Whether to add the fill color
stroke
false
boolean
Whether to add the stroke color
tooltip
(datum) => string
Return HTML or text as a string to show on element mouseover

<GridMapUs />

NameDefaultTypeDescription
className
string
Custom css classes to pass to the SVG
width *
number
Width of the SVG
height *
number
Height of the SVG
data *
Array<{
v: [number, number],
y?: number,
z?: string
}>
Array<string>
Array of data
projection
geoAlbersUsa()
GeoProjection
D3 GeoProjection to map coordinates
customRender
props => <circle cx={d.x} cy={d.y} r={value} {...props} /> 
(d: { x: number; y: number; i: number; j: number; value: number; datum?: Datumdatalith }, props: any, ) => JSX.Element
Return custom element to render as data point
side
5
number
Grid cell dimension
fill
true
boolean
Whether to add the fill color
stroke
false
boolean
Whether to add the stroke color
tooltip
(datum) => string
Return HTML or text as a string to show on element mouseover

<GridMapWorld />

NameDefaultTypeDescription
className
string
Custom css classes to pass to the SVG
width *
number
Width of the SVG
height *
number
Height of the SVG
data *
Array<{
v: [number, number],
y?: number,
z?: string
}>
Array<string>
Array of data
projection
geoNaturalEarth1()
GeoProjection
D3 GeoProjection to map coordinates
customRender
props => <circle cx={d.x} cy={d.y} r={value} {...props} /> 
(d: { x: number; y: number; i: number; j: number; value: number; datum?: Datumdatalith }, props: any, ) => JSX.Element
Return custom element to render as data point
side
5
number
Grid cell dimension
fill
true
boolean
Whether to add the fill color
stroke
false
boolean
Whether to add the stroke color
tooltip
(datum) => string
Return HTML or text as a string to show on element mouseover

Keywords

FAQs

Package last updated on 14 Jun 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