• 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. var myConfig = {
    24. "type": "funnel",
    25. "scale-y": {
    26. "placement": "opposite",
    27. "labels": ["Site Visits", "Trial Downloads", "Quote Requests", "Sales", "Renewals"],
    28. "item": {
    29. "font-color": "#999999",
    30. "font-family": "Georgia"
    31. }
    32. },
    33. "plot": {
    34. "value-box": {
    35. "text": "%v",
    36. "placement": "left-out", //"auto"/"in", "top", "bottom", "left", "right", "left-out", or "right-out"
    37. "font-color": "gray",
    38. "font-family": "Georgia",
    39. "font-size": 12,
    40. "font-weight": "normal"
    41.  
    42. },
    43. "min-exit": "10%",
    44. "hover-state": {
    45. "background-color": "purple",
    46. "border-color": "gray",
    47. "border-width": 3,
    48. "line-style": "dashdot"
    49. }
    50. },
    51. "series": [{
    52. "values": [101],
    53. "text": "Site Visits",
    54. "background-color": "red"
    55. },
    56. {
    57. "values": [90],
    58. "text": "Trial Downloads",
    59. "background-color": "orange"
    60. },
    61. {
    62. "values": [60],
    63. "text": "Quote Requests",
    64. "background-color": "yellow"
    65. },
    66. {
    67. "values": [30],
    68. "text": "Sales",
    69. "background-color": "green"
    70. },
    71. {
    72. "values": [15],
    73. "text": "Renewals",
    74. "background-color": "blue"
    75. }
    76. ]
    77. };
    78.  
    79. zingchart.render({
    80. id: 'myChart',
    81. data: myConfig,
    82. height: "100%",
    83. width: "100%"
    84. });
    85. </script>
    86. </body>
    87.  
    88. </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. var myConfig = {
    2. "type": "funnel",
    3. "scale-y": {
    4. "placement": "opposite",
    5. "labels": ["Site Visits", "Trial Downloads", "Quote Requests", "Sales", "Renewals"],
    6. "item": {
    7. "font-color": "#999999",
    8. "font-family": "Georgia"
    9. }
    10. },
    11. "plot": {
    12. "value-box": {
    13. "text": "%v",
    14. "placement": "left-out", //"auto"/"in", "top", "bottom", "left", "right", "left-out", or "right-out"
    15. "font-color": "gray",
    16. "font-family": "Georgia",
    17. "font-size": 12,
    18. "font-weight": "normal"
    19.  
    20. },
    21. "min-exit": "10%",
    22. "hover-state": {
    23. "background-color": "purple",
    24. "border-color": "gray",
    25. "border-width": 3,
    26. "line-style": "dashdot"
    27. }
    28. },
    29. "series": [{
    30. "values": [101],
    31. "text": "Site Visits",
    32. "background-color": "red"
    33. },
    34. {
    35. "values": [90],
    36. "text": "Trial Downloads",
    37. "background-color": "orange"
    38. },
    39. {
    40. "values": [60],
    41. "text": "Quote Requests",
    42. "background-color": "yellow"
    43. },
    44. {
    45. "values": [30],
    46. "text": "Sales",
    47. "background-color": "green"
    48. },
    49. {
    50. "values": [15],
    51. "text": "Renewals",
    52. "background-color": "blue"
    53. }
    54. ]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: myConfig,
    60. height: "100%",
    61. width: "100%"
    62. });