Javascript examples for highcharts:Chart Series
Custom Series Icons
<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 () {/*w ww . j a v a 2s. co m*/ $('#container').highcharts({ chart: { type: 'column' }, title: { text: 'Monthly Average Rainfall' }, subtitle: { text: 'Source: WorldClimate.com' }, xAxis: { categories: [ 'Feb', 'Mar', 'Apr', 'May', 'Jun'], plotLines: [{ color: '#A2A3A5', width: 0.5, value: 3, zIndex: 3 }, { color: '#A2A3A5', width: 0.5, value: 4, zIndex: 3 }] }, yAxis: { gridLineWidth: 0, alternateGridColor: '#E6E6E6', min: 0, title: { text: 'Rainfall (mm)' } }, tooltip: { headerFormat: '<span style="font-size:10px">{point.key}</span><table>', pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' + '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true }, plotOptions: { column: { pointPadding: 0, borderWidth: 0 } }, series: [{ color: '#A4A5A7', name: 'Tokyo', data: [49.9, 71.5, 106.4, 129.2, 144.0] }, { color: '#ADBBC6', name: 'New York', data: [83.6, 78.8, 98.5, 140.4, 106.0] }] }, function(chart) { // on complete chart.renderer.image('http://highcharts.com/demo/gfx/sun.png', 410, 40, 20, 20).add(); chart.renderer.image('http://highcharts.com/demo/gfx/snow.png', 334, 40, 20, 20).add(); }); }); </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>