D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
JohnDelacour
Full window
Github gist
Rotating with only one parameter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <title>Rotating using only the angle parameter</title> <link type="text/css" href="rotation_using_group.css" rel="stylesheet" /> <script src="https://d3js.org/d3.v3.min.js"></script> </head> <body> <script src="rotation_using_group.js"> </script> <div id="text_tip"> Click on the background to rotate a line about a random point on its length.<br /><br /> <strong>NB.</strong> Doesn’t work in Firefox ! </div> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js