some things re-arranged for the barGroup data-join