D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
Igathi
Full window
Github gist
One unfilled rectangle
Built with
blockbuilder.org
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://d3js.org/d3.v4.min.js"></script> <style> body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } </style> </head> <body> <div id="someDiv" style="width:200px;height:100px;border:black 1px solid;"> <input id="someCheckbox" type="checkbox" /> </div> <script> d3.select("#someDiv").style("border", "5px darkgray dashed"); d3.select("#someDiv").attr("id", "newID"); d3.select("#someCheckbox").property("checked", true); </script> </body> </html>
https://d3js.org/d3.v4.min.js