New Power Management

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

    36.6.8 • 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://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

    Install

    npm i victory-canvas

    DownloadsWeekly Downloads

    107,635

    Version

    36.6.8

    License

    MIT

    Unpacked Size

    819 kB

    Total Files

    27

    Last publish

    Collaborators

    • ceceppa
    • robwalkerco
    • gksander
    • sarahformidable
    • scott-rippey
    • yankovalera
    • valgeorgiev
    • michaelmerrill
    • sarmeyer
    • mariano-formidable
    • carlospaelinck
    • ryan.roemer
    • formidable-owner
    • eastridge
    • exogen
    • beccanelson
    • philpl
    • jmcbee1
    • formidablelabs
    • carbonrobot
    • manosim
    • masiddee
    • victory-ci
    • boygirl