<!DOCTYPE HTML> <script src="jquery.js"></script> <script src="highcharts.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> <script> $(function () { $('#container').highcharts({ chart: { type: 'column', }, title: { text: 'colum' }, xAxis: { type: 'category', }, yAxis:{ plotLines:[{//基准线 color:'#FF4040', dashStyle:'Dash', width:1.5, value:5, zIndex:5 }] }, legend: { enabled: false }, plotOptions: { series: { borderWidth: 0, dataLabels: { enabled: true }, events:{ click:function(e){//点击事件 } } } }, series: [{ name: 'Things', colorByPoint: true, data: [{ name: 'Animals', y: 5 }, { name: 'Fruits', y: 2 }, { name: 'Cars', y: 4 }] }], }) }) </script>