Skip to content

Commit

Permalink
Clarify that a special field name is required to render images in too…
Browse files Browse the repository at this point in the history
…ltips (#2570)
  • Loading branch information
joelostblom committed Oct 29, 2022
1 parent 066be25 commit c83aca6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions altair/examples/image_tooltip.py
Expand Up @@ -3,7 +3,9 @@
-------------
This example shows how to render images in tooltips.
Either URLs or local file paths can be used to reference
the images.
the images. To render the image, you must use the special
column name "image" in your data and pass it as a list to
the tooltip encoding.
"""
# category: interactive charts

Expand All @@ -17,5 +19,5 @@
alt.Chart(source).mark_circle(size=200).encode(
x='a',
y='b',
tooltip=['image'] # Must be a list for the image to render
tooltip=['image'] # Must be a list containing a field called "image"
)

0 comments on commit c83aca6

Please sign in to comment.