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
Post a Comment