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