adding charts code to docucanvas