score:1

Accepted answer

here is your solution :

var plotbox = point.renderer.plotbox;
var path = renderer.path(['m',point.cx+plotbox.x,point.cy+plotbox.y,'l',100,100])

in fact, your graphic does not start at 0,0 of your svg, it has an offset. you can find it in the renderer of every objects. your graphic is contained into the plotbox.

i have updated your jsfiddle : http://jsfiddle.net/fsdks/

score:1

you can use plotx and ploty coordinades, kept in point object (not graphic) and add plottop / plotleft (spacing around chart).

var renderer = this.series.chart.renderer,
                                chart = this.series.chart,
                                point = this,
                                path;


                            path = renderer.path(['m',point.plotx + chart.plotleft,point.ploty + chart.plottop,'l',100,100])
                                .attr({
                                    'stroke-width': 1,
                                    stroke: 'red'
                                }).add();                               
                            this.graphic.animate({                                  
                                opacity: 0.2                                    
                            });

http://jsfiddle.net/mktvz/4/


Related Query

More Query from same tag