• 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. "title": {
    19. "text": "'aperture' attribute"
    20. },
    21. "scale-r": {
    22. "aperture": 300
    23. },
    24. "plot": {
    25. "value-box": {
    26. "visible": false
    27. }
    28. },
    29. "series": [{
    30. "values": [59]
    31. },
    32. {
    33. "values": [55]
    34. },
    35. {
    36. "values": [30]
    37. },
    38. {
    39. "values": [28]
    40. },
    41. {
    42. "values": [15]
    43. }
    44. ]
    45. };
    46.  
    47. zingchart.render({
    48. id: 'myChart',
    49. data: myConfig,
    50. height: 400,
    51. width: "100%"
    52. });
    53. </script>
    54. </body>
    55.  
    56. </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. "title": {
    4. "text": "'aperture' attribute"
    5. },
    6. "scale-r": {
    7. "aperture": 300
    8. },
    9. "plot": {
    10. "value-box": {
    11. "visible": false
    12. }
    13. },
    14. "series": [{
    15. "values": [59]
    16. },
    17. {
    18. "values": [55]
    19. },
    20. {
    21. "values": [30]
    22. },
    23. {
    24. "values": [28]
    25. },
    26. {
    27. "values": [15]
    28. }
    29. ]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: myConfig,
    35. height: 400,
    36. width: "100%"
    37. });