1
在我的應用程序中,我希望在加載時顯示處於可見狀態的所有工具提示。我在這裏提交我的代碼。但是,在默認情況下它僅顯示在鼠標移到..幫我要怎麼做..如何在頁面加載時在高圖中顯示工具提示
$(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
Axis: {
categories: ['Jan', 'Mar', 'May', 'Jul', 'Sep', 'Nov', 'Dec'],
lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
labels: { enabled: false },
minorTickLength: 0,
tickLength: 0
},
yAxis: {
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}],
lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
labels: { enabled: false },
gridLineColor: 'transparent',
minorTickLength: 0,
tickLength: 0
},
tooltip: {
headerFormat: '<table>',
pointFormat: '<tr>' +
'<td style="padding:0;"><b>{point.y:.1f} </b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
series: [{
name: 'Tokyo',
data: [7.0, 14.5, 21.5, 26.5, 18.3, 9.6]
}],
}); });