Home forums StockChart Support unable to manipulate slider hands in functional components

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

    Hi,

    I have been trying to manipulate slider hands in functional component that i am using for live data rendering on stock chart ,
    the problem i am facing is that my slider hand stick to its position but my data is getting updated in chart.

    To replicate the problem i have created a functional component equivalent to your given solution refer this

    #32294

    @gaurav-sharma6,

    To access ref attributes in react, you need to use stockChart.current.stockChart. Please take a look at this react documentation for more information.

    Please take a look at this updated StackBlitz example.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.