How can I add text to a chart such that every dashboard that shows that chart will also show its text?

Rwb
New Member

I know it’s possible to add text as a section in a dashboard, but what I want is different:

I may sometimes create a chart that pulls from data that we want to add warnings about.

I don’t want to recreate text labels in each dashboard that might include this chart.

I want to add an annotation directly on the chart itself, alerting viewers about how to interpret it.

How can I do this? Thanks.

1 8 3,742
8 REPLIES 8

I use “note” in the chart’s lookML to do it

note_state: expanded
note_display: above
note_text: |-
1) Note1
2) Note2

Rwb
New Member

Thanks. I hadn’t heard of this but because of your response searched and found https://docs.looker.com/reference/dashboard-reference/lookml-visualization-reference/table-next-para...

Unfortunately I think that’s only for LookML Dashboards and not for “user-defined dashboards, which are created via the Looker UI”.

I have added notes to user defined dashboards. You can select the tile on the user defined dashboard and there is an option to add note.

Hey Reachbgk! 
Can you help me with those user defined dashboards? I actually don't know how to create those.

Thank you.

If your warnings are concerning measures, you can use the html parameter to enrich the tooltip available when hovering that measure on any visualization that will use it.

Rwb
New Member

Thanks for your answer, but I’m not sure what this means. My dashboards are “user-defined” rather than LookML dashboards. Is this still relevant?

In essence, you can enrich the tooltip of a measure or dimension:

  measure: order_count {
    type: count_distinct
    drill_fields: [detail*]
    sql: ${order_id} ;;
    html: 
      {{rendered_value}}
      <img src="https://cdn2.iconfinder.com/data/icons/freecns-cumulus/32/519791-101_Warning-512.png" alt="Warning!" style="width:20px;height:20px;"> This is a count distinct on order_id
    ;;
  }

Rwb
New Member

Oh ok, that’s pretty cool, and better than nothing. Thank you!

(It would still be nice to be able to add a warning on a Look that is prominently visible without the user hovering.)

Top Labels in this Space
Top Solution Authors