Fix chart not drawing correctly when not filling its parent view