"+Highcharts.map([["民主党",this.demVotes,demColor],["共和党",this.repVotes,repColor],["自由党",this.libVotes,libColor],["绿党",this.grnVotes,grnColor]].sort(function(e,t){return t[1]-e[1]}),function(e){return'● '+(e[0]===t?"":"")+e[0]+": "+Highcharts.numberFormat(e[1],0)+(e[0]===t?"":"")+"
"}).join("")+"
总数: "+Highcharts.numberFormat(this.sumVotes,0)}}},{name:"Separators",type:"mapline",data:Highcharts.geojson(Highcharts.maps["countries/us/us-all"],"mapline"),color:"#707070",showInLegend:!1,enableMouseTracking:!1},{name:"Connectors",type:"mapline",color:"rgba(130, 130, 130, 0.5)",zIndex:5,showInLegend:!1,enableMouseTracking:!1}]});Highcharts.each(chart.legend.allItems,function(e){var t=e.setVisible;e.setVisible=function(){var a=this;t.call(a),Highcharts.each(chart.series[0].points,function(t){if(chart.colorAxis[0].dataClasses[t.dataClass].name===a.name){Highcharts.find(chart.series,function(e){return e.name===t.id}).setVisible(a.visible,!1);var e=Highcharts.find(chart.series[2].points,function(e){return e.name===t.id});e&&e.setVisible(a.visible,!1)}}),chart.redraw()}}),Highcharts.each(chart.series[0].points,function(a){if(a.id){var e=a.pieOffset||{},t=parseFloat(a.properties.latitude),o=parseFloat(a.properties.longitude);if(chart.addSeries({type:"mappie",name:a.id,zIndex:6,sizeFormatter:function(){var e=this.chart.yAxis[0],t=(e.dataMax-e.dataMin)/(e.max-e.min);return Math.max(this.chart.chartWidth/45*t,this.chart.chartWidth/11*t*a.sumVotes/maxVotes)},tooltip:{pointFormatter:function(){return a.series.tooltipOptions.pointFormatter.call({id:a.id,hoverVotes:this.name,demVotes:a.demVotes,repVotes:a.repVotes,libVotes:a.libVotes,grnVotes:a.grnVotes,sumVotes:a.sumVotes})}},data:[{name:"Democrats",y:a.demVotes,color:demColor},{name:"Republicans",y:a.repVotes,color:repColor},{name:"Libertarians",y:a.libVotes,color:libColor},{name:"Green",y:a.grnVotes,color:grnColor}],center:{lat:t+(e.lat||0),lon:o+(e.lon||0)}},!1),!1!==e.drawConnector){var r=chart.fromLatLonToPoint({lat:t,lon:o}),i=chart.fromLatLonToPoint({lat:t+(e.lat||0),lon:o+(e.lon||0)});chart.series[2].addPoint({name:a.id,path:"M"+i.x+" "+i.y+"L"+r.x+" "+r.y},!1)}}}),chart.redraw()