• Edit
  • Download
    1. <!doctype html>
    2. <html class="zc-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <style>
    9. .zc-body {
    10. background: #fff;
    11. }
    12.  
    13. .chart--container {
    14. height: 100%;
    15. width: 100%;
    16. min-height: 900px;
    17. }
    18.  
    19. .zc-ref {
    20. display: none;
    21. }
    22. </style>
    23. </head>
    24.  
    25. <body class="zc-body">
    26. <div id="myChart" class="chart--container">
    27. <a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
    28. </div>
    29. <script>
    30. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    31. let chartData = [{
    32. id: 'collegeboard',
    33. name: 'COLLEGE BOARD',
    34. parent: '',
    35. cls: 'bdegblue'
    36. },
    37.  
    38. {
    39. id: 'fkn1',
    40. fake: true,
    41. name: '1',
    42. parent: 'collegeboard',
    43. sibling: 'president'
    44. },
    45. {
    46. id: 'president',
    47. name: 'President',
    48. parent: 'collegeboard',
    49. cls: 'byellow'
    50. },
    51. {
    52. id: 'execasspres',
    53. name: 'Executive Assistant to<br>the President',
    54. parent: 'collegeboard',
    55. sibling: 'president',
    56. cls: 'bwhite'
    57. },
    58.  
    59. {
    60. id: 'execvicepres',
    61. name: 'Executive Vice<br>President/<br>Administrative<br>Services',
    62. parent: 'president',
    63. cls: 'bred'
    64. },
    65. {
    66. id: 'chinof',
    67. name: 'Chief Information Officer',
    68. parent: 'execvicepres',
    69. cls: 'bgreen'
    70. },
    71. {
    72. id: 'assvicepres',
    73. name: 'Associate Vice President',
    74. parent: 'execvicepres',
    75. cls: 'bgreen'
    76. },
    77.  
    78. {
    79. id: 'fkn2',
    80. fake: true,
    81. name: '2',
    82. parent: 'president'
    83. },
    84. {
    85. id: 'fkn3',
    86. fake: true,
    87. name: '3',
    88. parent: 'fkn2'
    89. },
    90.  
    91. {
    92. id: 'prmdir',
    93. name: 'Public Relations & Marketing<br>Senior Director',
    94. parent: 'fkn3',
    95. cls: 'bblue'
    96. },
    97. {
    98. id: 'prc',
    99. name: 'Public Relations<br>Coordinator',
    100. parent: 'prmdir',
    101. cls: 'bwhite'
    102. },
    103. {
    104. id: 'sw',
    105. name: 'Switchboard',
    106. parent: 'prmdir',
    107. reference: 'prc',
    108. cls: 'bwhite'
    109. },
    110. {
    111. id: 'ps',
    112. name: 'Publications Specialist',
    113. parent: 'prmdir',
    114. reference: 'prc',
    115. cls: 'bwhite'
    116. },
    117. {
    118. id: 'gd',
    119. name: 'Graphic Designer',
    120. parent: 'prmdir',
    121. reference: 'prc',
    122. cls: 'bwhite'
    123. },
    124. {
    125. id: 'ms',
    126. name: 'Marketing Specialist',
    127. parent: 'prmdir',
    128. reference: 'prc',
    129. cls: 'bwhite'
    130. },
    131. {
    132. id: 'wcm',
    133. name: 'Web Content Manager',
    134. parent: 'prmdir',
    135. reference: 'prc',
    136. cls: 'bwhite'
    137. },
    138.  
    139. {
    140. id: 'fed',
    141. name: 'Foundation<br>Executive Director',
    142. parent: 'fkn3',
    143. cls: 'bblue'
    144. },
    145. {
    146. id: 'safed',
    147. name: 'Senior Accountant',
    148. parent: 'fed',
    149. cls: 'bwhite'
    150. },
    151. {
    152. id: 'dps',
    153. name: 'Development Program<br>Specialist',
    154. parent: 'fed',
    155. reference: 'safed',
    156. cls: 'bwhite'
    157. },
    158.  
    159. {
    160. id: 'sdirsp',
    161. name: 'Senior Director<br>Institutional Research and<br>Strategic Planning',
    162. parent: 'fkn3',
    163. cls: 'bblue'
    164. },
    165. {
    166. id: 'sra',
    167. name: 'Senior Research Analyst',
    168. parent: 'sdirsp',
    169. cls: 'bwhite'
    170. },
    171. {
    172. id: 'rs',
    173. name: 'Research Specialist',
    174. parent: 'sdirsp',
    175. reference: 'sra',
    176. cls: 'bwhite'
    177. },
    178.  
    179. {
    180. id: 'vicepresle',
    181. name: 'Vice President<br>for Learning',
    182. parent: 'president',
    183. cls: 'bred'
    184. },
    185. {
    186. id: 'assvicepresl',
    187. name: 'Associate Vice President',
    188. parent: 'vicepresle',
    189. cls: 'bgreen'
    190. },
    191.  
    192. {
    193. id: 'vicepresstu',
    194. name: 'Vice President for<br>Student Services',
    195. parent: 'president',
    196. cls: 'bred'
    197. }
    198. ];
    199.  
    200. let chartConfig = {
    201. type: 'tree',
    202. options: {
    203. aspect: 'tree-down',
    204. orgChart: true,
    205. packingFactor: 10,
    206. link: {
    207. lineColor: '#000',
    208. lineWidth: '2px',
    209. },
    210. 'link[parent-prmdir]': {
    211. aspect: 'side-before'
    212. },
    213. 'link[parent-fed]': {
    214. aspect: 'side-before'
    215. },
    216. 'link[parent-sdirsp]': {
    217. aspect: 'side-before'
    218. },
    219. node: {
    220. borderColor: '#000',
    221. borderWidth: '2px',
    222. fillAngle: 0,
    223. gradientStops: '0.01 0.5 0.55 0.99',
    224. shadow: true,
    225. shadowColor: '#ccc',
    226. shadowDistance: '4px',
    227. hoverState: {
    228. visible: false
    229. },
    230. label: {
    231. color: '#000',
    232. fontSize: '10px'
    233. }
    234. },
    235. 'node[cls-byellow]': {
    236. gradientColors: '#FDDA58 #FBF4BD #FBF4BD #FDDA58',
    237. label: {
    238. fontSize: '15px',
    239. fontWeight: 'bold'
    240. },
    241. width: '200px',
    242. height: '60px'
    243. },
    244. 'node[cls-bred]': {
    245. gradientColors: '#A15A58 #D6B2B2 #D6B2B2 #A15A58',
    246. width: '120px',
    247. height: '70px'
    248. },
    249. 'node[cls-bdegblue]': {
    250. gradientColors: '#51B7CD #C0E0EB #C0E0EB #51B7CD',
    251. label: {
    252. fontSize: '15px',
    253. fontWeight: 'bold'
    254. },
    255. width: '300px',
    256. height: '70px'
    257. },
    258. 'node[cls-bblue]': {
    259. backgroundColor: '#B7DDE8',
    260. width: '180px',
    261. height: '65px'
    262. },
    263. 'node[cls-bgreen]': {
    264. backgroundColor: '#C3D79A',
    265. width: '130px',
    266. height: '50px',
    267. },
    268. 'node[cls-bwhite]': {
    269. backgroundColor: '#fff',
    270. offsetX: '30px',
    271. width: '140px',
    272. height: '50px'
    273. }
    274. },
    275. plotarea: {
    276. margin: '20px'
    277. },
    278. series: chartData
    279. };
    280.  
    281. zingchart.render({
    282. id: 'myChart',
    283. width: '100%',
    284. height: '100%',
    285. data: chartConfig
    286. });
    287. </script>
    288. </body>
    289.  
    290. </html>
    1. <!doctype html>
    2. <html class="zc-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. </head>
    9.  
    10. <body class="zc-body">
    11. <div id="myChart" class="chart--container">
    12. <a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
    13. </div>
    14. </body>
    15.  
    16. </html>
    1. .zc-body {
    2. background: #fff;
    3. }
    4.  
    5. .chart--container {
    6. height: 100%;
    7. width: 100%;
    8. min-height: 900px;
    9. }
    10.  
    11. .zc-ref {
    12. display: none;
    13. }
    1. let chartData = [{
    2. id: 'collegeboard',
    3. name: 'COLLEGE BOARD',
    4. parent: '',
    5. cls: 'bdegblue'
    6. },
    7.  
    8. {
    9. id: 'fkn1',
    10. fake: true,
    11. name: '1',
    12. parent: 'collegeboard',
    13. sibling: 'president'
    14. },
    15. {
    16. id: 'president',
    17. name: 'President',
    18. parent: 'collegeboard',
    19. cls: 'byellow'
    20. },
    21. {
    22. id: 'execasspres',
    23. name: 'Executive Assistant to<br>the President',
    24. parent: 'collegeboard',
    25. sibling: 'president',
    26. cls: 'bwhite'
    27. },
    28.  
    29. {
    30. id: 'execvicepres',
    31. name: 'Executive Vice<br>President/<br>Administrative<br>Services',
    32. parent: 'president',
    33. cls: 'bred'
    34. },
    35. {
    36. id: 'chinof',
    37. name: 'Chief Information Officer',
    38. parent: 'execvicepres',
    39. cls: 'bgreen'
    40. },
    41. {
    42. id: 'assvicepres',
    43. name: 'Associate Vice President',
    44. parent: 'execvicepres',
    45. cls: 'bgreen'
    46. },
    47.  
    48. {
    49. id: 'fkn2',
    50. fake: true,
    51. name: '2',
    52. parent: 'president'
    53. },
    54. {
    55. id: 'fkn3',
    56. fake: true,
    57. name: '3',
    58. parent: 'fkn2'
    59. },
    60.  
    61. {
    62. id: 'prmdir',
    63. name: 'Public Relations & Marketing<br>Senior Director',
    64. parent: 'fkn3',
    65. cls: 'bblue'
    66. },
    67. {
    68. id: 'prc',
    69. name: 'Public Relations<br>Coordinator',
    70. parent: 'prmdir',
    71. cls: 'bwhite'
    72. },
    73. {
    74. id: 'sw',
    75. name: 'Switchboard',
    76. parent: 'prmdir',
    77. reference: 'prc',
    78. cls: 'bwhite'
    79. },
    80. {
    81. id: 'ps',
    82. name: 'Publications Specialist',
    83. parent: 'prmdir',
    84. reference: 'prc',
    85. cls: 'bwhite'
    86. },
    87. {
    88. id: 'gd',
    89. name: 'Graphic Designer',
    90. parent: 'prmdir',
    91. reference: 'prc',
    92. cls: 'bwhite'
    93. },
    94. {
    95. id: 'ms',
    96. name: 'Marketing Specialist',
    97. parent: 'prmdir',
    98. reference: 'prc',
    99. cls: 'bwhite'
    100. },
    101. {
    102. id: 'wcm',
    103. name: 'Web Content Manager',
    104. parent: 'prmdir',
    105. reference: 'prc',
    106. cls: 'bwhite'
    107. },
    108.  
    109. {
    110. id: 'fed',
    111. name: 'Foundation<br>Executive Director',
    112. parent: 'fkn3',
    113. cls: 'bblue'
    114. },
    115. {
    116. id: 'safed',
    117. name: 'Senior Accountant',
    118. parent: 'fed',
    119. cls: 'bwhite'
    120. },
    121. {
    122. id: 'dps',
    123. name: 'Development Program<br>Specialist',
    124. parent: 'fed',
    125. reference: 'safed',
    126. cls: 'bwhite'
    127. },
    128.  
    129. {
    130. id: 'sdirsp',
    131. name: 'Senior Director<br>Institutional Research and<br>Strategic Planning',
    132. parent: 'fkn3',
    133. cls: 'bblue'
    134. },
    135. {
    136. id: 'sra',
    137. name: 'Senior Research Analyst',
    138. parent: 'sdirsp',
    139. cls: 'bwhite'
    140. },
    141. {
    142. id: 'rs',
    143. name: 'Research Specialist',
    144. parent: 'sdirsp',
    145. reference: 'sra',
    146. cls: 'bwhite'
    147. },
    148.  
    149. {
    150. id: 'vicepresle',
    151. name: 'Vice President<br>for Learning',
    152. parent: 'president',
    153. cls: 'bred'
    154. },
    155. {
    156. id: 'assvicepresl',
    157. name: 'Associate Vice President',
    158. parent: 'vicepresle',
    159. cls: 'bgreen'
    160. },
    161.  
    162. {
    163. id: 'vicepresstu',
    164. name: 'Vice President for<br>Student Services',
    165. parent: 'president',
    166. cls: 'bred'
    167. }
    168. ];
    169.  
    170. let chartConfig = {
    171. type: 'tree',
    172. options: {
    173. aspect: 'tree-down',
    174. orgChart: true,
    175. packingFactor: 10,
    176. link: {
    177. lineColor: '#000',
    178. lineWidth: '2px',
    179. },
    180. 'link[parent-prmdir]': {
    181. aspect: 'side-before'
    182. },
    183. 'link[parent-fed]': {
    184. aspect: 'side-before'
    185. },
    186. 'link[parent-sdirsp]': {
    187. aspect: 'side-before'
    188. },
    189. node: {
    190. borderColor: '#000',
    191. borderWidth: '2px',
    192. fillAngle: 0,
    193. gradientStops: '0.01 0.5 0.55 0.99',
    194. shadow: true,
    195. shadowColor: '#ccc',
    196. shadowDistance: '4px',
    197. hoverState: {
    198. visible: false
    199. },
    200. label: {
    201. color: '#000',
    202. fontSize: '10px'
    203. }
    204. },
    205. 'node[cls-byellow]': {
    206. gradientColors: '#FDDA58 #FBF4BD #FBF4BD #FDDA58',
    207. label: {
    208. fontSize: '15px',
    209. fontWeight: 'bold'
    210. },
    211. width: '200px',
    212. height: '60px'
    213. },
    214. 'node[cls-bred]': {
    215. gradientColors: '#A15A58 #D6B2B2 #D6B2B2 #A15A58',
    216. width: '120px',
    217. height: '70px'
    218. },
    219. 'node[cls-bdegblue]': {
    220. gradientColors: '#51B7CD #C0E0EB #C0E0EB #51B7CD',
    221. label: {
    222. fontSize: '15px',
    223. fontWeight: 'bold'
    224. },
    225. width: '300px',
    226. height: '70px'
    227. },
    228. 'node[cls-bblue]': {
    229. backgroundColor: '#B7DDE8',
    230. width: '180px',
    231. height: '65px'
    232. },
    233. 'node[cls-bgreen]': {
    234. backgroundColor: '#C3D79A',
    235. width: '130px',
    236. height: '50px',
    237. },
    238. 'node[cls-bwhite]': {
    239. backgroundColor: '#fff',
    240. offsetX: '30px',
    241. width: '140px',
    242. height: '50px'
    243. }
    244. },
    245. plotarea: {
    246. margin: '20px'
    247. },
    248. series: chartData
    249. };
    250.  
    251. zingchart.render({
    252. id: 'myChart',
    253. width: '100%',
    254. height: '100%',
    255. data: chartConfig
    256. });