#19 GIBS-347 Added output format option for legend