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.
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) {