Mark one data label
Description
The following code shows how to mark one data label.
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 () {<!-- ww w . ja v a 2 s . c o m-->
$('#container').highcharts({
plotOptions: {
series: {
dataLabels: {
enabled: true,
borderRadius: 5,
y: -6
}
}
},
series: [{
data: [20, 200, 100, 0.1, 150, 50, {
y: 216.4,
dataLabels: {
borderColor: 'red',
borderWidth: 2,
padding: 5,
shadow: true,
style: {
fontWeight: 'bold'
}
}
}, 200, 95, 50]
}]
});
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>