• 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. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig2 = {
    24. "type": "bubble-pie",
    25. "plot": {
    26. "values": [
    27. [3, 3, 34],
    28. [5, 12, 101],
    29. [9, 7, 59],
    30. [11, 5, 15],
    31. [14, 14, 30]
    32. ],
    33. "data-bubble": ["Sam D.", "Oscar C.", "Lisa A.", "Selma J.", "Sumati F."], //Bubble Text.
    34. "tooltip": {
    35. "text": "Pie Text:<br>%data-pie"
    36. }
    37. },
    38. "series": [{
    39. "data-v": [15, 37, 7, 3, 14],
    40. "data-pie": "Apple", //Text for Pie Slice 1.
    41. "value-box": {
    42. "text": "Bubble Text:<br>%data-bubble",
    43. "placement": "top"
    44. }
    45. },
    46. {
    47. "data-v": [13, 34, 21, 7, 8],
    48. "data-pie": "Pumpkin"
    49. },
    50. {
    51. "data-v": [6, 30, 31, 5, 8],
    52. "data-pie": "Cherry"
    53. },
    54. {
    55. "data-v": [5, 29, null, 3, 13],
    56. "data-pie": "Chocolate"
    57. },
    58. {
    59. "data-v": [3, 25, 19, 3, null],
    60. "data-pie": "Pecan"
    61. }
    62. ]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig2,
    68. height: "100%",
    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'></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig2 = {
    2. "type": "bubble-pie",
    3. "plot": {
    4. "values": [
    5. [3, 3, 34],
    6. [5, 12, 101],
    7. [9, 7, 59],
    8. [11, 5, 15],
    9. [14, 14, 30]
    10. ],
    11. "data-bubble": ["Sam D.", "Oscar C.", "Lisa A.", "Selma J.", "Sumati F."], //Bubble Text.
    12. "tooltip": {
    13. "text": "Pie Text:<br>%data-pie"
    14. }
    15. },
    16. "series": [{
    17. "data-v": [15, 37, 7, 3, 14],
    18. "data-pie": "Apple", //Text for Pie Slice 1.
    19. "value-box": {
    20. "text": "Bubble Text:<br>%data-bubble",
    21. "placement": "top"
    22. }
    23. },
    24. {
    25. "data-v": [13, 34, 21, 7, 8],
    26. "data-pie": "Pumpkin"
    27. },
    28. {
    29. "data-v": [6, 30, 31, 5, 8],
    30. "data-pie": "Cherry"
    31. },
    32. {
    33. "data-v": [5, 29, null, 3, 13],
    34. "data-pie": "Chocolate"
    35. },
    36. {
    37. "data-v": [3, 25, 19, 3, null],
    38. "data-pie": "Pecan"
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig2,
    46. height: "100%",
    47. width: "100%"
    48. });