• 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 hovered over 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": "%npv%",
    28. "default-value": "__",
    29. "font-family": "Georgia",
    30. "font-size": 40,
    31. "x": "65%",
    32. "y": "38%"
    33. },
    34. {
    35. "text": "of the overall pie.",
    36. "font-family": "Georgia",
    37. "font-size": 16,
    38. "x": "60%",
    39. "y": "54%"
    40. }
    41. ],
    42. "plot": {
    43. "value-box": {
    44. "visible": false
    45. }
    46. },
    47. "plotarea": {
    48. "margin-right": "45%",
    49. "margin-top": "20%",
    50. "margin-bottom": "20%"
    51. },
    52. "series": [{
    53. "values": [34]
    54. },
    55. {
    56. "values": [30]
    57. },
    58. {
    59. "values": [15]
    60. },
    61. {
    62. "values": [14]
    63. },
    64. {
    65. "values": [5]
    66. }
    67. ]
    68. };
    69.  
    70. zingchart.render({
    71. id: 'myChart',
    72. data: myConfig,
    73. height: 300,
    74. width: "100%"
    75. });
    76. </script>
    77. </body>
    78.  
    79. </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 hovered over 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": "%npv%",
    13. "default-value": "__",
    14. "font-family": "Georgia",
    15. "font-size": 40,
    16. "x": "65%",
    17. "y": "38%"
    18. },
    19. {
    20. "text": "of the overall pie.",
    21. "font-family": "Georgia",
    22. "font-size": 16,
    23. "x": "60%",
    24. "y": "54%"
    25. }
    26. ],
    27. "plot": {
    28. "value-box": {
    29. "visible": false
    30. }
    31. },
    32. "plotarea": {
    33. "margin-right": "45%",
    34. "margin-top": "20%",
    35. "margin-bottom": "20%"
    36. },
    37. "series": [{
    38. "values": [34]
    39. },
    40. {
    41. "values": [30]
    42. },
    43. {
    44. "values": [15]
    45. },
    46. {
    47. "values": [14]
    48. },
    49. {
    50. "values": [5]
    51. }
    52. ]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: myConfig,
    58. height: 300,
    59. width: "100%"
    60. });