writing: common method to display (univer) legend