1.0.1 • Published 5 years ago

highcharts-tooltip-synchronization v1.0.1

Weekly downloads
25
License
-
Repository
github
Last release
5 years ago

Highcharts tooltip synchronization

Show tooltips on multiple charts if xAxis value are same. Works well for both line and column charts.

Demo

  1. Line chart

    line chart

  2. Column 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} />;
};