Skip to content

Commit 79988a0

Browse files
committed
Merge pull request #19 from BenoitLeveque/patch-1
xValues[this.point.x] can be undefined if we have a floating value in "this.point.x" and only integer values in xValues
2 parents 8bfac5f + e00f79e commit 79988a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.highchartTable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@
366366
if ($table.data('graph-xaxis-type') == 'datetime') {
367367
return '<b>'+ this.series.name +'</b><br/>'+ Highcharts.dateFormat('%e. %b', this.x) +' : '+ this.y;
368368
} else {
369-
return '<strong>' + this.series.name + '</strong><br />' + xValues[this.point.x] + ' : ' + this.point.name;
369+
var xValue = typeof xValues[this.point.x] != 'undefined' ? xValues[this.point.x] : this.point.x;
370+
return '<strong>' + this.series.name + '</strong><br />' + xValue + ' : ' + this.point.name;
370371
}
371372
}
372373
},

0 commit comments

Comments
 (0)