Skip to content

kaix1n/highcharts-tooltip-synchronization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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} />;
};

About

Show tooltips on multiple charts if xAxis value are same

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published