Skip to content

Commit 7581567

Browse files
committed
use unicode minus in Axes.hoverLabelText
1 parent 6cb4e71 commit 7581567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ axes.hoverLabelText = function(ax, val) {
12211221
var tx = axes.tickText(ax, ax.c2l(logOffScale ? -val : val), 'hover').text;
12221222

12231223
if(logOffScale) {
1224-
return val === 0 ? '0' : '-' + tx;
1224+
return val === 0 ? '0' : MINUS_SIGN + tx;
12251225
}
12261226

12271227
// TODO: should we do something special if the axis calendar and

0 commit comments

Comments
 (0)