• 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. "min-exit": "10%",
    35. "hover-state": {
    36. "background-color": "purple",
    37. "border-color": "gray",
    38. "border-width": 3,
    39. "line-style": "dashdot"
    40. }
    41. },
    42. "series": [{
    43. "values": [101],
    44. "background-color": "red"
    45. },
    46. {
    47. "values": [90],
    48. "background-color": "orange"
    49. },
    50. {
    51. "values": [60],
    52. "background-color": "yellow"
    53. },
    54. {
    55. "values": [30],
    56. "background-color": "green"
    57. },
    58. {
    59. "values": [15],
    60. "background-color": "blue"
    61. }
    62. ]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    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. 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. "min-exit": "10%",
    13. "hover-state": {
    14. "background-color": "purple",
    15. "border-color": "gray",
    16. "border-width": 3,
    17. "line-style": "dashdot"
    18. }
    19. },
    20. "series": [{
    21. "values": [101],
    22. "background-color": "red"
    23. },
    24. {
    25. "values": [90],
    26. "background-color": "orange"
    27. },
    28. {
    29. "values": [60],
    30. "background-color": "yellow"
    31. },
    32. {
    33. "values": [30],
    34. "background-color": "green"
    35. },
    36. {
    37. "values": [15],
    38. "background-color": "blue"
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: "100%",
    47. width: "100%"
    48. });