有没有办法在R的hcchart函数上显示加载工具提示?
我看到这对于JS版本是可能的:http://jsfiddle.net/jugal/t9hf1j46/
(function (H) {
H.wrap(H.Tooltip.prototype, 'hide', function (defaultCallback) {
]
});
}(Highcharts));
var chart=$('#container').highcharts({
title: {
text: 'Monthly Average Temperature'
},
subtitle: {
text: '<a href="http://ahumbleopinion.com/category/highcharts/">Highcharts @ A Humble Opinion</a>',
useHTML: true
},
credits: {
text: "Jugal Thakkar",
href: "http://jugal.me/"
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'Temperature (°C)'
}
},
series: [{
name: 'Mumbai',
data: [24.2, 24.6, 26.7, 28.6, 30.1, 29.0, 27.5, 27.2, 27.4, 28.2, 27.4, 25.6]
}, {
name: 'New Delhi',
data: [14.1, 16.9, 22.4, 28.6, 32.8, 33.8, 31.0, 29.8, 29.2, 26.0, 20.3, 15.4]
}],
tooltip: {
valueSuffix: '°C'
}
}).highcharts();
chart.tooltip.refresh(chart.series[1].points[2]);