You must be logged in to post your query.
Home › Forums › Chart Support › unable to implement dougnut chart in react app
please help me to implement the https://canvasjs.com/react-charts/doughnut-chart/ in react app
@johndate,
The issue might be due to breaking changes in webpack. You need to import CanvasJSReact to your app using import CanvasJSReact from './canvasjs.react.js' or var CanvasJSReact = require('./canvasjs.react.js').default;. Please take a look at this StackBlitz project for an example on doughnut chart in react.
import CanvasJSReact from './canvasjs.react.js'
var CanvasJSReact = require('./canvasjs.react.js').default;
—- Manoj Mohan Team CanvasJS
You must be logged in to reply to this topic. Login/Register