question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.3.0 DecimalError bug

See original GitHub issue

Do 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
laura-brouckmancommented, May 14, 2019

After upgrading to recharts 1.6.x I am seeing this issue on a basic line chart with data = [] and the domain set to be ["dataMin", "dataMax"]. Can this be reopened or should I create a new issue?

1reaction
art-incommented, May 16, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found