• 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: 'funnel',
    25. scaleX: {
    26. visible: true,
    27. labels: ['Q1', 'Q2', 'Q3', 'Q4'],
    28. placement: 'opposite',
    29. offsetStart: 50
    30. },
    31. plot: {
    32. minExit: '15%'
    33. },
    34. series: [{
    35. values: [101],
    36. entry: {
    37. values: [1],
    38. labels: ['Start'],
    39. padding: 4
    40. }
    41. },
    42. {
    43. values: [90, 99],
    44. exit: {
    45. values: [1],
    46. labels: ['Next']
    47. }
    48. },
    49. {
    50. values: [60, 77, 59],
    51. entry: {
    52. values: [null, 1],
    53. labels: [null, 'Surplus']
    54. }
    55. },
    56. {
    57. values: [30, 55, 34, 30],
    58. entry: [{
    59. values: [null, null, 1],
    60. labels: [null, null, 'Carryover']
    61. },
    62. {
    63. values: [null, null, 1],
    64. labels: [null, null, 'New']
    65. }
    66. ],
    67. exit: {
    68. values: [null, null, 1],
    69. labels: [null, null, 'Remaining']
    70. }
    71. },
    72. {
    73. values: [15, 33, 29, 11],
    74.  
    75. exit: {
    76. values: [null, null, null, 1],
    77. labels: [null, null, null, 'End']
    78. }
    79. }
    80. ]
    81. };
    82.  
    83. zingchart.render({
    84. id: 'myChart',
    85. data: chartConfig,
    86. height: '100%',
    87. width: '100%'
    88. });
    89. </script>
    90. </body>
    91.  
    92. </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: 'funnel',
    3. scaleX: {
    4. visible: true,
    5. labels: ['Q1', 'Q2', 'Q3', 'Q4'],
    6. placement: 'opposite',
    7. offsetStart: 50
    8. },
    9. plot: {
    10. minExit: '15%'
    11. },
    12. series: [{
    13. values: [101],
    14. entry: {
    15. values: [1],
    16. labels: ['Start'],
    17. padding: 4
    18. }
    19. },
    20. {
    21. values: [90, 99],
    22. exit: {
    23. values: [1],
    24. labels: ['Next']
    25. }
    26. },
    27. {
    28. values: [60, 77, 59],
    29. entry: {
    30. values: [null, 1],
    31. labels: [null, 'Surplus']
    32. }
    33. },
    34. {
    35. values: [30, 55, 34, 30],
    36. entry: [{
    37. values: [null, null, 1],
    38. labels: [null, null, 'Carryover']
    39. },
    40. {
    41. values: [null, null, 1],
    42. labels: [null, null, 'New']
    43. }
    44. ],
    45. exit: {
    46. values: [null, null, 1],
    47. labels: [null, null, 'Remaining']
    48. }
    49. },
    50. {
    51. values: [15, 33, 29, 11],
    52.  
    53. exit: {
    54. values: [null, null, null, 1],
    55. labels: [null, null, null, 'End']
    56. }
    57. }
    58. ]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: chartConfig,
    64. height: '100%',
    65. width: '100%'
    66. });