Set gradient color for bubble chart
Description
The following code shows how to set gradient color for bubble chart.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!--from ww w. j a v a 2 s . co m-->
$('#container').highcharts({
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
series: [{
data: [
[91, 81, 43],
[98, 41, 89],
[51, 40, 43],
[-41, 22, 44],
[58, 24, 40],
[-78, 47, 34],
[55, -54, 43],
[18, 44, 70],
[42, -44, 48],
[31, 54, 49],
[31, -18, 97],
[49, 94, 43],
[94, 23, -23],
[44, 43, -42]
],
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)']
]
}
}
}]
});
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>