saving chart size
fixed null pointer exception