• 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: 'pie',
    36. plot: {
    37. layout: 'auto',
    38. valueBox: {
    39. fontFamily: 'Georgia',
    40. fontSize: 14,
    41. fontWeight: 'normal',
    42. placement: 'out',
    43. }
    44. },
    45. series: [{
    46. values: [50],
    47. backgroundColor: '#3F51B5',
    48.  
    49. valueBox: {
    50. connector: {
    51. alpha: 1,
    52. lineColor: '#E91E63',
    53. lineStyle: 'dotted',
    54. lineWidth: 2
    55. }
    56. }
    57. },
    58. {
    59. values: [35],
    60. backgroundColor: '#5C6BC0'
    61. },
    62. {
    63. values: [34],
    64. backgroundColor: '#7986CB'
    65. },
    66. {
    67. values: [31],
    68. backgroundColor: '#9FA8DA'
    69. },
    70. {
    71. values: [30],
    72. backgroundColor: '#C5CAE9'
    73. }
    74.  
    75. ]
    76. };
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: chartConfig,
    81. height: '100%',
    82. width: '100%'
    83. });
    84. </script>
    85. </body>
    86.  
    87. </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: 'pie',
    3. plot: {
    4. layout: 'auto',
    5. valueBox: {
    6. fontFamily: 'Georgia',
    7. fontSize: 14,
    8. fontWeight: 'normal',
    9. placement: 'out',
    10. }
    11. },
    12. series: [{
    13. values: [50],
    14. backgroundColor: '#3F51B5',
    15.  
    16. valueBox: {
    17. connector: {
    18. alpha: 1,
    19. lineColor: '#E91E63',
    20. lineStyle: 'dotted',
    21. lineWidth: 2
    22. }
    23. }
    24. },
    25. {
    26. values: [35],
    27. backgroundColor: '#5C6BC0'
    28. },
    29. {
    30. values: [34],
    31. backgroundColor: '#7986CB'
    32. },
    33. {
    34. values: [31],
    35. backgroundColor: '#9FA8DA'
    36. },
    37. {
    38. values: [30],
    39. backgroundColor: '#C5CAE9'
    40. }
    41.  
    42. ]
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: chartConfig,
    48. height: '100%',
    49. width: '100%'
    50. });