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