Skip to content

Commit

Permalink
Add more README info
Browse files Browse the repository at this point in the history
  • Loading branch information
Becca Bailey committed Oct 25, 2021
1 parent e5761a3 commit 4e53730
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/victory-canvas/README.md
Expand Up @@ -2,6 +2,34 @@

This is an experimental set of primitive components that can be used in place of the default Victory primitives to render data to a Canvas container rather than SVG.

The current version of this package includes components for line, bar, and scatter charts.

Example usage:

```js
<VictoryLine
groupComponent={<CanvasGroup />}
dataComponent={<CanvasCurve />}
data={data}
/>
```

```js
<VictoryBar
groupComponent={<CanvasGroup />}
dataComponent={<CanvasBar />}
data={data}
/>
```

```js
<VictoryScatter
groupComponent={<CanvasGroup />}
dataComponent={<CanvasPoint />}
data={data}
/>
```

This package currently exports:

- `CanvasGroup`
Expand Down

0 comments on commit 4e53730

Please sign in to comment.