fix chart responsiveness