Skip to content

Comma separtor of four-digit number on axes is not consistent #841

Closed
@satotake

Description

@satotake

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 as 3,000
    • (on the other hand, more than 5-digit integers display as expected 30000 >>>> 30,000 )

Cause

  • Spec of lib.numSeparate
  • numSeparate is used in various contexts such as hover, xaxis, yaxis and so on
  • numSeparate does not add comma separation to 4-digit int intentionally considering about Year value
    • in order to avoid to convert 2016 into 2,016

Suggestion

How do you think about addition of the optional flag to numSeparation ?
Which enable us to discriminate between year values or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    communitycommunity contributionfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions