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