[英]Highcharts - How to show two tooltips for single point at different positions of chart?
我想為同一個系列點顯示兩個不同的工具提示。 有沒有一種方法可以指定使用定位器在拐角處顯示一個工具提示,並像默認值一樣在點旁邊顯示一個工具提示。
您可以使用簡單的 HTML/CSS 和 Highcharts 點事件組合來創建自定義工具提示。
演示: https : //jsfiddle.net/BlackLabel/qhgpykLd/
HTML:
<div id="tooltip">custom tooltip</div>
CSS:
#tooltip {
width:100px;
height:100px;
border:1px solid red;
color:'red';
position:absolute;
top:20px;
left:80px;
background: white;
display:none;
z-index:9999;
}
API: https : //api.highcharts.com/highcharts/series.line.point.events
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.