You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.6 KiB

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