Javascript 以编程方式更改dataLabel';海图的边界
我想在Javascript 以编程方式更改dataLabel';海图的边界,javascript,highcharts,Javascript,Highcharts,我想在mouseOver和mouseOut事件上动态更改dataLabel的边框样式。如何做到这一点?以下是我目前的代码: series: [ { point: { events: { mouseOver: function () { // TODO: Set border programmatically. console.log(this); },
mouseOver
和mouseOut
事件上动态更改dataLabel
的边框样式。如何做到这一点?以下是我目前的代码:
series: [
{
point: {
events: {
mouseOver: function () {
// TODO: Set border programmatically.
console.log(this);
},
mouseOut: function () {
// TODO: Clear border.
console.log(this);
}
}
}
}]
这里有一个小把戏:-我想改变鼠标上的边框样式。找到了解决方案-
此.dataLabel.box
属性允许以编程方式更改边框。请看一看