@spectrum-charts/react-spectrum-charts-s2
v0.9.0
Published
Declarative library for composing Spectrum 2 visualizations in React.
Readme
@spectrum-charts/react-spectrum-charts-s2
Declarative library for composing Spectrum 2 visualizations in React.
This is the full Spectrum 2 variant of react-spectrum-charts. It provides a native S2 implementation with features not available in the base package.
Installation
npm install @spectrum-charts/react-spectrum-charts-s2 @adobe/react-spectrum vega vega-lite
# or
yarn add @spectrum-charts/react-spectrum-charts-s2 @adobe/react-spectrum vega vega-liteUsage
import { Chart, Axis, Line, Legend } from '@spectrum-charts/react-spectrum-charts-s2';
<Chart data={data}>
<Axis position="bottom" labelFormat="time" ticks baseline />
<Axis position="left" grid />
<Line color="series" />
<Legend />
</Chart>Documentation
License
Apache-2.0
