• 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. mediaRules: [{
    29. maxWidth: 400,
    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. text: 'Braniff',
    48. ranks: [1, 1, 5],
    49. rank: 1
    50. }, {
    51. text: 'Capital',
    52. ranks: [5, 2, 4],
    53. rank: 4
    54. }, {
    55. text: 'Eastern',
    56. ranks: [2, 3, 2],
    57. rank: 2
    58. }, {
    59. text: 'Galaxy',
    60. ranks: [4, 5, 3],
    61. rank: 5
    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. style: {
    5. itemFlow: {
    6. mediaRules: [{
    7. maxWidth: 400,
    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. text: 'Braniff',
    26. ranks: [1, 1, 5],
    27. rank: 1
    28. }, {
    29. text: 'Capital',
    30. ranks: [5, 2, 4],
    31. rank: 4
    32. }, {
    33. text: 'Eastern',
    34. ranks: [2, 3, 2],
    35. rank: 2
    36. }, {
    37. text: 'Galaxy',
    38. ranks: [4, 5, 3],
    39. rank: 5
    40. }]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: '100%',
    47. width: '100%'
    48. });