# Embedding an image in your dashoard

**URL:** <https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618>\
**Category:** Tips and Showcases\
**Created:** [December 20, 2021, 9:23pm UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618 "2021-12-20T21:23:42Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [December 20, 2021, 9:23pm UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/1 "2021-12-20T21:23:42Z")

</div>

It wasn’t obvious to me at first how to add an image to a dashboard. Turns out to be very simple, but thought I’d note it here in case anyone else is unsure.

You achieve it by using the Add Text widget; because it accepts Markdown, you can embed videos and images to it.

Your image needs to be ‘hosted’ somewhere (eg GitHub repo), but then in your Text widget, just add the URL

`![Description of your Image](https://github.com/your_repo/image.png?raw=true "Title")`

@HolisticsTeam, would be good to add some formatting options to the Text Widget box to make it clearer what can & can’t be added, or just to make it a bit easier for those unfamiliar with Markdown 🙂

---

<div class="post-metadata">

**Author:** ![HuyVu](https://community.holistics.io/user_avatar/community.holistics.io/huyvu/32/373_2.png) [@HuyVu](https://community.holistics.io/u/HuyVu)\
**Post date:** [December 21, 2021, 3:06am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/2 "2021-12-21T03:06:29Z")

</div>

Thank David, that’s a very helpful tip!

---

<div class="post-metadata">

**Author:** ![kaid](https://community.holistics.io/user_avatar/community.holistics.io/kaid/32/12_2.png) [@kaid](https://community.holistics.io/u/kaid)\
**Post date:** [December 21, 2021, 3:08am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/3 "2021-12-21T03:08:32Z")

</div>

Thanks for the tip!

Since markdown accepts HTML, I guess you can use HTML to create some inline CSS to style the text too.

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [December 21, 2021, 5:34am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/4 "2021-12-21T05:34:23Z")

</div>

> [@kaid](#):
>
> Since markdown accepts HTML, I guess you can use HTML to create some inline CSS to style the text too.

I hadn’t even thought of that - wow, that’s going to keep me busy playing around with it!

---

<div class="post-metadata">

**Author:** ![Rasmus\_Engelbrecht](https://community.holistics.io/user_avatar/community.holistics.io/rasmus_engelbrecht/32/405_2.png) [@Rasmus\_Engelbrecht](https://community.holistics.io/u/Rasmus_Engelbrecht)\
**Post date:** [January 6, 2022, 12:28pm UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/5 "2022-01-06T12:28:10Z")

</div>

Cool! Thanks for sharing.

If you want to resize the image you could do something like:

`<img src="insert-link" width="50%" height="50%">`

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [January 6, 2022, 11:57pm UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/6 "2022-01-06T23:57:01Z")

</div>

Yes, I ended up doing something similar.  
Because I wanted 2 logos side by side, I then used hspace to add some padding

```auto
<center>
<img src="https://github.com/my-repo/logo-1.png" alt="drawing" width="40" hspace="20"/>
<img src="https://github.com/my-repo/logo-2.png" alt="drawing" width="150" hspace="20"/>
</center>

```

---

<div class="post-metadata">

**Author:** ![anthonytd](https://community.holistics.io/user_avatar/community.holistics.io/anthonytd/32/374_2.png) [@anthonytd](https://community.holistics.io/u/anthonytd)\
**Post date:** [January 11, 2022, 4:12am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/7 "2022-01-11T04:12:37Z")

</div>

You can embed images/gifs in your charts and tables using HTML column format as well 😋

![Holistics Pokemon](https://community.holistics.io/uploads/default/original/1X/766dde784d22f525425b6d9bf6be70df4a7fb8e0.gif)

 ![image](https://community.holistics.io/uploads/default/original/1X/596fd73a63908b062b49e70e1905a17e9f0ece68.png)

The underlying data

 ![image](https://community.holistics.io/uploads/default/original/1X/96624119e57eb769d9d8bf3ecc3b0397c3bafe62.png)

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [January 11, 2022, 4:36am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/8 "2022-01-11T04:36:55Z")

</div>

Is that just by encoding the HTML within the query results?

---

<div class="post-metadata">

**Author:** ![HuyVu](https://community.holistics.io/user_avatar/community.holistics.io/huyvu/32/373_2.png) [@HuyVu](https://community.holistics.io/u/HuyVu)\
**Post date:** [January 11, 2022, 4:39am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/9 "2022-01-11T04:39:09Z")

</div>

Yes David, the HTML content is stored in the database and retrieved in the query results.

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [January 11, 2022, 4:56am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/10 "2022-01-11T04:56:14Z")

</div>

That’s handy - I think I’ve got a product image API I can call via a URL endpoint, so I should be able to dynamically create the URL in the query results.

I’ll have a play around!

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [January 12, 2022, 4:02am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/11 "2022-01-12T04:02:15Z")

</div>

Here we go - dynamically building the URL to pull product images from our client’s product catalogue, and creating it as its own dimension in the dataset.

I actually added it twice, once for ‘full size’ and once for ‘thumbnail’, allowing the user to pick between them

 ![image](https://community.holistics.io/uploads/default/original/1X/03e330d52cc9cd6ce1d67f6998ab6b94d54cf1c1.png)

---

<div class="post-metadata">

**Author:** ![anthonytd](https://community.holistics.io/user_avatar/community.holistics.io/anthonytd/32/374_2.png) [@anthonytd](https://community.holistics.io/u/anthonytd)\
**Post date:** [January 12, 2022, 4:48am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/12 "2022-01-12T04:48:12Z")

</div>

Wow, looks nice!  
🙌🙌🙌

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [January 12, 2022, 4:59am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/13 "2022-01-12T04:59:24Z")

</div>

Is there a way to set the _default_ format to HTML though?

I’ve tried setting `format: 'html'` in the dimension, but still defaults to String. Not the end of the world, but be useful if it could default to html so save the user having to set it each time.

---

<div class="post-metadata">

**Author:** ![hari](https://community.holistics.io/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hari](https://community.holistics.io/u/hari)\
**Post date:** [August 25, 2022, 11:36am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/14 "2022-08-25T11:36:50Z")

</div>

How to add images in columns. Can anyone guide through this

---

<div class="post-metadata">

**Author:** ![hari](https://community.holistics.io/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hari](https://community.holistics.io/u/hari)\
**Post date:** [August 25, 2022, 11:37am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/15 "2022-08-25T11:37:45Z")

</div>

Hi david, could you please guide the steps for this. I have product image in my website. How can ifetch those against the category that i chose in a table

---

<div class="post-metadata">

**Author:** ![david-ri](https://community.holistics.io/user_avatar/community.holistics.io/david-ri/32/543_2.png) [@david-ri](https://community.holistics.io/u/david-ri)\
**Post date:** [August 25, 2022, 10:19pm UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/16 "2022-08-25T22:19:24Z")

</div>

In my Item model, I create a new dimension. The definition of that dimension uses a SQL concat function to build the URL for the target item.

```auto
  dimension product_thumbnail {
    label: "Product Image (Thumbnail)"
    type: "text"
    format: 'html'
    definition: @sql CONCAT('<IMG SRC=https://our_imgsrc.blob.core.windows.net/content/images/', {{ org_id }} ,'/thumbnail/', {{ item_code }} , '.jpg height=75>');;
  }

```

You then just add this dimension to your report, select ‘HTML’ as the data type

 ![image](https://community.holistics.io/uploads/default/original/1X/48cb239e899fd92073b938e7684695baa740f73c.png)

(slightly annoyingly, although I’ve defined HTML as the default type, I still have to select HTML went I want to use it)

---

<div class="post-metadata">

**Author:** ![hari](https://community.holistics.io/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hari](https://community.holistics.io/u/hari)\
**Post date:** [August 31, 2022, 6:29am UTC](https://community.holistics.io/t/embedding-an-image-in-your-dashoard/618/17 "2022-08-31T06:29:12Z")

</div>

Thanks for the reply David. Is there any way to customize the font size in widgets and reports?
