• 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": "rankflow",
    25. "plotarea": {
    26. "margin": 20
    27. },
    28. "scale-x": {
    29. "labels": ["ON-TIME", "BAGGAGE", "PASSENGERS"],
    30. "values": ["ON-TIME", "BAGGAGE", "PASSENGERS"]
    31. },
    32. "series": [{
    33. "text": "Air West",
    34. "ranks": [3, 4, 1],
    35. "rank": 3
    36. },
    37. {
    38. "text": "Braniff",
    39. "ranks": [1, 1, 5],
    40. "rank": 1
    41. },
    42. {
    43. "text": "Capital",
    44. "ranks": [5, 2, 4],
    45. "rank": 4
    46. },
    47. {
    48. "text": "Eastern",
    49. "ranks": [2, 3, 2],
    50. "rank": 2
    51. },
    52. {
    53. "text": "Galaxy",
    54. "ranks": [4, 5, 3],
    55. "rank": 5
    56. }
    57. ]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: myConfig,
    63. height: "100%",
    64. width: "100%"
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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": "rankflow",
    3. "plotarea": {
    4. "margin": 20
    5. },
    6. "scale-x": {
    7. "labels": ["ON-TIME", "BAGGAGE", "PASSENGERS"],
    8. "values": ["ON-TIME", "BAGGAGE", "PASSENGERS"]
    9. },
    10. "series": [{
    11. "text": "Air West",
    12. "ranks": [3, 4, 1],
    13. "rank": 3
    14. },
    15. {
    16. "text": "Braniff",
    17. "ranks": [1, 1, 5],
    18. "rank": 1
    19. },
    20. {
    21. "text": "Capital",
    22. "ranks": [5, 2, 4],
    23. "rank": 4
    24. },
    25. {
    26. "text": "Eastern",
    27. "ranks": [2, 3, 2],
    28. "rank": 2
    29. },
    30. {
    31. "text": "Galaxy",
    32. "ranks": [4, 5, 3],
    33. "rank": 5
    34. }
    35. ]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: myConfig,
    41. height: "100%",
    42. width: "100%"
    43. });