How To Add Modal Pop Up On Nodes Of Org Chart Highcharts
I have working on a highchart Page where I need show my data when i clicked on a nodes of an org chart. I'm able to show the data onclick of nodes but that is a tooltip. My require
Solution 1:
Instead of using tooltip, you can create your own popup element, update it with a point info and show/hide it in the point's events.
point: {
events: {
click: function() {
const popup = document.getElementById('popup');
popup.innerHTML = this.info;
popup.style.display = 'block';
},
mouseOut: function() {
const popup = document.getElementById('popup');
popup.style.display = 'none';
}
}
}
Live demo:https://jsfiddle.net/BlackLabel/dhaysfqz/
API Reference:https://api.highcharts.com/highcharts/series.organization.point.events
Post a Comment for "How To Add Modal Pop Up On Nodes Of Org Chart Highcharts"