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

37.3.6 • 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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i victory-canvas

    Weekly Downloads

    219,004

    Version

    37.3.6

    License

    MIT

    Unpacked Size

    387 kB

    Total Files

    36

    Last publish

    Collaborators

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