resizing chart and making it responsive