Home Forums Chart Support Uncaught SyntaxError: Unexpected token import Reply To: Uncaught SyntaxError: Unexpected token import

#17342

[UPDATE]

We have released React Component for Charts using which you can build charts in react way. Please refer to this blog post for release note.


@netcon
,

Adding type=”text/babel” to the src attribute of script tag should work fine. Please refer this stackoverflow thread for more information.

If you are still facing issue, kindly create sample project reproducing the issue you are facing and share with us over Google-Drive or Onedrive so that we can run it locally to understand the scenario better and help you out.

Also please take a look at this JSFiddle for an example on rendering Column Chart using ReactJS.
Column Chart in React


Vishwas R
Team CanvasJS

  • This reply was modified 3 years, 1 month ago by Vishwas R.