• 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": "square",
    27. "gradient-colors": "#59b #9b5 #59b",
    28. "gradient-stops": "0.1 0.5 0.9",
    29. "angle": 20,
    30. "size": 75,
    31. "x": 100,
    32. "y": 150,
    33. "alpha": 0.5
    34. },
    35. {
    36. "type": "triangle",
    37. "size": 75,
    38. "background-image": "http://www.zingchart.com/images/pattern_bling.gif",
    39. "background-repeat": "repeat",
    40. "x": 280,
    41. "y": 150,
    42. "shadow": true,
    43. "shadow-color": "#89ab57",
    44. "shadow-angle": 45,
    45. "shadow-distance": 20
    46. },
    47. {
    48. "type": "circle",
    49. "size": 75,
    50. "x": 500,
    51. "y": 150,
    52. "background-color": "#89ab57",
    53. "border-width": 20,
    54. "border-color": "#5297b6"
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: myConfig,
    62. height: "100%",
    63. width: "100%"
    64. });
    65. </script>
    66. </body>
    67.  
    68. </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": "square",
    5. "gradient-colors": "#59b #9b5 #59b",
    6. "gradient-stops": "0.1 0.5 0.9",
    7. "angle": 20,
    8. "size": 75,
    9. "x": 100,
    10. "y": 150,
    11. "alpha": 0.5
    12. },
    13. {
    14. "type": "triangle",
    15. "size": 75,
    16. "background-image": "http://www.zingchart.com/images/pattern_bling.gif",
    17. "background-repeat": "repeat",
    18. "x": 280,
    19. "y": 150,
    20. "shadow": true,
    21. "shadow-color": "#89ab57",
    22. "shadow-angle": 45,
    23. "shadow-distance": 20
    24. },
    25. {
    26. "type": "circle",
    27. "size": 75,
    28. "x": 500,
    29. "y": 150,
    30. "background-color": "#89ab57",
    31. "border-width": 20,
    32. "border-color": "#5297b6"
    33. }
    34. ]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: myConfig,
    40. height: "100%",
    41. width: "100%"
    42. });