Demux data for legend