Added initial code for chart drawing