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