"text" property for labels" but I don't know how.Hi,you are trying to assign the same colors (range) to different labels (domain). You need to create a new scale for that. Add this to the "scales" section:{"name": "labelcolor", "type": "ordinal", "range": "category10", "domain": ["Microsoft", "Amazon", "IBM", "Google", "Apple"]}And then use the custom legend like this:"legends": [{"fill": "labelcolor","offset": 0,"title": "My Title","properties": {},"values": ["Google","Apple","Amazon","IBM","Microsoft"]}],