D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
nitaku
Full window
Github gist
Interactive rota II
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="description" content="Interactive rota"/> <title>Interactive rota</title> <link type="text/css" href="index.css" rel="stylesheet"/> <script src="https://d3js.org/d3.v3.min.js"></script> </head> <body> <svg height="800" width="960"> <defs> <pattern id="rota_img" patternUnits="userSpaceOnUse" x="-491" y="-427" width="800" height="800" viewBox="0 0 800 800"> <image xlink:href="https://wafi.iit.cnr.it/webvis/tmp/clavius/rota_2.jpg" x="80" y="0" height="800" width="800" /> </pattern> </defs> <g id="zoom_group"> <g transform="translate(491,427)"> <rect fill="url(#rota_img)" x="-491" y="-427" width="800" height="800" /> <g id="rota_1" class="rota"> <circle fill="url(#rota_img)" cx="0" cy="0" r="117" /> <circle class="highlight" cx="0" cy="0" r="117" /> </g> <circle fill="url(#rota_img)" cx="0" cy="0" r="17" /> </g> </g> </svg> <script src="index.js"></script> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js