We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I am trying to use your library (with THREE.js).
I tried to run the example javascript code inside an HTML file with the line:
At the line: var contours = d3.contours() .size([n, m]) .thresholds(d3.range(2, 21).map(p => Math.pow(2, p))) (values);
I got the error message: "TypeError: d3.range is not a function".
I guess I need to link another library?
The text was updated successfully, but these errors were encountered:
Yes in that case you would need to add <script src="https://d3js.org/d3-array.v2.min.js"></script>
<script src="https://d3js.org/d3-array.v2.min.js"></script>
We should edit the README and replace d3.range by native JS: Array.from({ length: 19 }, (_, i) => Math.pow(2, i + 2))
Array.from({ length: 19 }, (_, i) => Math.pow(2, i + 2))
Sorry, something went wrong.
@Fil
Thanks very much.
It works now when I link in the d3-array.v2.min.js file.
854d2af
I managed to make a mistake when updating README: 8b837a9
No branches or pull requests
Hi,
I am trying to use your library (with THREE.js).
I tried to run the example javascript code inside an HTML file with the line:
<script src="https://d3js.org/d3-contour.v1.min.js"></script>At the line:
var contours = d3.contours()
.size([n, m])
.thresholds(d3.range(2, 21).map(p => Math.pow(2, p)))
(values);
I got the error message: "TypeError: d3.range is not a function".
I guess I need to link another library?
The text was updated successfully, but these errors were encountered: