Forum Replies Created by Shashank

Viewing 1 post (of 1 total)
  • in reply to: react stock chart slider update #31380

    Hello Vishwas,
    Thank you the reply.
    I m following this article for implementing react stock chart https://canvasjs.com/docs/stockcharts/integration/react/

    With the new stcokchart library in place i m accessing set method like this
    stockChartRef.current.options.navigator.slider.set('minimum', new Date(moment.unixSecondsToDate(chartSliderRange.maximum)));

    On Execution it says

    Uncaught TypeError: stockChartRef.current.options.navigator.slider.set is not a function

    However on logging stockChartRef.current.options.navigator.slider I can see set() and get() methods under the prototype of the object.

    Regards
    Shashank

Viewing 1 post (of 1 total)