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.

Random error when changing scales

See original GitHub issue

d3.js:5949 Error: <g> attribute transform: Trailing garbage, "translate(0,NaN)".

I keep getting this error randomly with d3 when I’m changing scales in my application.

Any idea what might cause it? Just to sum up:

  • I’m only switching between linear and logarithmic scales.
  • Data stays intact.
  • Error shows randomly.
  • All data points are positive.
  • Can’t google solution to this error.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
mbostockcommented, Jun 14, 2016

Sounds like you’re trying to render a log scale with a domain that crosses (or includes) zero.

0reactions
rogeralexmillercommented, Sep 18, 2017

Also had this error while trying to convert a scatter plot with linear scale to a log scale. Thanks for clearing this up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Random vs. Systematic Error | Definition & Examples - Scribbr
Random error affects your measurements in unpredictable ways: your measurements are equally likely to be higher or lower than the true values.
Read more >
Random vs. Systematic Error Definitions and Examples
Random error causes one measurement to differ slightly from the next. It comes from unpredictable changes during an experiment. Systematic error ...
Read more >
Systematic Error / Random Error: Definition and Examples
Scale factor errors increase (or decrease) the true value by a proportion or percentage. Random errors do not follow a pattern.
Read more >
Random vs. Systematic Error - UMD Physics
Multiplier or scale factor error in which the instrument consistently reads changes in the quantity to be measured greater or less than the...
Read more >
Errors and Uncertainty in Experimental Data - LPS
A random error makes the measured value both smaller and larger than the true value. Chance alone determines if it is smaller or...
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