2017-06-25 56 views

回答

0

您需要到圖表的容器溢出屬性設置爲'visible'

chart: { 
    style: { 
    overflow: 'visible' 
    } 
} 

剩下的就是造型第裏面的html工具提示,例如像這樣:

pointFormat: ` 
     <ul class='tt-list'> 
     <li class='tt-item'>Last 4-Weeks (4/17 - 5/13)</li> 
     <li class='tt-item'>Orders Filled: 1,183</li> 
     <li class='tt-item'>Orders Cancelled: 90</li> 
     <li class='tt-item'>Open Orders: 10</li> 
     </ul>` 
    }, 

CSS:

.tt-list { 
    list-style-type: none; 
    margin: 10px; 
    padding: 0; 
} 

.tt-item:first-child { 
    font-weight: bold; 
} 

.tt-item { 
    margin: 0 0 10px 0 
} 

例如:https://jsfiddle.net/71khj4f7/

tt-oiverflow

相關問題