• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'venn',
    18. series: [{
    19. values: [100],
    20. join: [15],
    21. valueBox: {
    22. joined: {
    23. text: 'Joined:<br>%joined-value',
    24.  
    25. alpha: 1,
    26. backgroundColor: '#ffe6e6',
    27. borderColor: 'red',
    28. borderRadius: '3px',
    29. borderWidth: 1,
    30. fontColor: 'red',
    31. fontFamily: 'Courier',
    32. fontSize: 12,
    33. padding: '5px'
    34. }
    35. }
    36. },
    37. {
    38. values: [100],
    39. join: [15]
    40. },
    41. {
    42. values: [100],
    43. join: [15]
    44. }
    45. ]
    46. };
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: chartConfig,
    51. height: 400,
    52. width: '100%'
    53. });
    54. </script>
    55. </body>
    56.  
    57. </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.  
    1. let chartConfig = {
    2. type: 'venn',
    3. series: [{
    4. values: [100],
    5. join: [15],
    6. valueBox: {
    7. joined: {
    8. text: 'Joined:<br>%joined-value',
    9.  
    10. alpha: 1,
    11. backgroundColor: '#ffe6e6',
    12. borderColor: 'red',
    13. borderRadius: '3px',
    14. borderWidth: 1,
    15. fontColor: 'red',
    16. fontFamily: 'Courier',
    17. fontSize: 12,
    18. padding: '5px'
    19. }
    20. }
    21. },
    22. {
    23. values: [100],
    24. join: [15]
    25. },
    26. {
    27. values: [100],
    28. join: [15]
    29. }
    30. ]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: chartConfig,
    36. height: 400,
    37. width: '100%'
    38. });