2014-08-27 70 views
1

我試圖在氣泡圖表中爲氣泡設置白色邊框/線條顏色。我能夠實現這一點,但是, 1.在鼠標移出時,白色邊框/線條顏色仍然保留,並且不會重置爲默認線條顏色。 2.我該如何增加泡泡外的中風寬度?白色邊框/線條顏色設置在氣泡圖表中的氣泡上不會從氣泡上重置爲鼠標

請幫忙。以下是演示:http://jsfiddle.net/JKLzy/17/

plotOptions:{ 
      bubble:{ 
       allowPointSelect:true, 
       marker: { 
       lineColor:'', 
        states:{ 
        hover:{ 
         enabled:true, 
         lineWidth:1, 
         lineColor:'white' 
        } 
        } 
       } 
       }, 
       states:{ 
       hover:{ 
        marker:{ 
         lineWidth:0, 
         lineColor:'white'   
        } 
       } 
       } 
      }, 

回答

3

似乎粘在白色懸停結束後的原因是,在你的代碼你設置了標記線顏色lineColor:''。這不是有效的顏色。刪除它,你的懸停線效果應該正常工作。

要調整筆畫的寬度,只需更改lineWidth

例如您完成plotOptions.bubble.marker -options看起來是這樣的:

marker: { 
    states:{ 
     hover:{ 
      lineWidth: 3, 
      lineColor: 'white' 
     } 
    } 
} 

this JSFiddle demonstration

+0

謝謝..工作正常。 – developer 2014-09-03 17:03:14