You must be logged in to post your query.
Home › Forums › Chart Support › stock chart with react
Tagged: stock chart with react
Hi, I am trying to integrate the newly available feature of the stock chart in react component. I’ve included new canvas.stockchart.js library on canvas.react.js, I’ve update import as var CanvasJS = require('./canvasjs.stock');. This Dosent seems to be working, Getting folloeing error.
var CanvasJS = require('./canvasjs.stock');
TypeError: this.setOptions is not a function Q src/assets/canvasjs/canvasjs.stock.js:447 444 | this.options = t ? t : { 445 | _isPlaceholder: !0 446 | }; > 447 | this.setOptions(this.options, g) | ^ 448 | } 449 | 450 | function Ja(g, p, m, t, w) {
@shashank,
Please take a look at this documentation page for step to step tutorial on integrating CanvasJS StockCharts with your React applications.
If you are still facing the issue, kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the sample data so that we run the code locally, understand the scenario better and help you out?
— Shashi Ranjan Team CanvasJS
You must be logged in to reply to this topic. Login/Register