Remove image drawn on Highchart -


i have drawn 1 image on high-chart using chart.render.img method of high-chart. after clicking on button want update coordinates of img. but, there no update function image, trying remove , again add new coordinates. have stored img in 1 array , using array element trying remove image. not working.

var symbol = new array(); symbol[0]= chart.renderer.image('assets/shared/images/green-line.png', xpoint, offset, width,height); symbol[0].add(); 

now after want update xpoint, offset, width & height. removing img. $(symbol[0].element).remove(); want again add using add method new coordinates. remove not working.

just call "destroy" method:

symbol[0].destroy(); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -