How to always show the legend in a 100% stacked bar chart?

I’m doing a 100% stacked bar chart. With data points in both categories, it would show up like this:

1d647c85-eb55-4bee-a09c-4a1670059ad1.png
Stacked 100% bar chart with the legend showing

I realized that when there’s only one data point such that it’s 100%, the legend does not show, and requires you to hover over it.

194e391f-92b9-478e-93fb-812191dff3ab.png
Stacked bar chart with no legend, so it requires the user to hover over the chart.

I’m planning on sending this out as a PDF, so the interact-ability is not there for users. Is there a way to always show the legend for this tile?

Thank you, all help is appreciated.

0 3 759
3 REPLIES 3

n_davis
Participant V

I’ve had luck with creating case statements in lookml which will allow you to fill the field in the uI. This will show the legend for all fields in the case statement at all times. https://cloud.google.com/looker/docs/reference/param-field-case

I had the same issue and I think this is a bug. 

In Edit mode, I have a stacked bar chart that shows the legend... but once I exit Edit mode, it also disappears.. really strange

Top Labels in this Space
Top Solution Authors