Add metadata for legend