chart drawing improved