add formatting options for exponentformat: "power" to provide normalised scientific notation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Hi,
Setting exponentformat to "power" can sometimes display numbers in a format: 0.a × 10^b . We teach the normalised scientific notation (https://en.wikipedia.org/wiki/Scientific_notation#Normalized_notation), in which the number before the decimal place must be greater than or equal to 1, and less than 10.
I couldn't see a way of setting Plotly to use this notation ("tickformat" options don't seem to expose this either), and was wondering whether it could be implemented?
Thanks for your time (and for Plotly, which is great!)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how Plotly handles the exponentformat option and how tickformat is applied. Compare the existing "power" output with normalized scientific notation, where the mantissa is at least 1 and less than 10. Done means a documented formatting option produces that notation consistently, with tests covering representative values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100