Hi,
I want to format tooltip of regression line.
formatterfUN = function () {
var s = '<b>' + this.x + '</b>';
$.each(this.points, function () {
s += '<br/>' + this.series.name + ': ' +
Math.round(this.y * 100) / 100 + 'Bcf/d';
});
return s;
},
scatter = {
regression: true,
regressionSettings: {
name: source
.observationName + ' Trend',
type: 'polynomial',
color: colors[colorIndex],
tooltip: {
formatter: formatterfUN
}
},
type: 'scatter',
name: source.observationName,
data: scatterData,
color: colors[colorIndex],
marker: {
radius: 4
},
tooltip: {
valueSuffix: 'Bcf/d',
headerFormat: '<b>{series.name}</b><br>',
pointFormat: '{point.x} degree, {point.y}'
}
};
This is not working for me
Is there any other way to format the tooltip of the regression line.
http://jsfiddle.net/DivyaYandra/j7pk1uxa/3/