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