• 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": "The value of<br>the hovered over<br>pie slice<br>is",
    20. "text-align": "left",
    21. "font-family": "Georgia",
    22. "font-size": 16,
    23. "x": "60%",
    24. "y": "30%"
    25. },
    26. {
    27. "text": "%plot-value",
    28. "default-value": "__",
    29. "font-family": "Georgia",
    30. "font-size": 34,
    31. "x": "65%",
    32. "y": "44%"
    33. },
    34. {
    35. "text": ".",
    36. "font-family": "Georgia",
    37. "font-size": 16,
    38. "x": "73%",
    39. "y": "50%"
    40. }
    41. ],
    42. "plot": {
    43. "value-box": {
    44. "placement": "out",
    45. "offset-r": "-10",
    46. "font-family": "Georgia",
    47. "font-size": 12,
    48. "font-weight": "normal"
    49. }
    50. },
    51. "plotarea": {
    52. "margin-right": "45%",
    53. "margin-top": "20%",
    54. "margin-bottom": "20%"
    55. },
    56. "series": [{
    57. "values": [34]
    58. },
    59. {
    60. "values": [30]
    61. },
    62. {
    63. "values": [15]
    64. },
    65. {
    66. "values": [14]
    67. },
    68. {
    69. "values": [5]
    70. }
    71. ]
    72. };
    73.  
    74. zingchart.render({
    75. id: 'myChart',
    76. data: myConfig,
    77. height: 400,
    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.  
    1. var myConfig = {
    2. "type": "pie",
    3. "labels": [{
    4. "text": "The value of<br>the hovered over<br>pie slice<br>is",
    5. "text-align": "left",
    6. "font-family": "Georgia",
    7. "font-size": 16,
    8. "x": "60%",
    9. "y": "30%"
    10. },
    11. {
    12. "text": "%plot-value",
    13. "default-value": "__",
    14. "font-family": "Georgia",
    15. "font-size": 34,
    16. "x": "65%",
    17. "y": "44%"
    18. },
    19. {
    20. "text": ".",
    21. "font-family": "Georgia",
    22. "font-size": 16,
    23. "x": "73%",
    24. "y": "50%"
    25. }
    26. ],
    27. "plot": {
    28. "value-box": {
    29. "placement": "out",
    30. "offset-r": "-10",
    31. "font-family": "Georgia",
    32. "font-size": 12,
    33. "font-weight": "normal"
    34. }
    35. },
    36. "plotarea": {
    37. "margin-right": "45%",
    38. "margin-top": "20%",
    39. "margin-bottom": "20%"
    40. },
    41. "series": [{
    42. "values": [34]
    43. },
    44. {
    45. "values": [30]
    46. },
    47. {
    48. "values": [15]
    49. },
    50. {
    51. "values": [14]
    52. },
    53. {
    54. "values": [5]
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: myConfig,
    62. height: 400,
    63. width: "100%"
    64. });