• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. var myConfig = {
    17. type: "bar",
    18. refresh: {
    19. interval: 500, //values assumed ass milliseconds unless the value is less than 50
    20. type: "feed",
    21. adjustScale: false,
    22. maxTicks: 15, //max number of data points painted in chart others will be pushed off
    23. url: "https://us-central1-zingchart-com.cloudfunctions.net/public_http_feed?min=0&max=40&plots=1"
    24. },
    25. series: [{
    26. values: []
    27. }]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: myConfig,
    33. height: 400,
    34. width: '100%'
    35. });
    36. </script>
    37. </body>
    38.  
    39. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. var myConfig = {
    2. type: "bar",
    3. refresh: {
    4. interval: 500, //values assumed ass milliseconds unless the value is less than 50
    5. type: "feed",
    6. adjustScale: false,
    7. maxTicks: 15, //max number of data points painted in chart others will be pushed off
    8. url: "https://us-central1-zingchart-com.cloudfunctions.net/public_http_feed?min=0&max=40&plots=1"
    9. },
    10. series: [{
    11. values: []
    12. }]
    13. };
    14.  
    15. zingchart.render({
    16. id: 'myChart',
    17. data: myConfig,
    18. height: 400,
    19. width: '100%'
    20. });