• 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 myConfig8 = {
    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."],
    34. "marker": {
    35. "border-color": "gray",
    36. "border-width": 1,
    37. "line-style": "dotted"
    38. },
    39. "hover-marker": {
    40. "background-color": "blue",
    41. "border-color": "pink",
    42. "border-width": 2,
    43. "line-style": "dashed"
    44. }
    45. },
    46. "scale-x": {
    47. "values": "0:16:4"
    48. },
    49. "scale-y": {
    50. "values": "0:16:4"
    51. },
    52. "series": [{
    53. "data-v": [15, 37, 7, 3, 14],
    54. "data-pie": "Apple",
    55. "marker": {
    56. "background-color": "#FF7CC2"
    57. },
    58. "value-box": { //Place your value-box object in your first series object.
    59. "text": "%data-bubble<br>baked %node-size-value pies!",
    60. "placement": "top", //Value options are "over" (default), "top", "bottom", "left", and "right".
    61. "font-color": "black",
    62. "font-weight": "normal",
    63. "font-style": "italic"
    64. }
    65. },
    66. {
    67. "data-v": [13, 34, 21, 7, 8],
    68. "data-pie": "Pumpkin",
    69. "marker": {
    70. "background-color": "#FFE000"
    71. }
    72. },
    73. {
    74. "data-v": [6, 30, 31, 5, 8],
    75. "data-pie": "Cherry",
    76. "marker": {
    77. "background-color": "#FF0087"
    78. }
    79. },
    80. {
    81. "data-v": [5, 29, null, 3, 13],
    82. "data-pie": "Chocolate",
    83. "marker": {
    84. "background-color": "#14B8CC"
    85. }
    86. },
    87. {
    88. "data-v": [3, 25, 19, 3, null],
    89. "data-pie": "Pecan",
    90. "marker": {
    91. "background-color": "#09A0B2"
    92. }
    93. }
    94. ]
    95. };
    96.  
    97. zingchart.render({
    98. id: 'myChart',
    99. data: myConfig8,
    100. height: "100%",
    101. width: "100%"
    102. });
    103. </script>
    104. </body>
    105.  
    106. </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 myConfig8 = {
    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."],
    12. "marker": {
    13. "border-color": "gray",
    14. "border-width": 1,
    15. "line-style": "dotted"
    16. },
    17. "hover-marker": {
    18. "background-color": "blue",
    19. "border-color": "pink",
    20. "border-width": 2,
    21. "line-style": "dashed"
    22. }
    23. },
    24. "scale-x": {
    25. "values": "0:16:4"
    26. },
    27. "scale-y": {
    28. "values": "0:16:4"
    29. },
    30. "series": [{
    31. "data-v": [15, 37, 7, 3, 14],
    32. "data-pie": "Apple",
    33. "marker": {
    34. "background-color": "#FF7CC2"
    35. },
    36. "value-box": { //Place your value-box object in your first series object.
    37. "text": "%data-bubble<br>baked %node-size-value pies!",
    38. "placement": "top", //Value options are "over" (default), "top", "bottom", "left", and "right".
    39. "font-color": "black",
    40. "font-weight": "normal",
    41. "font-style": "italic"
    42. }
    43. },
    44. {
    45. "data-v": [13, 34, 21, 7, 8],
    46. "data-pie": "Pumpkin",
    47. "marker": {
    48. "background-color": "#FFE000"
    49. }
    50. },
    51. {
    52. "data-v": [6, 30, 31, 5, 8],
    53. "data-pie": "Cherry",
    54. "marker": {
    55. "background-color": "#FF0087"
    56. }
    57. },
    58. {
    59. "data-v": [5, 29, null, 3, 13],
    60. "data-pie": "Chocolate",
    61. "marker": {
    62. "background-color": "#14B8CC"
    63. }
    64. },
    65. {
    66. "data-v": [3, 25, 19, 3, null],
    67. "data-pie": "Pecan",
    68. "marker": {
    69. "background-color": "#09A0B2"
    70. }
    71. }
    72. ]
    73. };
    74.  
    75. zingchart.render({
    76. id: 'myChart',
    77. data: myConfig8,
    78. height: "100%",
    79. width: "100%"
    80. });