d3 / d3-scale-chromatic

Sequential, diverging and categorical color scales.
https://d3js.org/d3-scale-chromatic
Other
802 stars 106 forks source link

Is this plugging compatible with d3-v3? #7

Closed 1Cr18Ni9 closed 7 years ago

1Cr18Ni9 commented 7 years ago

Hi, Mike, I read some demos you write putting this extension right after d3-v4.x.js, so my question is does this extension compatible with d3-v3.x.js? I mean does it compatible backwards. Many Thanks!

mbostock commented 7 years ago

Per the package.json, this package depends on d3-interpolate@1. You could in theory load that in addition to d3@3, but depending on your environment, this could cause conflicts on the d3 global since some of the methods in d3-interpolate@1 are the same as d3@3. You could instead use Rollup to create a custom bundle to avoid this conflict.

At any rate, I don’t support d3@3, so whatever you decide to do is up to you!