• 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": "Peanut Butter & Jelly Sandwiches"
    38. },
    39. "subtitle": {
    40. "text": "Have two mandatory ingredients:"
    41. },
    42. "plot": {
    43. "value-box": {
    44. "text": "%t",
    45. "font-family": "Tahoma",
    46. "font-color": "#ffffe5",
    47. "font-size": 16,
    48. "font-weight": "normal",
    49. "font-style": "italic",
    50. "joined": {
    51. "text": "PB<br>&J",
    52. "font-weight": "bold",
    53. "font-style": "normal"
    54. }
    55. }
    56. },
    57. "series": [{
    58. "values": [100],
    59. "join": [15],
    60. "text": "Peanut Butter",
    61. "background-color": "#331a00",
    62. "alpha": 0.9,
    63. "border-color": "#663300",
    64. "border-width": 2
    65. },
    66. {
    67. "values": [100],
    68. "join": [15],
    69. "text": "Jelly",
    70. "background-color": "#330066",
    71. "alpha": 0.9,
    72. "border-color": "#663300",
    73. "border-width": 2
    74. }
    75. ]
    76. };
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: myConfig,
    81. height: "100%",
    82. width: "100%"
    83. });
    84. </script>
    85. </body>
    86.  
    87. </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": "Peanut Butter & Jelly Sandwiches"
    5. },
    6. "subtitle": {
    7. "text": "Have two mandatory ingredients:"
    8. },
    9. "plot": {
    10. "value-box": {
    11. "text": "%t",
    12. "font-family": "Tahoma",
    13. "font-color": "#ffffe5",
    14. "font-size": 16,
    15. "font-weight": "normal",
    16. "font-style": "italic",
    17. "joined": {
    18. "text": "PB<br>&J",
    19. "font-weight": "bold",
    20. "font-style": "normal"
    21. }
    22. }
    23. },
    24. "series": [{
    25. "values": [100],
    26. "join": [15],
    27. "text": "Peanut Butter",
    28. "background-color": "#331a00",
    29. "alpha": 0.9,
    30. "border-color": "#663300",
    31. "border-width": 2
    32. },
    33. {
    34. "values": [100],
    35. "join": [15],
    36. "text": "Jelly",
    37. "background-color": "#330066",
    38. "alpha": 0.9,
    39. "border-color": "#663300",
    40. "border-width": 2
    41. }
    42. ]
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: myConfig,
    48. height: "100%",
    49. width: "100%"
    50. });