Allows adding a legends to a stacked legend using data or legends