-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comma separtor of four-digit number on axes is not consistent #841
Comments
Thanks very much for this very detailed report. All your points are correct ✅ Adding this feature as an option sounds like the way to go here. We could either add a character to layout.separators = '.,';
// gives
// 3000 -> 3000
// 30000 -> 30,000
layout.separators = '.,,';
// gives
// 3000 -> 3,000
// 30000 -> 30,000 where the missing Or, we could add another attribute. a boolean flag e.g. layout.firstseparator = 3;
// gives
// 3000 -> 3,000
// 30000 -> 30,000
layout.firstseparator = 5;
// gives
// 3000 -> 30000
// 30000 -> 3,0000 ... hmm maybe that last example isn't worth supporting. Just a thought. @satotake What are your thoughts? |
Thank you for your suggenstions, @etpinard ! It may not be friendly for strangers to set properties like it sounds good for me to add a boolean flag like In addition to this specification, the bool flag should be separated by contexts in my opinion.
|
done in #848 |
Codepen
http://codepen.io/satotake/pen/wWRpbd
Condition
3000
layout.yaxis.exponentformat = "none"
Unexpected output
3000
is displayed as3,000
30000
>>>>30,000
)Cause
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 value2016
into2,016
Suggestion
How do you think about addition of the optional flag to
numSeparation
?Which enable us to discriminate between year values or not.
The text was updated successfully, but these errors were encountered: