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