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