1.3.0 DecimalError bug
See original GitHub issueDo you want to request a feature or report a bug?
Bug.
What is the current behavior?
Throws DecimalError.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: http://jsfiddle.net/ndLhnegs/).
[DecimalError] Invalid argument: Infinity at new Decimal (http://localhost:3000/static/js/bundle.js:14958:17) at getTickValuesFixedDomainFn
What is the expected behavior?
Version 1.3.0 is compatible with 1.2.0.
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
1.3.0, bug found in latest Chrome.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:18 (7 by maintainers)
Top Results From Across the Web
#10933 (Avoid " TypeError: Cannot convert Decimal("0.0000 ...
I am using django 1.3.0 ... loading problem ## http://www.defitek.com/blog/2010/06/29/cant-adapt-type-decimal-error-with-django-apache-postgresql-psycopg2/ ...
Read more >SOLVED - [DecimalError] Invalid argument: undefined Luna ...
[ DecimalError ]: Invalid argument :undefinedThis is the error that always shows up if you are trying to send your Luna Classic (LUNC)...
Read more >Decimal in rust_decimal - Rust - Docs.rs
Parses a string slice into a decimal. If the value underflows and cannot be represented with the given scale then this will return...
Read more >CHANGELOG.md · Gitee 极速下载/recharts - Gitee.com
1.3.0 (Sep 28, 2018). feat. 1.2.0(Sep 7, 2018) ... update recharts-scale to 0.4.2 to fix bug of DecimalError when data is Inifinity, fix...
Read more >Ruby 2.4 and BigDecimal error (invalid value) - Stack Overflow
This is correct behaviour. You can read about it in "BigDecimal fix for Rails 4 with Ruby 2.4". Big Decimal 1.3.0, which ships...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After upgrading to recharts
1.6.x
I am seeing this issue on a basic line chart withdata = []
and the domain set to be["dataMin", "dataMax"]
. Can this be reopened or should I create a new issue?I’m receiving “[DecimalError] Invalid argument: NaN” in
1.6.0
with this:<XAxis dataKey="time" type="number" domain={['dataMin', 'dataMax']} />
and empty data array.https://codepen.io/anon/pen/xNdZgQ?editors=0010
The same error happens when data array is not empty, but
dataKey
props are strings instead of numbers. More descriptive error would be appreciated, otherwise its hard to tell what’s going on.