• 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": "poly",
    27. "label": {
    28. "text": "triangle, 3 points"
    29. },
    30. "background-color": "#5297b6",
    31. "points": [
    32. [170, 75],
    33. [25, 150],
    34. [300, 150]
    35. ]
    36. },
    37. {
    38. "type": "poly",
    39. "label": {
    40. "text": "hexagon, 6 points"
    41. },
    42. "background-color": "#89ab57",
    43. "points": [
    44. [420, 50],
    45. [325, 100],
    46. [325, 200],
    47. [420, 250],
    48. [515, 200],
    49. [515, 100]
    50. ]
    51. }
    52. ]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: myConfig,
    58. height: "100%",
    59. width: "100%"
    60. });
    61. </script>
    62. </body>
    63.  
    64. </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": "poly",
    5. "label": {
    6. "text": "triangle, 3 points"
    7. },
    8. "background-color": "#5297b6",
    9. "points": [
    10. [170, 75],
    11. [25, 150],
    12. [300, 150]
    13. ]
    14. },
    15. {
    16. "type": "poly",
    17. "label": {
    18. "text": "hexagon, 6 points"
    19. },
    20. "background-color": "#89ab57",
    21. "points": [
    22. [420, 50],
    23. [325, 100],
    24. [325, 200],
    25. [420, 250],
    26. [515, 200],
    27. [515, 100]
    28. ]
    29. }
    30. ]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: myConfig,
    36. height: "100%",
    37. width: "100%"
    38. });