2
function(chart) { // on complete
var xpos = '50%';
var ypos = '53%';
var circleradius = 102;
// Render the circle
chart.renderer.circle(xpos, ypos, circleradius).attr({
fill: '#7EBA00',
}).add();
});
//position updating based on window size
$(window).on('load resize', function() {
var wd = $(window).width();
if (wd < 361) {
//alert(wd);
chart.renderer.circle().cx = '60%';
}
});
如何添加使用jQuery x
或y
位置值到在highchart SVG创建的圈子?Highchart圈位置