• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    8.  
    9. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. <style></style>
    11. </head>
    12.  
    13. <body>
    14. <div id='myChart'></div>
    15. <script>
    16. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    17. var myConfig = {
    18. type: 'bubble',
    19. series: [{
    20. values: [
    21. [1, 22, 30],
    22. [1.5, 34, 7],
    23. [2, 55, 5],
    24. [2.5, 71, 18],
    25. [3, 42, 22],
    26. [3.5, 39, 8],
    27. [4, 50, 17],
    28. [4.5, 70, 27]
    29. ],
    30. marker: {
    31. backgroundColor: '#E3F2FD #3F51B5'
    32. },
    33. tooltip: {
    34. alpha: 0.7,
    35. borderRadius: 5,
    36. borderWidth: 1,
    37. fontFamily: 'Roboto',
    38. fontSize: 12,
    39. fontWeight: 'bold',
    40. padding: '5 10',
    41. textAlpha: 1
    42. }
    43. },
    44. {
    45. values: [
    46. [5.5, 35, 10],
    47. [6, 42, 21],
    48. [6.5, 67, 33],
    49. [7, 89, 18],
    50. [7.5, 25, 9],
    51. [8, 34, 11],
    52. [8.5, 67, 20],
    53. [9, 85, 3]
    54. ],
    55. marker: {
    56. backgroundColor: '#E0F7FA #009688'
    57. },
    58. tooltip: {
    59. alpha: 0.7,
    60. borderRadius: 5,
    61. borderWidth: 1,
    62. fontFamily: 'Roboto',
    63. fontSize: 12,
    64. fontWeight: 'bold',
    65. padding: '5 10',
    66. textAlpha: 1
    67. }
    68. }
    69. ]
    70. };
    71.  
    72. zingchart.render({
    73. id: 'myChart',
    74. data: myConfig,
    75. height: 400,
    76. width: '100%'
    77. });
    78. </script>
    79. </body>
    80.  
    81. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    8.  
    9. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. </body>
    15.  
    16. </html>
    1.  
    1. var myConfig = {
    2. type: 'bubble',
    3. series: [{
    4. values: [
    5. [1, 22, 30],
    6. [1.5, 34, 7],
    7. [2, 55, 5],
    8. [2.5, 71, 18],
    9. [3, 42, 22],
    10. [3.5, 39, 8],
    11. [4, 50, 17],
    12. [4.5, 70, 27]
    13. ],
    14. marker: {
    15. backgroundColor: '#E3F2FD #3F51B5'
    16. },
    17. tooltip: {
    18. alpha: 0.7,
    19. borderRadius: 5,
    20. borderWidth: 1,
    21. fontFamily: 'Roboto',
    22. fontSize: 12,
    23. fontWeight: 'bold',
    24. padding: '5 10',
    25. textAlpha: 1
    26. }
    27. },
    28. {
    29. values: [
    30. [5.5, 35, 10],
    31. [6, 42, 21],
    32. [6.5, 67, 33],
    33. [7, 89, 18],
    34. [7.5, 25, 9],
    35. [8, 34, 11],
    36. [8.5, 67, 20],
    37. [9, 85, 3]
    38. ],
    39. marker: {
    40. backgroundColor: '#E0F7FA #009688'
    41. },
    42. tooltip: {
    43. alpha: 0.7,
    44. borderRadius: 5,
    45. borderWidth: 1,
    46. fontFamily: 'Roboto',
    47. fontSize: 12,
    48. fontWeight: 'bold',
    49. padding: '5 10',
    50. textAlpha: 1
    51. }
    52. }
    53. ]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: myConfig,
    59. height: 400,
    60. width: '100%'
    61. });