3.4.11 • Published 3 months ago

@junipero/react-d3-plugin v3.4.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

npm

Installation

yarn add @junipero/react junipero/react-d3-plugin d3

Usage

import { Chart, Curve } from '@junipero/react-d3-plugin';
import * as d3 from 'd3';

export default () => (
  <Chart
    axis={[{
      type: d3.axisBottom,
      scale: d3.scaleTime,
      data: [new Date(2023, 0, 1), new Date(2023, 0, 2), new Date(2023, 0, 3)],
    }, {
      type: d3.axisLeft,
      scale: d3.scaleLinear,
      data: [10, 20, 30],
      grid: true,
    }]}
  >
    <Curve
      type="area"
      xAxisIndex={0}
      yAxisIndex={1}
    />
  </Chart>
);

Don't forget to add our default theme to your app using @junipero/theme, or create your own theme.

Dependencies

These libraries are not bundled with this package and required at runtime:

Documentation

https://junipero.design/components

Contributing

Please check the CONTRIBUTING.md doc for contribution guidelines.

License

This software is licensed under MIT.

3.4.11

3 months ago

3.4.8

4 months ago

3.4.7

4 months ago

3.4.6

4 months ago

3.4.5

4 months ago

3.4.1

7 months ago

3.3.0

8 months ago

3.2.3

8 months ago

3.2.2

9 months ago

3.2.1

10 months ago

3.2.0

10 months ago

3.2.0-next.2

10 months ago

3.2.0-next.1

10 months ago

3.2.0-next.0

10 months ago