score:1
Accepted answer
The simplest solution is to overwrite the default setState
function, example:
(function(H) {
H.seriesTypes.networkgraph.prototype.pointClass.prototype.setState = function(state) {
var args = arguments,
Point = H.Point,
others = this.isNode ? this.linksTo.concat(this.linksFrom) : [this.fromNode,
this.toNode
];
if (state !== 'select') {
others.forEach(function(linkOrNode) {
if (linkOrNode && linkOrNode.series) {
Point.prototype.setState.apply(linkOrNode, args);
if (!linkOrNode.isNode) {
if (linkOrNode.fromNode.graphic) {
Point.prototype.setState.apply(linkOrNode.fromNode, args);
}
/* Modification - prevent hover effect on toNode
if (linkOrNode.toNode && linkOrNode.toNode.graphic) {
Point.prototype.setState.apply(linkOrNode.toNode, args);
}
*/
}
}
});
}
Point.prototype.setState.apply(this, args);
}
}(Highcharts));
Live demo: https://jsfiddle.net/BlackLabel/1039zwbt/1/
Docs: https://www.highcharts.com/docs/extending-highcharts/extending-highcharts
Source: stackoverflow.com
Related Query
- How to override Hihgchart.js Network Graph default node hover effect?
- Highchart network graph with tooltip when hover on every node
- how to disable or override the fonts inherited from svg in the web pages by default
- How can you speed up the Highcharts network graph initial animation?
- How to enable hover effect for entire series instead of individual data
- How to make hover effect for two bar in highcharts at the same time is there any way by using css or any inbuilt method to achieve this?
- How to remove default Hover text and display the custom text title on hover Donut chart Highcharts
- How to implement the interconnection between nodes in network graph using javascript?
- Network Graph - Is there a way to hide a specific node on click in network graph?
- How to create a drilleable bar graph in jsp page using open source charts API
- Override default highlighting on hover in networkgraph
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- How to change the point color to red that is lowest point plotted in the graph and 2nd issue is animation effect is not supporting in the ie10,ie8
- how to enable only 1 out of 2 column column graph by default when page loads in highcharts and the 2nd one gets visible when toggled in the legend
- not working to update node of network graph
- How to get Node Coordinates Data in Sankey Graph
- how to add hover effect in hightcharts?
- How to make highcharts default to 0 for missing data
- Highstocks - How to change the default Zoom
- How to change the font family of Highchart to Bootstrap css default font family
- How to make stacked column graph to show total data value on top
- How to hyperlink bar graph in highcharts
- How to change graph colour above and below plotline in Highcharts
- How do I get the value of a highcharts graph point on mouseover?
- Highcharts + Plotband tooltip hover + default styling
- How to pass custom data into Highcharts graph click event
- How do I set highcharts line graph point colors to an array of colors?
- Highcharts.js: how can stacked area graph animations be smooth?
- Highcharts Areaspline - Highlight a column on hover effect
- How to add our own graph to Kibana?
More Query from same tag
- Combine PieChart with Map
- continue the line drawing on dotnet highchart
- Highmaps logo string rendering invalid copyright character
- how to remove of y -axis label in chart?
- Use variable radius from HighCharts
- Highcharts Drilldown How Do I Keep Drilldown Same Size
- Is it possible to have two Y Axis in a highstock chart from highcharts one on the left and another on the right?
- Angular Highcharts Reading from multi objects elements
- Extending line/area chart lines to chart edges
- Odd Scale Change When Updating Chart Type
- highchart - irregular time series
- .NET Highcharts not applying responsive rules
- Highcharts Gantt avoid overlapping tasks
- Multiple series, multiple charts Highcharts
- Highcharts data series label. for each data point
- highstock -- navigator time range does not update after adding/removing series
- Highcharts Format tooltip for linkedTo: ':previous'
- Gwt Highcharts Marker or Symbol Rotation
- In Highcharts, how to avoid 'max' value being calculated wrong?
- Breakage in highchart generation
- Highcharts - Resizeable y-axis as one for Candlestick & Volume chart
- How do get highcharts combo column scatter to work?
- Formating my json for highcharts
- Content of highchart tooltip getting overflow
- Combine two data fields in highcharts
- Two synchronized vertical lines in highcharts
- Customize legend in highchart
- High chart export not working in android webview
- select distinct name and combine an objects property in a List<T>
- HighCharts Date Formatting