I have created a map with orders and I would like to show legend name. I don’t happen to see an option to do it now. Is there a way I could show legend name on a map?
Hi @aashishma
I can’t see a Legend Name option here, however one option you have is to customise a Measure using Custom Fields. This will allow you to be a bit more descriptive in the Legend about what the colour scale is referring to.
The example I have used is number of Customers by State here and the output legend looks like this:
I added the field with “Customers” on the end by going to:
- Custom Fields
- ‘New’ → Custom Measure
- Finding the User’s ‘ID’ field
- Selecting Count Distinct as the measure type
- Choosing ‘Custom’ as the formatting option
- Finding the right format for the number (#,##0 for 1,234) here
- Adding “Customers” to the end
steps 2 - 7 look like this in Looker:
You can then replace the measure in your visualisation with this one and the Legend will update.
I know it’s not a perfect fix but hopefully it will give anyone using the chart a bit more information about what they’re looking at.
It might also be worth asking for the Legend Name option to be added by raising a request with the Looker team, you can find out how to do that here.
Let me know if you have any questions!
Connor | Redkite