score:2

Accepted answer

here, i have fixed it for you. here is a saved image:

exported imagefollowing changes have been done:

  1. added a redraw event to your exportchart

    redraw: function () {
        $("#test_text").remove() ;
        draw_labels(this);
    }
    
  2. changed this line in aftersetextremes

    $('[id="test_text"]').remove();
    

    to

    $("#test_text").remove() ;
    

    earlier one was not working as expected, so i had to change it.

score:0

problem with disappearing text is related with id, when i removed it, label appears. but then i came across second issue, wrong y position. so i declare global variable, then when you call your function, set position of label, and use in chart exporting this variable. as a result label is exported correct.

http://jsfiddle.net/ugbpj/11/


Related Query

More Query from same tag