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