• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "graphset": [{
    25. "type": "pie",
    26. "plotarea": {
    27. "background-color": "#333"
    28. },
    29. "title": {
    30. "text": "Planet Express Shipping",
    31. "background-color": "red"
    32. },
    33. "legend": {
    34.  
    35. },
    36. "images": [{
    37. "src": "https://app.zingsoft.com/api/file/NR5A5K6S/Planet_Express.png",
    38. "x": "45%",
    39. "y": "45%",
    40. "anchor": 'c'
    41. }],
    42. "series": [{
    43. "values": [11],
    44. "background-color": "#f57800",
    45. "text": "In Route"
    46. },
    47. {
    48. "values": [30],
    49. "background-color": "#b83113",
    50. "text": "Delivered"
    51. },
    52. {
    53. "values": [25],
    54. "background-color": "#228c9c",
    55. "text": "Orders"
    56. }
    57. ]
    58. }]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: myConfig,
    64. height: "100%",
    65. width: "100%"
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "graphset": [{
    3. "type": "pie",
    4. "plotarea": {
    5. "background-color": "#333"
    6. },
    7. "title": {
    8. "text": "Planet Express Shipping",
    9. "background-color": "red"
    10. },
    11. "legend": {
    12.  
    13. },
    14. "images": [{
    15. "src": "https://app.zingsoft.com/api/file/NR5A5K6S/Planet_Express.png",
    16. "x": "45%",
    17. "y": "45%",
    18. "anchor": 'c'
    19. }],
    20. "series": [{
    21. "values": [11],
    22. "background-color": "#f57800",
    23. "text": "In Route"
    24. },
    25. {
    26. "values": [30],
    27. "background-color": "#b83113",
    28. "text": "Delivered"
    29. },
    30. {
    31. "values": [25],
    32. "background-color": "#228c9c",
    33. "text": "Orders"
    34. }
    35. ]
    36. }]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: "100%",
    43. width: "100%"
    44. });