changed orientation of popover if the section is at the top or right of treemap