Javascript examples for highcharts:Line Chart
Add line chart circle around datalabel
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function () {// w ww.j a v a 2s . c om $('#container').highcharts({ chart: { }, title: { 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: 40, backgroundColor: 'rgba(252, 255, 197, 0.7)', borderWidth: 1, 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: 2, padding: 5, shadow: true, style: { fontWeight: 'bold' } } }, 194.1, 95.6, 54.4] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px"></div> </body> </html>