Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differences in scaleLinear between v4 and v5 #218

Closed
791106912 opened this issue Jul 9, 2020 · 1 comment
Closed

Differences in scaleLinear between v4 and v5 #218

791106912 opened this issue Jul 9, 2020 · 1 comment

Comments

@791106912
Copy link

d3.v5.js

   const extent = [0, 0]
   const scale = scaleLinear()
      .domain(extent)
      .range([200, 0]);
    scale(0)  // return 100

d3.v4.js

   const extent = [0, 0]
   const scale = scaleLinear()
      .domain(extent)
      .range([200, 0]);
    scale(0)  // return 200

So, How do I use v5 to achieve the effect of v4. Thank you.

@Fil
Copy link
Member

Fil commented Jul 9, 2020

You would have to test it in your application explicitly. This change happened in #117

@Fil Fil closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants