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() ;
  2. changed this line in aftersetextremes



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

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


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.

Related Query

More Query from same tag