Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

victory

FormidableLabs1.2mMIT37.3.6TypeScript support: included

Data viz for React

data visualization, React, d3, charting

readme

Victory Documentation

Getting started

  1. Add Victory to your project:
$ npm install victory --save
  1. Add your first Victory component:
import React, { Component } from "react";
import { render } from "react-dom";
import { VictoryPie } from "victory";

class PieChart extends Component {
  render() {
    return <VictoryPie />;
  }
}

render(<PieChart />, document.getElementById("app"));
  1. VictoryPie component will be rendered, and you should see:

pie

For detailed documentation and examples please see Victory Documentation

Requirements

Projects using Victory should also depend on React and prop-types.

Victory Native

Want to use Victory with React Native? Check out victory-native-xl

If you would like to use this version of Victory with React Native, you can install the legacy version using the legacy npm tag. See the available versions in npm.

Contributing

changelog

victory

37.3.6

37.3.5

37.3.4

37.3.3

37.3.2

37.3.1

37.3.0

37.2.0

37.1.2

Patch Changes

  • Fix victory-native container styles (eae3fe5dd)

37.1.1

37.1.0

Minor Changes

  • Refactor containers and portal to function components (#2799)

  • Pin all internal victory package versions (#2876)

37.0.2

37.0.1

37.0.0

Major Changes

  • Upgrade babel dependencies and build target to modern browsers (#2804)

36.9.2

36.9.1

36.9.0

Minor Changes

  • Remove prop-types definitions and dependency (#2758)

36.8.6

Patch Changes

  • Update victory package.json source to the correct index file (#2765)

36.8.5

Patch Changes

  • Replace instances of lodash.assign with Object.assign (#2757)

36.8.4

36.8.3

36.8.2

36.8.1

36.8.0

36.7.0

Patch Changes

  • Fix Date equality in axis (#2642)

36.6.12

Patch Changes

  • Add aria-hidden flag to svg for textsize util to fix accessibility issue (#2661)

36.6.11

36.6.10

Patch Changes

  • Setup NPM Provenance (#2590)

36.6.9

Patch Changes

  • Setup NPM Provenance (#2587)

  • Setup NPM Provenance (#2587)

36.6.8

Patch Changes

36.6.7

Patch Changes

36.6.6

Patch Changes

36.6.5

Patch Changes

36.6.4

Patch Changes

36.6.3

Patch Changes

36.6.2

Patch Changes

36.6.1

Patch Changes

36.6.0

Patch Changes

36.5.3 and earlier

Change history for version 36.5.3 and earlier can be found in our root CHANGELOG.md.