答案 0 :(得分:0)
您可以使用rect
类中的Highcharts.SVGRenderer
方法:
chart: {
...,
events: {
load: function() {
this.renderer.rect(100, 100, 50, 50).attr({
'stroke-width': 2,
stroke: 'red',
zIndex: 3
}).add();
}
}
}
实时演示: https://jsfiddle.net/BlackLabel/5x0h9ued/
API参考: https://api.highcharts.com/class-reference/Highcharts.SVGRenderer#rect