Skip to content

Commit 847a82e

Browse files
committed
improve labelalias description for negative numbers
1 parent 96c2815 commit 847a82e

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

src/plots/cartesian/layout_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ module.exports = {
642642
'For example using {US: \'USA\', CA: \'Canada\'} changes US to USA',
643643
'and CA to Canada. The labels we would have shown must match',
644644
'the keys exactly, after adding any tickprefix or ticksuffix.',
645+
'For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash.',
646+
'That means you need to use −1 instead of -1.',
645647
'labelalias can be used with any axis type, and both keys (if needed)',
646648
'and values (if desired) can include html-like tags or MathJax.'
647649
].join(' ')

0 commit comments

Comments
 (0)