Code to post a custom Highchart tooltip
Calculation and sequential switching of a broken series with a solid line
Formatter function () { //var str = GetToolTip (this); varstr =' <b> '+ Highcharts.dateformat (Config_timelabelformats.day, This. x) +' </b> ';varEle =NULL; $.each ( This. Points, function () { if( This. Series.Name = = Highstock_local () [' Electricity ']) {ele = This; }Else if( This. Series.Name = = Highstock_local () [' Net_income ']){if(Ele = =NULL) {str + =' <br/> '+ This. Series.Name +":"+ This+y^ }Else{if(Ele.series.visible = =true&& This. series.visible = =true) {str + =' <br/> '+ highstock_local () [' Payout '] +":"+ ( This. Y + ele.y); str + =' <br/> '+ highstock_local () [' Electricity '] +":"+ (ELE.Y); }Else{str + =' <br/> '+ highstock_local () [' Electricity '] +":"+ (ELE.Y); } } }Else{str + =' <br/> '+ This. Series.Name +': '+ This. Y; } });returnStr }
Custom Highchart tooltip