• 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: '%shared-value'
    38. },
    39. plot: {
    40. valueBox: {
    41. shared: {
    42. text: '%shared-value'
    43. },
    44. text: ''
    45. },
    46. tooltip: {
    47. text: 'The shared value is %shared-value.'
    48. }
    49. },
    50. series: [{
    51. values: [100],
    52. join: [15]
    53. },
    54. {
    55. values: [100],
    56. join: [15]
    57. },
    58. {
    59. values: [100],
    60. join: [15]
    61. }
    62. ]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    68. height: 300,
    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"><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: '%shared-value'
    5. },
    6. plot: {
    7. valueBox: {
    8. shared: {
    9. text: '%shared-value'
    10. },
    11. text: ''
    12. },
    13. tooltip: {
    14. text: 'The shared value is %shared-value.'
    15. }
    16. },
    17. series: [{
    18. values: [100],
    19. join: [15]
    20. },
    21. {
    22. values: [100],
    23. join: [15]
    24. },
    25. {
    26. values: [100],
    27. join: [15]
    28. }
    29. ]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: myConfig,
    35. height: 300,
    36. width: '100%'
    37. });