Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ameyms/diffract

A set of d3 based visualization components built for React
https://github.com/ameyms/diffract

chart d3 donut graph javascript react reactjs visual-components visualization

Last synced: about 2 months ago
JSON representation

A set of d3 based visualization components built for React

Awesome Lists containing this project

README

        

# diffract
[![npm version](https://badge.fury.io/js/diffract.svg)](http://badge.fury.io/js/diffract)
[![devDependency Status](https://david-dm.org/ameyms/diffract/dev-status.svg)](https://david-dm.org/ameyms/diffract#info=devDependencies)
[![peerDependency Status](https://david-dm.org/ameyms/diffract/peer-status.svg)](https://david-dm.org/ameyms/diffract#info=peerDependencies)

A set of d3 based visualization components with **cool animations** built for React

Installation
---
Diffract is available via npm and can be used along with [browserify](http://browserify.org/)

```shell
npm install diffract

```

## Usage

After installing diffract via NPM, you may use the components in your code as follows:

```js
/** DeathStar.jsx */

import React from 'react';
import {Chart, DataSeries, Pie} from 'diffract';

// ...And use it in your code
class DeathStar extends Component {

render: function() {
return (


({fill: this.getColors(i)})}>

{'Hello'}


{'diffract'}




);
}

}

```

## More Examples
See [examples](https://github.com/ameyms/diffract/blob/master/example/demo.jsx) for more
examples including Donuts, BarChart, stacked bar chart, grouped bar chart etc.
## Demo
### Donut
![Donut](https://raw.github.com/ameyms/diffract/master/etc/donut.gif)

### Bar Graph
![Bar Graph](https://raw.github.com/ameyms/diffract/master/etc/bar_graph_1.gif)

----

License: MIT