score:1
Accepted answer
Disable series states
and use attr
method to change stroke
and fill
colors:
plotOptions: {
series: {
states: {
hover: {
enabled: false
},
inactive: {
enabled: false
}
},
events: {
mouseOver: function() {
this.graph.attr({
stroke: "rgb(255,0,0)"
});
this.points.forEach(p => p.graphic.attr({
fill: "rgb(255,0,0)"
}));
},
mouseOut: function() {
this.graph.attr({
stroke: this.color
});
this.points.forEach(p => p.graphic.attr({
fill: this.color
}));
}
}
},
},
Live demo: https://jsfiddle.net/BlackLabel/dnr93Law/
API Reference:
https://api.highcharts.com/highcharts/series.line.states
https://api.highcharts.com/class-reference/Highcharts.SVGElement#attr
Source: stackoverflow.com
Related Query
- alternative way to change hovered series and its points properties in a HighCharts chart
- How to set series-label to false by default and change the color of series label text in highchart
- highmaps click on country and change its background color, Also remove the Series 1 from tooltips
- Drawind Dynamic series and points with Highchart and ajax
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Series markers disable on lines and enable on legend in Highchart
- How to change series legend text color in HighChart chart?
- Change chart type and redraw with multiple series in Highcharts
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- Is there a way to change the display value in series using highcharts
- Highcharts change symbol and hover text of individual points Line Chart
- change the categories and series in highcharts by select button?
- Highstock, True way of Get count of shown points after setExtreme (Zooming) - WITHOUT counting all data with MIN and MAX
- Highchart Axis with only min and max series value
- Why does my highchart only expand horizontally to fill its containing div, and not vertically?
- Display HighStock y-axis and its labels on the right of the series
- Change xAxis and yAxis title of drilldown chart after entering into second series
- Unable to create Highchart where i can show different - different data on clicking category and series
- How to change HighChart xAxis timeline to match local time and not UTC?
- How do I add an array of data points to a Highchart series
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- How to change the data series for highchart using a dropdown list
- Loading data to Highchart from MySQL and displaying in appropriate way
- HighChart type = area hover color change at several points
- Displaying highchart columnrange charting xAxis, yAxis and series
- Javascript - Highchart - tooltip position of data points and flags
- How to add multiple series dynamically and update its data dynamically
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- Column based Highchart drilldown series assign color code to each column
- How to define name and value for x axis points in Highchart
More Query from same tag
- Optimize chart rendering when adding series dynamically
- highcharts using pie chart plotOptions
- Highcharts - Pie chart with parial doughnut overlap
- HightCharts : area range and spline in the same graph issue
- Horizotal scrollable highcharts timeline chart
- Different images in tooltips in Highcharts diagrams
- How to remove a gap in high charts graph with two yAxis
- Stacked column not lining up with highcharts
- PHP: Convert date to Javascript date (January = zero)
- highcharts xAxis label set 0.5% step
- How can I automate high charts and graphs using selenium webdriver?
- Plot Highchart Gauge with JSON Data
- Highchart heatmap: exclude the total row for color Axis
- Issue with speedometer highcharts dynamically update guage range
- Highchart world map rendering too slow in edge legacy browser
- Generate pdf on the fly with charts
- Highchart Heatmap - DateTime Y Axis Alignment
- highcharts first and last category width
- Highcharts categories adjust yAxis.labels.y to bottom of lane
- Highcharts - svg vs digital
- US Counties map in Highmaps for Angular throws compilation error
- highstock ie8 error
- Highcharts - How to format yAxis label to have single digit?
- Staged labels for xaxis with zero values
- Highcharts data module JSON api call setTimeout 30 sek
- asp.net mvc highchart linegraph json
- Highcharts - How to remove tooltip arrows
- Wrapping a HighChart in AngularJS
- reactjs highcharts reference for reload
- How to use Highcharts to implement this dynamically shifting from right to left effect?