Home forums Chart Support stock chart with react

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30534

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

    #30537

    @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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.