create legend view