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