Add 'legend' option to each diagram