diff --git a/HISTORY.md b/HISTORY.md index b85074e5..9751b692 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -12,6 +12,11 @@ http://visjs.org - Fixed #1630: method `getDataRange` was wrongly called `getItemRange` in docs. +### Graph3d + +- The built-in tooltip now shows the provided `xLabel`, `yLabel`, and `zLabel` + instead of `'x'`, `'y'`, and `'z'`. Thanks @jacklightbody. + ## 2016-02-04, version 4.14.0 diff --git a/lib/graph3d/Graph3d.js b/lib/graph3d/Graph3d.js index 68390079..9db4fbeb 100644 --- a/lib/graph3d/Graph3d.js +++ b/lib/graph3d/Graph3d.js @@ -2237,9 +2237,9 @@ Graph3d.prototype._showTooltip = function (dataPoint) { } else { content.innerHTML = '' + - '' + - '' + - '' + + '' + + '' + + '' + '
x:' + dataPoint.point.x + '
y:' + dataPoint.point.y + '
z:' + dataPoint.point.z + '
' + this.xLabel + ':' + dataPoint.point.x + '
' + this.yLabel + ':' + dataPoint.point.y + '
' + this.zLabel + ':' + dataPoint.point.z + '
'; }