Sebuahhobi98

chats realtime

Apr 8th, 2019
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>RealTime Chrats</title>
  5. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/epoch-charting@0.8.4/dist/css/epoch.min.css" integrity="sha256-7Gigjgci9s9U+mXDEimBIp0+p2VICCmW4A3BLG2rbOg=" crossorigin="anonymous">
  6. </head>
  7. <body>
  8. <script>
  9. var areaChartData = [
  10. // The first layer
  11. {
  12. label: "Layer 1",
  13. values: [ {time: 1370044800, y: 100}, {time: 1370044801, y: 1000}]
  14. },
  15.  
  16. // The second layer
  17. {
  18. label: "Layer 2",
  19. values: [ {time: 1370044800, y: 78}, {time: 1370044801, y: 98}]
  20. }
  21. ];
  22.  
  23. </script>
  24. <div id="areaChart" style="width: 800px; height: 200px"></div>
  25.  
  26.  
  27. <script src="http://localhost/tandon_air/assets/jquery.min.js"></script>
  28. <script>
  29.  
  30. $('#areaChart').epoch({
  31. type: 'time.area',
  32. data: areaChartData
  33. });/**/
  34. </script>
  35. <script src="https://d3js.org/d3.v5.min.js"></script>
  36. <script src="https://cdn.jsdelivr.net/npm/epoch-charting@0.8.4/dist/js/epoch.min.js" integrity="sha256-uKluQW6PgYqUnbaF80MDXVMg5/U2Jkl+mIX2qliGmJc=" crossorigin="anonymous"></script>
  37. </body>
  38. </html>
Add Comment
Please, Sign In to add comment