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