• 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. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. var myConfig = {
    35. "type": "venn",
    36. "title": {
    37. "text": "S'mores"
    38. },
    39. "subtitle": {
    40. "text": "Consist of three different ingredients:"
    41. },
    42. "legend": {
    43. "align": "right", //"left", "center", or "right"
    44. "vertical-align": "top", //"top", "middle", "bottom"
    45. "marker": {
    46. "type": "circle",
    47. "border-color": "black"
    48. }
    49. },
    50. "plot": {
    51. "tooltip": {
    52. "text": "%t can be paired with %paired-plot-text.<br>But to make s'mores, it needs just one more ingredient..."
    53. },
    54. "value-box": {
    55. "text": "%t",
    56. "font-family": "Georgia",
    57. "shared": {
    58. "text": "S'mores!"
    59. }
    60. }
    61. },
    62. "series": [{
    63. "values": [100],
    64. "join": [30],
    65. "text": "Chocolate",
    66. "background-color": "#331a00",
    67. "border-color": "black",
    68. "border-width": 2
    69. },
    70. {
    71. "values": [100],
    72. "join": [30],
    73. "text": "Graham Crackers",
    74. "background-color": "#e69900",
    75. "border-color": "black",
    76. "border-width": 2
    77. },
    78. {
    79. "values": [100],
    80. "join": [30],
    81. "text": "Marshmallows",
    82. "background-color": "#ffffe5",
    83. "border-color": "#cccccc",
    84. "border-width": 2
    85. }
    86. ]
    87. };
    88.  
    89. zingchart.render({
    90. id: 'myChart',
    91. data: myConfig,
    92. height: "100%",
    93. width: "100%"
    94. });
    95. </script>
    96. </body>
    97.  
    98. </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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. var myConfig = {
    2. "type": "venn",
    3. "title": {
    4. "text": "S'mores"
    5. },
    6. "subtitle": {
    7. "text": "Consist of three different ingredients:"
    8. },
    9. "legend": {
    10. "align": "right", //"left", "center", or "right"
    11. "vertical-align": "top", //"top", "middle", "bottom"
    12. "marker": {
    13. "type": "circle",
    14. "border-color": "black"
    15. }
    16. },
    17. "plot": {
    18. "tooltip": {
    19. "text": "%t can be paired with %paired-plot-text.<br>But to make s'mores, it needs just one more ingredient..."
    20. },
    21. "value-box": {
    22. "text": "%t",
    23. "font-family": "Georgia",
    24. "shared": {
    25. "text": "S'mores!"
    26. }
    27. }
    28. },
    29. "series": [{
    30. "values": [100],
    31. "join": [30],
    32. "text": "Chocolate",
    33. "background-color": "#331a00",
    34. "border-color": "black",
    35. "border-width": 2
    36. },
    37. {
    38. "values": [100],
    39. "join": [30],
    40. "text": "Graham Crackers",
    41. "background-color": "#e69900",
    42. "border-color": "black",
    43. "border-width": 2
    44. },
    45. {
    46. "values": [100],
    47. "join": [30],
    48. "text": "Marshmallows",
    49. "background-color": "#ffffe5",
    50. "border-color": "#cccccc",
    51. "border-width": 2
    52. }
    53. ]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: myConfig,
    59. height: "100%",
    60. width: "100%"
    61. });