getting popover and graphs to work together