reactjs / react-chartjs

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

LineChart will not change colors #134

Closed rnaar closed 6 years ago

rnaar commented 7 years ago

The line chart is rendering with a solid gray fill color, and will not change with varying options for background color in dataset, or when the fill is set to false. Data object in dataset that is being used is the same as the one in the documentation for chartjs under 'Data Structure' for LineChart.

http://www.chartjs.org/docs/#line-chart-data-structure

ledsun commented 7 years ago

The react-chartjs is not support Chart.js V2.

If you use Chart.js v1.1.1, that has not a backgroundColor option. Please refer documents of Chart.js v1.1.1.

If you want to use Chart.js V2, please try chartjs-v2 branch.

npm i react-chartjs@git://github.com/reactjs/react-chartjs.git#chartjs-v2
janakact commented 7 years ago

@ledsun Thanks a lot :+1:

Jareechang commented 6 years ago

closing due to issue being differences in documentation.