thochi / victory

A collection of composable React components for building interactive data visualizations

Home Page:http://victory.formidable.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis Status

Victory

Join the chat at https://gitter.im/FormidableLabs/victory

Victory is an opinionated, but fully overridable, ecosystem of composable React components for building interactive data visualizations. This repo aggregates all of the stable Victory components so they can be conveniently included.

See the docs and examples on the website: http://victory.formidable.com

Important: This project is in alpha release. We're hard at work fixing bugs and improving the API. Be prepared for breaking changes!

Get 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:
    VictoryPie

Including components:

Components can be included individually

import {VictoryLine, VictoryAxis} from "victory"

<VictoryLine/>

Or imported as a set:

import * as V from "victory"

<V.VictoryLine/>

Components

You can read about these Victory components via interactive docs!

Animation

Wrap any Victory component with VictoryAnimation and it will transition smoothly between states whenever data changes. VictoryAnimation relies on d3's interpolator, so it knows how to transitions between colors, dates, numbers, strings etc.

Development

Please see DEVELOPMENT

Contributing

Please see CONTRIBUTING

Roadmap

Please see ROADMAP

About

A collection of composable React components for building interactive data visualizations

http://victory.formidable.com

License:MIT License


Languages

Language:JavaScript 71.4%Language:HTML 28.6%