Implement chart drawing