Javascript examples for highcharts:Line Chart
Use custom icon on line chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () {/*from ww w .j a v a2 s.co m*/ $('#container').highcharts({ title: { text: 'Monthly Average Temperature', x: -20 //center }, series: [{ marker: { symbol: 'url(https://www.highcharts.com/demo/gfx/snow.png)', }, data: [{ y: 10, }, { y: 25, }, { y: 12, }, { y: 31 }] }] }, function (chart) { setTimeout(function () { $.each(chart.series[0].data, function (i, point) { this.graphic.attr({ transform: "translate(-15,-35)" }); }); }, 50); }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> </body> </html>