Add text to a Look

Hi,
We are using this “Fill gauge” visualization block: https://looker.com/platform/blocks/viz/liquid-fill-gauge

Works fine! But, i would like to add some text to it. Is it possible to add text to a Look through the html tag in the measure or any other way? This grafical object doesnt have any text option.

What if I would like to create one look with three objects. Is this possible?
Cant find any info about this.

cheers,
Cris

1 Like

This one’s a custom visualization, so if you navigate to the github repo linked there you can see the full open-source code for it: https://github.com/looker/custom_visualizations_v2/tree/master/src/examples/liquid_fill_gauge

If you define html on the measure, does that not carry through to the viz? If so, maybe there’s something around this section: https://github.com/looker/custom_visualizations_v2/blob/master/src/examples/liquid_fill_gauge/liquid_fill_gauge.ts#L230 that’s not pulling in a rendered or html value. I’m no javascript jenius but if you are, you might be able to tease that into rendering HTML for you (or hardcoding text into the viz).

1 Like