Can serialize legend