1👍
You are declaring LineChart
twice. Change the name of one of them, for example:
var MyChart = React.createClass({ /* rest of your code */ });
module.exports = MyChart;
- Chartjs-Ionic Capacitor chart.js showing blank on ios device
- Chartjs-Always show doughnut Chart tooltip in Angular 5
0👍
I also have the same issue, and ‘npm cache clean’ helps!
It may related to the dependency of chartjs & react-chartjs.
- Chartjs-Dynamically updating Chart.js data in angular
- Chartjs-Line Chart is not setting backgroundColor when created dynamically Chart.js
-1👍
I had the same problem. Exclusion of node_modules in Webpack build helped. Look at this https://github.com/jhudson8/react-chartjs/issues/93.
Here’s an example “module” section of webpack.config.js
:
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel-loader'
}
]
}
- Chartjs-Chartjs using angular doughnut not returning formatter function to display label and value
- Chartjs-How to correctly use "yAxisID" for a Chart.js
Source:stackexchange.com