Skip to content

bug with quantityExponent #11249

@GEMINI5516

Description

@GEMINI5516

Version

4.3.0

Reproduction link

https://github.com/apache/incubator-echarts/blob/7041103fb91cf5aeacf934bc990a023dfd3c5dfa/src/util/number.js#L390

Steps to reproduce

quantityExponent has bug with quantityExponent(1000)

What is expected?

quantityExponent(1000) is expected to be 3

What is actually happening?

quantityExponent(1000) = 2

I recommend using Math.log10(val) instead.

Metadata

Metadata

Assignees

Labels

bugdifficulty: easyIssues that can be fixed more easily than the average.enThis issue is in Englishpriority: high

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions