I'd call `legendLabels` this `legendFormat` (or `legendFormatString`) to be more accurate. Saying this because the current name confused me when reading the code in the other files first.