Consider the HighCharts object here which has been given as a solution of a previous question and whose plotOptions details are:
plotOptions: {
scatter: {
lineWidth:1,
marker: {
radius: 1,
symbol:'circle',
fillColor: '#800000',
states: {
hover: {
enabled: true,
radius:0,
radiusPlus:2,
lineColor: '#ff0000',
fillColor: '#ff0000'
}
}
},
events: {
mouseOver: function () {
this.chart.series[this.index].update({
color: 'red'
});
},
mouseOut: function () {
this.chart.series[this.index].update({
color: "#b0b0b0"
});
}
}
}
},
When I copy and paste the code in an html file (but even in jfiddle) and run it in Firefox with FireBug active, hovering over and out the series gives the error: TypeError: f.onMouseOut is not a function
in the console. How can I eliminate such an error?