Skip to content

Commit 8af67ef

Browse files
authored
Merge pull request #6667 from plotly/minus-sign-in-labelalias
improve labelalias description for negative numbers
2 parents f4b9e43 + 847a82e commit 8af67ef

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

src/plots/cartesian/layout_attributes.js

+2
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)