Pie Charts

Add legend={true}, title="Any title" for legend and title.
Data will be in this format -[ {label: 'Apples', value: 10, color: '#FD9827'}, {....}, {....} ]

Pie Chart

Sample Fruits102054229
<PieChart data={data} title="Sample Fruits"/>

Pie Chart with legend

Sample Fruits102054229ApplesOrangesBananasBlueberriesmangoes
<PieChart data={data} title="Sample Fruits" legend={true}/>

Donut Chart

Sample Fruits102054229
<Donut data={data} title="Sample Fruits" />

Donut Chart with legend

Sample Fruits102054229ApplesOrangesBananasBlueberriesmangoes
<Donut data={data} title="Sample Fruits" legend={true} />

Bar Charts

Add xaxis={true}, yaxis={true}, xgrid={true}, or ygrid={true} for axis and grids.

Bar with individual colors will need data in this format -[ {label: 'Apples', value: 10, color: '#FD9827'}, {....}, {....} ]

Bar Chart

<BarChart data={data} color="cornflowerblue"/>

Bar Chart with multiple colors

<BarChart data={data}/>

ScatteredPlot Charts

Add title="Any title" for title.

Data will be in below format -[ [int, int], [int, int], [int, int] ]

You may pass the style attributes in below format - { width : 500, height : 300, padding : 30, }

ScatteredPlot Chart

Scattered Plot02004006008000200400600800
<ScatteredPlot {...this.state} {...styles} title="Scattered Plot" />

Line Charts

Add xaxis={true}, yaxis={true}, xgrid={true}, or ygrid={true} for axis and grids.

Data for Line chart - [ { 'data': [ { x: 0, y: 20 }, { ... }, { .... }], 'label': 'series1', 'color': '#FD9827' }, {....}, {....} ]

Data for Time series Line chart - [ {x:'02-11-2016', y:180}, {x:'02-12-2016', y:250}, {....} ]

Single LineChart

<LineChart data={singleLineData} />

Multiple LineChart

<LineChart data={multipleLineData} />

Multiple LineChart with Axis

051015202530123456
<LineChart data={multipleLineData} axisX={true} axisY={true}/>

Multiple LineChart with Grid

<LineChart data={multipleLineData} gridX={true} gridY={true}/>

Multiple LineChart with Axis and Grid

051015202530123456
<LineChart data={multipleLineData} axisX={true} axisY={true} gridX={true} gridY={true}/>

Time Series Line Chart

0100200300400500Fri 12Sat 13Feb 14Mon 15Tue 16Wed 17Thu 18 visits
<TimeSeriesLineChart data={timeSeriesLineData} />