组合图中柱形图的标签,只想显示一个合计数,如北京2399,数量来源为1199+1200,JS怎么写呢?如果只是堆积图,用
function(){ var vanchart = this.series.vanchart, series = vanchart.series; if(!vanchart.seriesOfType){ series = series.column; } var ser; for(var i = series.length - 1; i >= 0; i--){ if((ser = series).visible){ break; } } if(ser && ser == this.series){ var points = this.points, value = 0; for(var i = 0, len = points.length; i < len; i++) { if(points.series.visible){ value += points.getTargetValue() } } return value; }else{ return ''; } }
是可以实现的,但组合图不知道怎么改。
http://bbs.fanruan.com/data/attachment/forum/201711/25/101209sohkp66miztmthps.png.thumb.jpg
编辑于 2017-11-27 14:46