• 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. series: [{
    19. values: [
    20. [1, 22, 30],
    21. [1.5, 34, 7],
    22. [2, 55, 5],
    23. [2.5, 71, 18],
    24. [3, 42, 22],
    25. [3.5, 39, 8],
    26. [4, 50, 17],
    27. [4.5, 70, 27]
    28. ],
    29. marker: {
    30. backgroundColor: '#FFEB3B #FBC02D',
    31. type: 'star5',
    32. rules: [{
    33. rule: '%v < 50',
    34. backgroundColor: 'red'
    35. }]
    36. }
    37. },
    38. {
    39. values: [
    40. [5.5, 35, 10],
    41. [6, 42, 21],
    42. [6.5, 67, 33],
    43. [7, 89, 18],
    44. [7.5, 25, 9],
    45. [8, 34, 11],
    46. [8.5, 67, 20],
    47. [9, 85, 3]
    48. ],
    49. marker: {
    50. backgroundColor: '#7986CB #3F51B5',
    51. type: 'rpoly6',
    52. rules: [{
    53. rule: '%v > 50',
    54. backgroundColor: 'green'
    55. }]
    56. }
    57. }
    58. ]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: chartConfig,
    64. height: 400,
    65. width: '100%'
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. 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: '#FFEB3B #FBC02D',
    16. type: 'star5',
    17. rules: [{
    18. rule: '%v < 50',
    19. backgroundColor: 'red'
    20. }]
    21. }
    22. },
    23. {
    24. values: [
    25. [5.5, 35, 10],
    26. [6, 42, 21],
    27. [6.5, 67, 33],
    28. [7, 89, 18],
    29. [7.5, 25, 9],
    30. [8, 34, 11],
    31. [8.5, 67, 20],
    32. [9, 85, 3]
    33. ],
    34. marker: {
    35. backgroundColor: '#7986CB #3F51B5',
    36. type: 'rpoly6',
    37. rules: [{
    38. rule: '%v > 50',
    39. backgroundColor: 'green'
    40. }]
    41. }
    42. }
    43. ]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: chartConfig,
    49. height: 400,
    50. width: '100%'
    51. });