Chart resizes to window size in snapshot mode
Chart resizes for snapshot and tracking
removed unnecessary check
updated style for canvas resizing