1.0.1 • Published 6 years ago
highcharts-tooltip-synchronization v1.0.1
Highcharts tooltip synchronization
Show tooltips on multiple charts if xAxis value are same. Works well for both line and column charts.
Line chart
Column chart
- Usage
syncTooltip(highchartsInstance);
- Example
import syncTooltip from 'highcharts-tooltip-synchronization';
const Chart = () => {
let chartRef = React.createRef();
let config = getConfig();
React.useEffect(() => {
const chart = Highcharts.chart(chartRef.current, config);
syncTooltip(chart);
}, []);
return <div ref={chartRef} />;
};