Kaktana / kaktana-react-lightweight-charts

A simple react wrapper for the tradingview lightweight charts module
MIT License
106 stars 55 forks source link

calling chart functions #34

Open peterswanson opened 1 year ago

peterswanson commented 1 year ago

thanks for the wrapper! How can we call the functions that come with a chart? For example, if I wanted to reset the chart time axis, I would call: chart.timeScale().resetTimeScale(); These docs show the functions: https://github.com/tradingview/lightweight-charts/blob/v3.3.0/docs/time-scale.md but since kaktana is in the react wrapper, I am not sure how to access this function within the chart. Thanks!