Skip to content

exponentformat of 'E' does not work with log scaling #2919

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

Closed
jacobq opened this issue Aug 17, 2018 · 2 comments · Fixed by #2921
Closed

exponentformat of 'E' does not work with log scaling #2919

jacobq opened this issue Aug 17, 2018 · 2 comments · Fixed by #2921
Labels
bug something broken

Comments

@jacobq
Copy link

jacobq commented Aug 17, 2018

When using layout.yaxis.type = 'log' the layout.yaxis.exponentformat parameter works with SI, power, and none, but setting to e or E triggers the power behavior.

See example here

@alexcjohnson
Copy link
Collaborator

Ha, we're explicit in the code about treating these the same:

if(['e', 'E', 'power'].indexOf(ax.exponentformat) !== -1 ||

But you're right, that's weird. Should be an easy add.

@jacobq
Copy link
Author

jacobq commented Aug 17, 2018

Thanks for investigating (I probably ought to have at least grepped for exponentformat). It's not a huge deal (and I personally think the power format looks nice), but my client specifically requested that I show these values in xE+x format 🤷‍♂️ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants