HighCharts: Labels visible over tooltip

前端 未结 7 1704
离开以前
离开以前 2020-12-01 09:45

Labels on my chart are showing over tooltip, which doesn\'t look very nice. I tried to play with zIndex, but to no result. How can I make tooltips not transpare

7条回答
  •  执笔经年
    2020-12-01 10:04

    and if you dont want to daddle in the problems there are in useHTML, here is the way to do it in the svg:

     Highcharts.wrap(Highcharts.Chart.prototype, 'redraw', function(proceed, animation) {
      proceed.call(this, animation);
      try {
       if (this.legend.options.floating) {
        var z = this.legend.group.element, zzz = z.parentNode;
        zzz.removeChild(z);
        zzz.appendChild(z); //zindex in svg is determined by element order
       }
      } catch(e) {
    
      } 
     });
    

提交回复
热议问题