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