0.12.1 • Published 3 years ago

@datalith/shutter v0.12.1

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

@datalith/shutter

yarn add @datalith/shutter

Docs

<Shutter className="shutter" data={data} radiusOuter={100} radiusInner={80} />
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<string>Array of data
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
center{x: width / 2, y: height / 2}{x: number, y: number}Center of the dataviz
radiusOuter(Math.min(width, height) / 2) * 0.7numberOuter radius
radiusInnerradiusInner * 0.8numberInner radius
tooltip(Datum) => stringReturn HTML or text as a string to show on element mouseover
0.12.1

3 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago