I also want to include the name of the measure (e.g. ‘Items Sold’). I don’t want to hard-code this by just typing ‘items sold’ into the format property. For cartesian charts, I would just include the variable {series.name}. However, for pie charts, this variable generates the text ‘Series 1’ for every segment. How do I reference the series name for pie charts?
(In case this is helpful to anyone else, here are the variables that I have documented so far:)
Interesting! In my tests, this works just fine for pie charts. And it seems like “series.name” should be the right variable to use. Can you try adding the “log” variable to inspect the value of that variable? Like in the screenshot here:
To rule out any customisations affecting the output, I created a new Look, and I did not make any customisations to it in the chart settings (besides declaring the tooltip object in the Chart Config Editor). Here are the fields that I used: https://<>.cloud.looker.com/explore/system__activity/user?fields=user_facts.user_tier,user.count.
I did some more research with the team, and we can confirm that this is a limitation with the Chart Config Editors in the pie chart. We’d like to address this in a future update - thanks for bringing it up!