victory-canvas
TypeScript icon, indicating that this package has built-in type declarations

37.0.2 • Public • Published

#VictoryCanvas

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:

<VictoryLine
  groupComponent={<CanvasGroup />}
  dataComponent={<CanvasCurve />}
  data={data}
/>
<VictoryBar
  groupComponent={<CanvasGroup />}
  dataComponent={<CanvasBar />}
  data={data}
/>
<VictoryScatter
  groupComponent={<CanvasGroup />}
  dataComponent={<CanvasPoint />}
  data={data}
/>

This package currently exports:

  • CanvasGroup
  • CanvasCurve
  • CanvasPoint
  • CanvasBar

Please visit our documentation site to read more about these components https://commerce.nearform.com/open-source/victory

To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs

Package Sidebar

Install

npm i victory-canvas

Weekly Downloads

168,353

Version

37.0.2

License

MIT

Unpacked Size

387 kB

Total Files

36

Last publish

Collaborators

  • scottianstewart
  • keithluchtel
  • ceceppa
  • robwalkerco
  • sarahformidable
  • scott-rippey
  • michaelmerrill
  • sarmeyer
  • mariano-formidable
  • ryan.roemer
  • formidable-owner
  • formidablelabs
  • carbonrobot
  • masiddee
  • victory-ci
  • boygirl
  • beccanelson