• 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": "rectangle",
    27. "background-color": "#5297b6",
    28. "height": 300,
    29. "width": 150,
    30. "x": 10,
    31. "y": 40,
    32. "tooltip": {
    33. "text": "Research.",
    34. "background-color": "white"
    35. }
    36. },
    37. {
    38. "type": "rectangle",
    39. "background-color": "#89ab57",
    40. "height": 300,
    41. "width": 150,
    42. "x": 160,
    43. "y": 40,
    44. "tooltip": {
    45. "text": "Strategize.",
    46. "background-color": "white"
    47. }
    48. },
    49. {
    50. "type": "rectangle",
    51. "background-color": "#bbbbbb",
    52. "height": 300,
    53. "width": 150,
    54. "x": 310,
    55. "y": 40,
    56. "tooltip": {
    57. "text": "Execute.",
    58. "background-color": "white"
    59. }
    60. }
    61. ],
    62. "arrows": [{
    63. "from": {
    64. "x": "20%",
    65. "y": "20%"
    66. },
    67. "to": {
    68. "x": "32%",
    69. "y": "20%"
    70. },
    71. "background-color": "white",
    72. "z-index": 100,
    73. "size": 5
    74. },
    75. {
    76. "from": {
    77. "x": "45%",
    78. "y": "20%"
    79. },
    80. "to": {
    81. "x": "57%",
    82. "y": "20%"
    83. },
    84. "background-color": "white",
    85. "z-index": 100,
    86. "size": 5
    87. }
    88. ]
    89. };
    90.  
    91. zingchart.render({
    92. id: 'myChart',
    93. data: myConfig,
    94. height: "100%",
    95. width: "100%"
    96. });
    97. </script>
    98. </body>
    99.  
    100. </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": "rectangle",
    5. "background-color": "#5297b6",
    6. "height": 300,
    7. "width": 150,
    8. "x": 10,
    9. "y": 40,
    10. "tooltip": {
    11. "text": "Research.",
    12. "background-color": "white"
    13. }
    14. },
    15. {
    16. "type": "rectangle",
    17. "background-color": "#89ab57",
    18. "height": 300,
    19. "width": 150,
    20. "x": 160,
    21. "y": 40,
    22. "tooltip": {
    23. "text": "Strategize.",
    24. "background-color": "white"
    25. }
    26. },
    27. {
    28. "type": "rectangle",
    29. "background-color": "#bbbbbb",
    30. "height": 300,
    31. "width": 150,
    32. "x": 310,
    33. "y": 40,
    34. "tooltip": {
    35. "text": "Execute.",
    36. "background-color": "white"
    37. }
    38. }
    39. ],
    40. "arrows": [{
    41. "from": {
    42. "x": "20%",
    43. "y": "20%"
    44. },
    45. "to": {
    46. "x": "32%",
    47. "y": "20%"
    48. },
    49. "background-color": "white",
    50. "z-index": 100,
    51. "size": 5
    52. },
    53. {
    54. "from": {
    55. "x": "45%",
    56. "y": "20%"
    57. },
    58. "to": {
    59. "x": "57%",
    60. "y": "20%"
    61. },
    62. "background-color": "white",
    63. "z-index": 100,
    64. "size": 5
    65. }
    66. ]
    67. };
    68.  
    69. zingchart.render({
    70. id: 'myChart',
    71. data: myConfig,
    72. height: "100%",
    73. width: "100%"
    74. });