• 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": "circle",
    27. "background-color": "red",
    28. "size": 150,
    29. "x": 180,
    30. "y": 180,
    31. "alpha": "0.5",
    32. "label": {
    33. "text": "Red"
    34. }
    35. },
    36. {
    37. "type": "circle",
    38. "background-color": "yellow",
    39. "size": 150,
    40. "x": 380,
    41. "y": 180,
    42. "alpha": "0.5",
    43. "label": {
    44. "text": "yellow"
    45. }
    46. },
    47. {
    48. "type": "circle",
    49. "size": 50,
    50. "x": 280,
    51. "y": 180,
    52. "alpha": "0",
    53. "background-color": "white",
    54. "label": {
    55. "text": "orange"
    56. }
    57. }
    58. ]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: myConfig,
    64. height: "100%",
    65. width: "100%"
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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": "circle",
    5. "background-color": "red",
    6. "size": 150,
    7. "x": 180,
    8. "y": 180,
    9. "alpha": "0.5",
    10. "label": {
    11. "text": "Red"
    12. }
    13. },
    14. {
    15. "type": "circle",
    16. "background-color": "yellow",
    17. "size": 150,
    18. "x": 380,
    19. "y": 180,
    20. "alpha": "0.5",
    21. "label": {
    22. "text": "yellow"
    23. }
    24. },
    25. {
    26. "type": "circle",
    27. "size": 50,
    28. "x": 280,
    29. "y": 180,
    30. "alpha": "0",
    31. "background-color": "white",
    32. "label": {
    33. "text": "orange"
    34. }
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: "100%",
    43. width: "100%"
    44. });