• 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 myConfig6 = {
    24. "type": "bubble",
    25. "tooltip": {
    26. "text": "%node-size-value bubble value,<br>with `min-size' and 'max-size' set to %t, respectively"
    27. },
    28. "series": [{
    29. "values": [
    30. [1, 9, 59],
    31. [3, 21, 30],
    32. [5, 40, 35],
    33. [7, 60, 25],
    34. [9, 81, 87]
    35. ],
    36. "min-size": 25, //Provide a pixel value. (Default is 15 pixels.)
    37. "max-size": 100, //Provide a pixel value.
    38. "text": "25 and 100"
    39. },
    40. {
    41. "values": [
    42. [1.5, 9, 59],
    43. [3.5, 21, 30],
    44. [5.5, 40, 35],
    45. [7.5, 60, 25],
    46. [9.5, 81, 87]
    47. ],
    48. "min-size": 3, //Provide a pixel value. (Default is 15 pixels.)
    49. "max-size": 10, //Provide a pixel value.
    50. "text": "3 and 10"
    51. }
    52. ]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: myConfig6,
    58. height: "100%",
    59. width: "100%"
    60. });
    61. </script>
    62. </body>
    63.  
    64. </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 myConfig6 = {
    2. "type": "bubble",
    3. "tooltip": {
    4. "text": "%node-size-value bubble value,<br>with `min-size' and 'max-size' set to %t, respectively"
    5. },
    6. "series": [{
    7. "values": [
    8. [1, 9, 59],
    9. [3, 21, 30],
    10. [5, 40, 35],
    11. [7, 60, 25],
    12. [9, 81, 87]
    13. ],
    14. "min-size": 25, //Provide a pixel value. (Default is 15 pixels.)
    15. "max-size": 100, //Provide a pixel value.
    16. "text": "25 and 100"
    17. },
    18. {
    19. "values": [
    20. [1.5, 9, 59],
    21. [3.5, 21, 30],
    22. [5.5, 40, 35],
    23. [7.5, 60, 25],
    24. [9.5, 81, 87]
    25. ],
    26. "min-size": 3, //Provide a pixel value. (Default is 15 pixels.)
    27. "max-size": 10, //Provide a pixel value.
    28. "text": "3 and 10"
    29. }
    30. ]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: myConfig6,
    36. height: "100%",
    37. width: "100%"
    38. });