Skip to content

Commit

Permalink
Merge pull request #6667 from plotly/minus-sign-in-labelalias
Browse files Browse the repository at this point in the history
improve labelalias description for negative numbers
  • Loading branch information
archmoj authored Jul 19, 2023
2 parents f4b9e43 + 847a82e commit 8af67ef
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 52 deletions.
2 changes: 2 additions & 0 deletions src/plots/cartesian/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ module.exports = {
'For example using {US: \'USA\', CA: \'Canada\'} changes US to USA',
'and CA to Canada. The labels we would have shown must match',
'the keys exactly, after adding any tickprefix or ticksuffix.',
'For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash.',
'That means you need to use −1 instead of -1.',
'labelalias can be used with any axis type, and both keys (if needed)',
'and values (if desired) can include html-like tags or MathJax.'
].join(' ')
Expand Down
Loading

0 comments on commit 8af67ef

Please sign in to comment.