• 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. #myChart {
    13. width: 100%;
    14. height: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "type": "pie",
    25. "legend": {
    26. "highlight-plot": true
    27. },
    28. "plot": {
    29. "highlight-state": {
    30. "background-color": "#ccccff #ccff33",
    31. "border-width": 5,
    32. "border-color": "#6666ff",
    33. "line-style": "dashdot"
    34. }
    35. },
    36. "series": [{
    37. "values": [30]
    38. },
    39. {
    40. "values": [34]
    41. },
    42. {
    43. "values": [15]
    44. },
    45. {
    46. "values": [14]
    47. },
    48. {
    49. "values": [5]
    50. }
    51. ]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: myConfig,
    57. height: "100%",
    58. width: "100%"
    59. });
    60. </script>
    61. </body>
    62.  
    63. </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. html,
    2. body,
    3. #myChart {
    4. width: 100%;
    5. height: 100%;
    6. }
    1. var myConfig = {
    2. "type": "pie",
    3. "legend": {
    4. "highlight-plot": true
    5. },
    6. "plot": {
    7. "highlight-state": {
    8. "background-color": "#ccccff #ccff33",
    9. "border-width": 5,
    10. "border-color": "#6666ff",
    11. "line-style": "dashdot"
    12. }
    13. },
    14. "series": [{
    15. "values": [30]
    16. },
    17. {
    18. "values": [34]
    19. },
    20. {
    21. "values": [15]
    22. },
    23. {
    24. "values": [14]
    25. },
    26. {
    27. "values": [5]
    28. }
    29. ]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: myConfig,
    35. height: "100%",
    36. width: "100%"
    37. });