We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react 16.8 hooks addPlotLine not work, but use callback afterRender it work!!! why?
const demo =()=>{ const waveDataChart = useRef(null); const afterRender = (chart) => { chart.axes[0].addPlotLine({ value: 1256, width: 2, color: 'red', id: 'plot-line' }); }; if (waveDataChart.current) { const chart = waveDataChart.current.getChart(); chart.axes[0].addPlotLine({ value: 1256, width: 2, color: 'red', id: 'plot-line' }); } return ( <HighCharts ref={waveDataChart} config={waveDataConfig} callback={afterRender} /> ) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
react 16.8 hooks addPlotLine not work, but use callback afterRender it work!!! why?
The text was updated successfully, but these errors were encountered: