• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'bubble',
    18. plot: {
    19. highlight: true
    20. },
    21. legend: {},
    22. series: [{
    23. values: [
    24. [1, 22, 30],
    25. [1.5, 34, 7],
    26. [2, 55, 5],
    27. [2.5, 71, 18],
    28. [3, 42, 22],
    29. [3.5, 39, 8],
    30. [4, 50, 17],
    31. [4.5, 70, 27]
    32. ],
    33. marker: {
    34. backgroundColor: '#43A047 #66BB6A'
    35. },
    36. highlightMarker: {
    37. backgroundColor: '#FDD835 #FFEE58',
    38. topState: {
    39. backgroundColor: 'red',
    40. offsetX: 20,
    41. offsetY: 20,
    42. }
    43. }
    44. },
    45. {
    46. values: [
    47. [5.5, 35, 10],
    48. [6, 42, 21],
    49. [6.5, 67, 33],
    50. [7, 89, 18],
    51. [7.5, 25, 9],
    52. [8, 34, 11],
    53. [8.5, 67, 20],
    54. [9, 85, 3]
    55. ],
    56. marker: {
    57. backgroundColor: '#039BE5 #29B6F6'
    58. },
    59. highlightMarker: {
    60. backgroundColor: '#FB8C00 #FFA726',
    61. topState: {
    62. backgroundColor: 'green',
    63. offsetX: 20,
    64. offsetY: 20,
    65. }
    66. }
    67. }
    68. ]
    69. };
    70.  
    71. zingchart.render({
    72. id: 'myChart',
    73. data: chartConfig,
    74. height: 400,
    75. width: '100%'
    76. });
    77. </script>
    78. </body>
    79.  
    80. </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.  
    1. let chartConfig = {
    2. type: 'bubble',
    3. plot: {
    4. highlight: true
    5. },
    6. legend: {},
    7. series: [{
    8. values: [
    9. [1, 22, 30],
    10. [1.5, 34, 7],
    11. [2, 55, 5],
    12. [2.5, 71, 18],
    13. [3, 42, 22],
    14. [3.5, 39, 8],
    15. [4, 50, 17],
    16. [4.5, 70, 27]
    17. ],
    18. marker: {
    19. backgroundColor: '#43A047 #66BB6A'
    20. },
    21. highlightMarker: {
    22. backgroundColor: '#FDD835 #FFEE58',
    23. topState: {
    24. backgroundColor: 'red',
    25. offsetX: 20,
    26. offsetY: 20,
    27. }
    28. }
    29. },
    30. {
    31. values: [
    32. [5.5, 35, 10],
    33. [6, 42, 21],
    34. [6.5, 67, 33],
    35. [7, 89, 18],
    36. [7.5, 25, 9],
    37. [8, 34, 11],
    38. [8.5, 67, 20],
    39. [9, 85, 3]
    40. ],
    41. marker: {
    42. backgroundColor: '#039BE5 #29B6F6'
    43. },
    44. highlightMarker: {
    45. backgroundColor: '#FB8C00 #FFA726',
    46. topState: {
    47. backgroundColor: 'green',
    48. offsetX: 20,
    49. offsetY: 20,
    50. }
    51. }
    52. }
    53. ]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: chartConfig,
    59. height: 400,
    60. width: '100%'
    61. });