reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 300 forks source link

no full example? where is chartData and chartOptions? #218

Closed peterremote1980 closed 6 years ago

peterremote1980 commented 6 years ago

no full example? where is chartData and chartOptions?

AnisDerbel commented 6 years ago

+1

Jonjoe commented 6 years ago

I had this problem.

If you download React Developer Tools for Chrome You can inspect the chart and see its props.

wkolcz-UMHS commented 6 years ago

Not sure if this helps but if you got to the chartjs site, you can copy the examples to produce a chart and then follow the core libraries standards.

For example: a donut chart, https://github.com/chartjs/Chart.js/blob/v1.1.1/docs/05-Pie-Doughnut-Chart.md and you can copy the array of objects in the Data structure section (exactly) into the chartData variable and the Chart options array into a charOptions variable and use it as the value of the props.

peterremote1980 commented 6 years ago

thx

alondahari commented 6 years ago

I think it would be very helpful to include those in the example page, and also in the repo (under examples folder). @peterremote1980 IMO this issue is still open...