Added legend to linkage viewer