Advertisement
dhshin

scatter_skel

Mar 20th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.91 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>JS Bin</title>
  7.   <style>
  8.     svg {
  9.       font: 10px sans-serif;
  10.     }
  11.     .axis path,
  12.     .axis line {
  13.       fill: none;
  14.       stroke: #000;
  15.       shape-rendering: crispEdges;
  16.     }
  17.   </style>
  18. </head>
  19. <body>
  20.   <svg width="550" height="550">
  21.   </svg>
  22.   <p>
  23.     MEAN(width) = <span id="mean-width"></span>, MEAN(length) = <span id="mean-length"></span>
  24.   </p>
  25.   <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.3/d3.min.js"></script>
  26.  
  27.   <script>
  28.    
  29.     function ready(fn) {
  30.       if (document.readyState != 'loading'){
  31.         fn();
  32.       } else {
  33.         document.addEventListener('DOMContentLoaded', fn);
  34.       }
  35.     }
  36.  
  37.     ready(init);
  38.  
  39.     function init() {
  40.       // TODO : 여기서부터 코드를 작성
  41.  
  42.     }
  43.    
  44.   </script>
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement