• 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. let chartConfig = {
    17. type: "bar",
    18. refresh: {
    19. type: "feed",
    20. adjustScale: false,
    21. interval: 750, //values assumed ass milliseconds unless the value is less than 50
    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. curtain: { //sets styling for a data loading curtain
    25. text: "More Data Loading...",
    26. alpha: 1,
    27. backgroundColor: "#ccc",
    28. bold: true,
    29. color: "red",
    30. }
    31. },
    32. series: [{
    33. values: []
    34. }]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: chartConfig,
    40. height: 400,
    41. width: '100%'
    42. });
    43. </script>
    44. </body>
    45.  
    46. </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. let chartConfig = {
    2. type: "bar",
    3. refresh: {
    4. type: "feed",
    5. adjustScale: false,
    6. interval: 750, //values assumed ass milliseconds unless the value is less than 50
    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. curtain: { //sets styling for a data loading curtain
    10. text: "More Data Loading...",
    11. alpha: 1,
    12. backgroundColor: "#ccc",
    13. bold: true,
    14. color: "red",
    15. }
    16. },
    17. series: [{
    18. values: []
    19. }]
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: chartConfig,
    25. height: 400,
    26. width: '100%'
    27. });