• 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. height: 100%;
    14. width: 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": "null",
    25. "shapes": [{
    26. "type": "pie",
    27. "background-color": "#89ab57",
    28. "size": 100,
    29. "x": 120,
    30. "y": 150,
    31. "angle-start": 180,
    32. "angle-end": 90,
    33. "label": {
    34. "text": "Angle start is<br />greater than angle end"
    35. }
    36. },
    37. {
    38. "type": "pie",
    39. "background-color": "#5297b6",
    40. "size": 100,
    41. "x": 300,
    42. "y": 150,
    43. "angle-start": 90,
    44. "angle-end": 120,
    45. "label": {
    46. "text": "Angle start is<br />lesser than angle end"
    47. }
    48. },
    49. {
    50. "type": "pie",
    51. "background-color": "#89ab57,#5297b6",
    52. "size": 100,
    53. "x": 490,
    54. "y": 150,
    55. "angle-start": 90,
    56. "angle-end": 45,
    57. "slice": 55,
    58. "label": {
    59. "text": "Pie with slice<br />attribute"
    60. }
    61. }
    62. ]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    68. height: "100%",
    69. width: "100%"
    70. });
    71. </script>
    72. </body>
    73.  
    74. </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. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "type": "null",
    3. "shapes": [{
    4. "type": "pie",
    5. "background-color": "#89ab57",
    6. "size": 100,
    7. "x": 120,
    8. "y": 150,
    9. "angle-start": 180,
    10. "angle-end": 90,
    11. "label": {
    12. "text": "Angle start is<br />greater than angle end"
    13. }
    14. },
    15. {
    16. "type": "pie",
    17. "background-color": "#5297b6",
    18. "size": 100,
    19. "x": 300,
    20. "y": 150,
    21. "angle-start": 90,
    22. "angle-end": 120,
    23. "label": {
    24. "text": "Angle start is<br />lesser than angle end"
    25. }
    26. },
    27. {
    28. "type": "pie",
    29. "background-color": "#89ab57,#5297b6",
    30. "size": 100,
    31. "x": 490,
    32. "y": 150,
    33. "angle-start": 90,
    34. "angle-end": 45,
    35. "slice": 55,
    36. "label": {
    37. "text": "Pie with slice<br />attribute"
    38. }
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: "100%",
    47. width: "100%"
    48. });