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