JSPM

  • Created
  • Published
  • Downloads 221054
  • Score
    100M100P100Q165536F
  • License MIT

HTML5 Canvas Components for Victory

Package Exports

  • victory-canvas
  • victory-canvas/es/index.js
  • victory-canvas/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (victory-canvas) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#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://formidable.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