• 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. "plot": {
    37. "tooltip": {
    38. "text": "%t holds a value of %v.<br><br>It is paired with %paired-plot-text, which also holds a value of %paired-node-value.<br>Their joined value is %joined-value.<br><br>And the shared value for this venn diagram is %shared-value."
    39. },
    40. "value-box": {
    41. "text": "%t",
    42. "joined": {
    43. "text": "Joined"
    44. },
    45. "shared": {
    46. "text": "Shared"
    47. }
    48. }
    49. },
    50. "series": [{
    51. "values": [100],
    52. "join": [15],
    53. "text": "Set One"
    54. },
    55. {
    56. "values": [100],
    57. "join": [15],
    58. "text": "Set Two"
    59. },
    60. {
    61. "values": [100],
    62. "join": [15],
    63. "text": "Set Three"
    64. }
    65. ]
    66. };
    67.  
    68.  
    69. zingchart.render({
    70. id: 'myChart',
    71. data: myConfig,
    72. height: "100%",
    73. width: "100%"
    74. });
    75. </script>
    76. </body>
    77.  
    78. </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. "plot": {
    4. "tooltip": {
    5. "text": "%t holds a value of %v.<br><br>It is paired with %paired-plot-text, which also holds a value of %paired-node-value.<br>Their joined value is %joined-value.<br><br>And the shared value for this venn diagram is %shared-value."
    6. },
    7. "value-box": {
    8. "text": "%t",
    9. "joined": {
    10. "text": "Joined"
    11. },
    12. "shared": {
    13. "text": "Shared"
    14. }
    15. }
    16. },
    17. "series": [{
    18. "values": [100],
    19. "join": [15],
    20. "text": "Set One"
    21. },
    22. {
    23. "values": [100],
    24. "join": [15],
    25. "text": "Set Two"
    26. },
    27. {
    28. "values": [100],
    29. "join": [15],
    30. "text": "Set Three"
    31. }
    32. ]
    33. };
    34.  
    35.  
    36. zingchart.render({
    37. id: 'myChart',
    38. data: myConfig,
    39. height: "100%",
    40. width: "100%"
    41. });