That's a great help, thanks.
Not sure if I'm thinking about this correctly, but what do we do at the UI for the user - i.e. where can we allow the user to 'place' the colour field, assuming they have dropped the product name field into the Legend box on the data field UI. Would they place the colour field nested below the product name in the same Legend box?