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
<!DOCTYPE html> <html class="no-js"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <title>about</title> <script src="./d3.min.js"></script> </head> <body> <svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg"></svg> <script> var data = "abc".split(""); d3.select("body").selectAll("text") .data(data) .enter() .append("p") .text(function (d) { return d; }) .on("click", function (d, i) { console.log(i); }) </script> </body> </html>
a/b/c will be output.
The text was updated successfully, but these errors were encountered:
event handlers now receive (event, datum), please see the changelog or release notes.
a/b/c will be output.
The text was updated successfully, but these errors were encountered: