• 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",
    18. "labels": [{
    19. "text": "Learn more",
    20. "font-family": "Georgia",
    21. "font-size": "16",
    22. "x": "60%",
    23. "y": "30%"
    24. },
    25. {
    26. "text": "about the color",
    27. "font-family": "Georgia",
    28. "font-size": "16",
    29. "x": "60%",
    30. "y": "35%"
    31. },
    32. {
    33. "text": "blue",
    34. "url": "https://en.wikipedia.org/wiki/Blue",
    35. "target": "_blank",
    36. "font-color": "#29A2CC",
    37. "font-family": "Georgia",
    38. "font-size": "45",
    39. "x": "60%",
    40. "y": "40%"
    41. },
    42. {
    43. "text": "(Click the above blue.)",
    44. "font-family": "Georgia",
    45. "font-size": "10",
    46. "x": "60%",
    47. "y": "55%"
    48. }
    49. ],
    50. "plot": {
    51. "value-box": {
    52. "placement": "out",
    53. "offset-r": "-10",
    54. "font-family": "Georgia",
    55. "font-size": 12,
    56. "font-weight": "normal"
    57. }
    58. },
    59. "plotarea": {
    60. "margin-right": "45%",
    61. "margin-top": "20%",
    62. "margin-bottom": "20%"
    63. },
    64. "series": [{
    65. "values": [34]
    66. },
    67. {
    68. "values": [30]
    69. },
    70. {
    71. "values": [15]
    72. },
    73. {
    74. "values": [14]
    75. },
    76. {
    77. "values": [5]
    78. }
    79. ]
    80. };
    81.  
    82. zingchart.render({
    83. id: 'myChart',
    84. data: myConfig,
    85. height: 400,
    86. width: "100%"
    87. });
    88. </script>
    89. </body>
    90.  
    91. </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",
    3. "labels": [{
    4. "text": "Learn more",
    5. "font-family": "Georgia",
    6. "font-size": "16",
    7. "x": "60%",
    8. "y": "30%"
    9. },
    10. {
    11. "text": "about the color",
    12. "font-family": "Georgia",
    13. "font-size": "16",
    14. "x": "60%",
    15. "y": "35%"
    16. },
    17. {
    18. "text": "blue",
    19. "url": "https://en.wikipedia.org/wiki/Blue",
    20. "target": "_blank",
    21. "font-color": "#29A2CC",
    22. "font-family": "Georgia",
    23. "font-size": "45",
    24. "x": "60%",
    25. "y": "40%"
    26. },
    27. {
    28. "text": "(Click the above blue.)",
    29. "font-family": "Georgia",
    30. "font-size": "10",
    31. "x": "60%",
    32. "y": "55%"
    33. }
    34. ],
    35. "plot": {
    36. "value-box": {
    37. "placement": "out",
    38. "offset-r": "-10",
    39. "font-family": "Georgia",
    40. "font-size": 12,
    41. "font-weight": "normal"
    42. }
    43. },
    44. "plotarea": {
    45. "margin-right": "45%",
    46. "margin-top": "20%",
    47. "margin-bottom": "20%"
    48. },
    49. "series": [{
    50. "values": [34]
    51. },
    52. {
    53. "values": [30]
    54. },
    55. {
    56. "values": [15]
    57. },
    58. {
    59. "values": [14]
    60. },
    61. {
    62. "values": [5]
    63. }
    64. ]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: myConfig,
    70. height: 400,
    71. width: "100%"
    72. });