• 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: 'pie',
    18. plot: {
    19. showZero: true
    20. },
    21. series: [{
    22. values: [0]
    23. },
    24. {
    25. values: [55]
    26. },
    27. {
    28. values: [130]
    29. },
    30. {
    31. values: [28]
    32. },
    33. {
    34. values: [15]
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: chartConfig,
    42. height: 400,
    43. width: '100%'
    44. });
    45. </script>
    46. </body>
    47.  
    48. </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: 'pie',
    3. plot: {
    4. showZero: true
    5. },
    6. series: [{
    7. values: [0]
    8. },
    9. {
    10. values: [55]
    11. },
    12. {
    13. values: [130]
    14. },
    15. {
    16. values: [28]
    17. },
    18. {
    19. values: [15]
    20. }
    21. ]
    22. };
    23.  
    24. zingchart.render({
    25. id: 'myChart',
    26. data: chartConfig,
    27. height: 400,
    28. width: '100%'
    29. });