Skip to content

Commit 4b1d318

Browse files
committed
Merge pull request highchartTable#38 from BenoitLeveque/patch-2
fix duplicated tooltip with pie chart
2 parents eb934cd + 9884fe2 commit 4b1d318

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery.highchartTable.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@
405405
return '<b>'+ this.series.name +'</b><br/>'+ Highcharts.dateFormat('%e. %b', this.x) +' : '+ this.y;
406406
} else {
407407
var xValue = typeof xValues[this.point.x] != 'undefined' ? xValues[this.point.x] : this.point.x;
408+
if (globalGraphType === 'pie') {
409+
return '<strong>' + this.series.name + '</strong><br />' + xValue + ' : ' + this.point.y;
410+
}
408411
return '<strong>' + this.series.name + '</strong><br />' + xValue + ' : ' + this.point.name;
409412
}
410413
}

0 commit comments

Comments
 (0)