index.htm 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Highcharts Example</title>
  7. <style type="text/css">
  8. </style>
  9. </head>
  10. <body>
  11. <script src="../../code/highcharts.js"></script>
  12. <script src="../../code/highcharts-more.js"></script>
  13. <div id="container" style="min-width: 310px; max-width: 600px; height: 400px; margin: 0 auto;"></div>
  14. <script type="text/javascript">
  15. Highcharts.chart('container', {
  16. chart: {
  17. type: 'bubble',
  18. plotBorderWidth: 1,
  19. zoomType: 'xy'
  20. },
  21. title: {
  22. text: 'Highcharts bubbles with radial gradient fill'
  23. },
  24. xAxis: {
  25. gridLineWidth: 1
  26. },
  27. yAxis: {
  28. startOnTick: false,
  29. endOnTick: false
  30. },
  31. series: [{
  32. data: [
  33. [9, 81, 63],
  34. [98, 5, 89],
  35. [51, 50, 73],
  36. [41, 22, 14],
  37. [58, 24, 20],
  38. [78, 37, 34],
  39. [55, 56, 53],
  40. [18, 45, 70],
  41. [42, 44, 28],
  42. [3, 52, 59],
  43. [31, 18, 97],
  44. [79, 91, 63],
  45. [93, 23, 23],
  46. [44, 83, 22]
  47. ],
  48. marker: {
  49. fillColor: {
  50. radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
  51. stops: [
  52. [0, 'rgba(255,255,255,0.5)'],
  53. [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]
  54. ]
  55. }
  56. }
  57. }, {
  58. data: [
  59. [42, 38, 20],
  60. [6, 18, 1],
  61. [1, 93, 55],
  62. [57, 2, 90],
  63. [80, 76, 22],
  64. [11, 74, 96],
  65. [88, 56, 10],
  66. [30, 47, 49],
  67. [57, 62, 98],
  68. [4, 16, 16],
  69. [46, 10, 11],
  70. [22, 87, 89],
  71. [57, 91, 82],
  72. [45, 15, 98]
  73. ],
  74. marker: {
  75. fillColor: {
  76. radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
  77. stops: [
  78. [0, 'rgba(255,255,255,0.5)'],
  79. [1, Highcharts.Color(Highcharts.getOptions().colors[1]).setOpacity(0.5).get('rgba')]
  80. ]
  81. }
  82. }
  83. }]
  84. });
  85. </script>
  86. </body>
  87. </html>