• 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. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. let chartConfig = {
    35. type: 'navpie',
    36. options: {
    37. threshold: '20%',
    38. maxWidth: 1000,
    39. others: {
    40. text: 'Others',
    41. backgroundColor: '#999 #333'
    42. },
    43. back: {
    44. backgroundColor: '#47a',
    45. border: '3px solid #47a',
    46. borderRadius: 9,
    47. color: '#fff',
    48. fontWeight: 'bold',
    49. fontSize: 12,
    50. padding: 10,
    51. shadow: true,
    52. shadowAlpha: 0.5,
    53.  
    54. hoverState: {
    55. backgroundColor: 'blue'
    56. },
    57. },
    58. },
    59. series: [{
    60. values: [69],
    61. text: 'Apple'
    62. },
    63. {
    64. values: [51],
    65. text: 'Microsoft'
    66. },
    67. {
    68. values: [42],
    69. text: 'Oracle'
    70. },
    71. {
    72. values: [20],
    73. text: 'Dell'
    74. },
    75. {
    76. values: [19],
    77. text: 'Amazon'
    78. },
    79. ]
    80. }
    81.  
    82. zingchart.render({
    83. id: 'myChart',
    84. data: chartConfig,
    85. height: '100%',
    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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. let chartConfig = {
    2. type: 'navpie',
    3. options: {
    4. threshold: '20%',
    5. maxWidth: 1000,
    6. others: {
    7. text: 'Others',
    8. backgroundColor: '#999 #333'
    9. },
    10. back: {
    11. backgroundColor: '#47a',
    12. border: '3px solid #47a',
    13. borderRadius: 9,
    14. color: '#fff',
    15. fontWeight: 'bold',
    16. fontSize: 12,
    17. padding: 10,
    18. shadow: true,
    19. shadowAlpha: 0.5,
    20.  
    21. hoverState: {
    22. backgroundColor: 'blue'
    23. },
    24. },
    25. },
    26. series: [{
    27. values: [69],
    28. text: 'Apple'
    29. },
    30. {
    31. values: [51],
    32. text: 'Microsoft'
    33. },
    34. {
    35. values: [42],
    36. text: 'Oracle'
    37. },
    38. {
    39. values: [20],
    40. text: 'Dell'
    41. },
    42. {
    43. values: [19],
    44. text: 'Amazon'
    45. },
    46. ]
    47. }
    48.  
    49. zingchart.render({
    50. id: 'myChart',
    51. data: chartConfig,
    52. height: '100%',
    53. width: '100%'
    54. });