• 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. "title": {
    27. "text": "Twitter Gender Distribution",
    28. "font-color": "#00c3f8",
    29. "font-size": "20px",
    30. "font-family": "sans-serif"
    31. },
    32. "plot": {
    33. "slice": "50%",
    34. "margin": "60px",
    35. "shadow": "false",
    36. "value-box": {
    37. "visible": 0
    38. }
    39. },
    40. "legend": {
    41. "border-radius": "10px",
    42. "shadow": "false",
    43. "x": "50px",
    44. "y": "70px"
    45. },
    46. "images": [{
    47. "src": "https://app.zingsoft.com/api/file/MHFWKYHX/Twitter_bird_icon_v2.png",
    48. "width": "100%",
    49. "height": "100%",
    50. "offset-y": 10
    51. }],
    52. "plotarea": {
    53. "background-color": "#fff"
    54. },
    55. "scale-r": {
    56. "ref-angle": 85
    57. },
    58. "series": [{
    59. "text": "Female",
    60. "values": [53],
    61. "background-color": "#f7547f",
    62. "border-width": "0"
    63. },
    64. {
    65. "text": "Male",
    66. "values": [47],
    67. "background-color": "#00c3f8",
    68. "border-width": "0"
    69. }
    70. ]
    71. }]
    72. };
    73.  
    74. zingchart.render({
    75. id: 'myChart',
    76. data: myConfig,
    77. height: "100%",
    78. width: "100%"
    79. });
    80. </script>
    81. </body>
    82.  
    83. </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. "title": {
    5. "text": "Twitter Gender Distribution",
    6. "font-color": "#00c3f8",
    7. "font-size": "20px",
    8. "font-family": "sans-serif"
    9. },
    10. "plot": {
    11. "slice": "50%",
    12. "margin": "60px",
    13. "shadow": "false",
    14. "value-box": {
    15. "visible": 0
    16. }
    17. },
    18. "legend": {
    19. "border-radius": "10px",
    20. "shadow": "false",
    21. "x": "50px",
    22. "y": "70px"
    23. },
    24. "images": [{
    25. "src": "https://app.zingsoft.com/api/file/MHFWKYHX/Twitter_bird_icon_v2.png",
    26. "width": "100%",
    27. "height": "100%",
    28. "offset-y": 10
    29. }],
    30. "plotarea": {
    31. "background-color": "#fff"
    32. },
    33. "scale-r": {
    34. "ref-angle": 85
    35. },
    36. "series": [{
    37. "text": "Female",
    38. "values": [53],
    39. "background-color": "#f7547f",
    40. "border-width": "0"
    41. },
    42. {
    43. "text": "Male",
    44. "values": [47],
    45. "background-color": "#00c3f8",
    46. "border-width": "0"
    47. }
    48. ]
    49. }]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: myConfig,
    55. height: "100%",
    56. width: "100%"
    57. });