Make sure you assign a DIV ID for this function, and you need to create DOM div elements before calling the chart plugin,
if this one works on emulators, and not actually the devices mean that it may have memory leaks ,
if you are drawing a chart, make sure the previous objects are located. I just suggest something and that's all
source share