_index.html 914 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <link rel="stylesheet" href="dist/style.css">
  8. <style>
  9. #line-heatmap-canvas { width:60%; height:60%; position:absolute; }
  10. #line-heatmap-view { width:60%; height:60%; position:absolute; }
  11. #line-heatmap-tooltip { position:absolute; left:0; top:0; background:rgba(0,0,0,.8); color:white; font-size:14px; padding:5px; line-height:18px; display:none;}
  12. </style>
  13. <title>Test</title>
  14. </head>
  15. <body>
  16. <div>
  17. <div id="hea">
  18. </div>
  19. </div>
  20. <script src="dist/line_heatmap.js"></script>
  21. <script>
  22. line_heatmap.Container.init('hea',"100,200,1,0\n100,200,1,0\n100,200,1,0\n100,200,1,0\n250,350,1,0\n250,350,1,0\n250,350,1,0\n250,350,1,0\n250,350,1,0", true, {radius:100});
  23. </script>
  24. </body>
  25. </html>