0.12.1 • Published 3 years ago

@datalith/hexmap v0.12.1

Weekly downloads
14
License
MIT
Repository
github
Last release
3 years ago

@datalith/hexmap

yarn add @datalith/hexmap

Docs

\<HexMap \/>

NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
additionalElementsJSX.ElementOptional elements to add to 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
valueInactive1numberValue Inactive accessor
fill(Datum) => string or stringFill color accessor
fillInactive#000stringFill Inactive accessor
fillOpacity(Datum) => number or numberFill Opacity accessor
fillOpacityInactive0.3numberFill Opacity Inactive accessor
stroke(Datum) => string or stringStroke color accessor
strokeInactivetransparentstringStroke Inactive accessor
strokeOpacity(Datum) => number or numberStroke Opacity accessor
strokeOpacityInactive0.3numberStroke Opacity Inactive 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

\<HexMapUs \/>

NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
additionalElementsJSX.ElementOptional elements to add to 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

\<HexMapWorld \/>

NameDefaultTypeDescription
classNamestringCustom css classes to apply to the SVG
styleReact.CSSPropertiesCustom style object to apply to the SVG
additionalElementsJSX.ElementOptional elements to add to 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
valueInactive1numberValue Inactive accessor
fill(Datum) => string or stringFill color accessor
fillInactive#000stringFill Inactive accessor
fillOpacity(Datum) => number or numberFill Opacity accessor
fillOpacityInactive0.3numberFill Opacity Inactive accessor
fillInactive#000stringFill Inactive accessor
stroke(Datum) => string or stringStroke color accessor
strokeInactivetransparentstringStroke Inactive accessor
strokeOpacity(Datum) => number or numberStroke Opacity accessor
strokeOpacityInactive0.3numberStroke Opacity Inactive accessor
strokeInactivetransparentstringStroke Inactive accessor
projectiongeoNaturalEarth1()GeoProjectionD3 GeoProjection to map coordinates
side5numberGrid cell dimension
tooltip(Datum) => stringReturn HTML or text as a string to show on element mouseover