• 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": "pie", //"pie", "pie3d", "ring", or "ring3d"
    18. "title": {
    19. "text": "Multiple Pie Charts"
    20. },
    21. "scale": {
    22. "layout": "2x3", //specify the layout by rows and columns
    23. "size-factor": 0.5 //provide a decimal or percentage value
    24. },
    25. "plot": {
    26. "value-box": {
    27. "font-size": 10,
    28. "font-weight": "normal",
    29. "placement": "out"
    30. }
    31. },
    32. "series": [{
    33. "values": [59, 60, 50, 40, 61, 58]
    34. },
    35. {
    36. "values": [55, 40, 40, 55, 35, 57]
    37. },
    38. {
    39. "values": [30, 35, 30, 49, 31, 39]
    40. },
    41. {
    42. "values": [28, 30, 20, 40, 28, 36]
    43. },
    44. {
    45. "values": [15, 20, 10, 16, 14, 32]
    46. }
    47. ]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: myConfig,
    53. height: 400,
    54. width: "100%"
    55. });
    56. </script>
    57. </body>
    58.  
    59. </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": "pie", //"pie", "pie3d", "ring", or "ring3d"
    3. "title": {
    4. "text": "Multiple Pie Charts"
    5. },
    6. "scale": {
    7. "layout": "2x3", //specify the layout by rows and columns
    8. "size-factor": 0.5 //provide a decimal or percentage value
    9. },
    10. "plot": {
    11. "value-box": {
    12. "font-size": 10,
    13. "font-weight": "normal",
    14. "placement": "out"
    15. }
    16. },
    17. "series": [{
    18. "values": [59, 60, 50, 40, 61, 58]
    19. },
    20. {
    21. "values": [55, 40, 40, 55, 35, 57]
    22. },
    23. {
    24. "values": [30, 35, 30, 49, 31, 39]
    25. },
    26. {
    27. "values": [28, 30, 20, 40, 28, 36]
    28. },
    29. {
    30. "values": [15, 20, 10, 16, 14, 32]
    31. }
    32. ]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: myConfig,
    38. height: 400,
    39. width: "100%"
    40. });