Javascript examples for highcharts:Chart Data
dataLabels shadows in line chart
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px"></div> <script type="text/javascript"> Highcharts.chart('container', { title: {// w w w .j a v a 2 s. c om text: 'Data labels box options' }, subtitle: { text: 'backgroundColor, borderColor, borderRadius, borderWidth, padding and shadow' }, xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, plotOptions: { series: { dataLabels: { enabled: true, borderRadius: 5, backgroundColor: 'rgba(252, 255, 197, 0.7)', borderWidth: 0, borderColor: '#AAA', y: -6 } } }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 178.0, 135.6, 148.5, { y: 216.4, dataLabels: { borderColor: 'red', borderWidth: 0, padding: 5, shadow: { color: 'red', offsetX: 0, offsetY: 0, width: 10 }, style: { fontWeight: 'bold' } } }, 194.1, 95.6, 54.4] }] }); </script> </body> </html>