Closed
Description
Codepen
http://codepen.io/satotake/pen/wWRpbd
Condition
- Yaxis labels contains any 4-digit integers such as
3000
- and
layout.yaxis.exponentformat = "none"
Unexpected output
- 4-digit integers on axes has no-comma separation
- It is expected that value
3000
is displayed as3,000
- (on the other hand, more than 5-digit integers display as expected
30000
>>>>30,000
)
- It is expected that value
Cause
- Spec of
lib.numSeparate
numSeparate
is used in various contexts such as hover, xaxis, yaxis and so onnumSeparate
does not add comma separation to 4-digit int intentionally considering about Year value- in order to avoid to convert
2016
into2,016
- in order to avoid to convert
Suggestion
How do you think about addition of the optional flag to numSeparation
?
Which enable us to discriminate between year values or not.