fix chart margin problem