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