# Display image in Dash app

**URL:** https://discourse.julialang.org/t/display-image-in-dash-app/63745
**Category:** Visualization
**Tags:** plotting
**Created:** [June 29, 2021, 12:05pm UTC](https://discourse.julialang.org/t/display-image-in-dash-app/63745 "2021-06-29T12:05:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aju](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aju/32/26608_2.png) [@Aju](https://discourse.julialang.org/u/Aju)
#### Post date: [June 29, 2021, 12:05pm UTC](https://discourse.julialang.org/t/display-image-in-dash-app/63745/1 "2021-06-29T12:05:02Z")

</div>

Hello,  
I am currently building an app for image visualisation using Dash platform. But, I am unable to find the right graph to display the image, which could be a 2D array or 3D array with RGB channels. Here is a simple code snippel. Could anyone help me out? Thanks a lot.

```julia
using Plotly
using Dash, DashHtmlComponents, DashCoreComponents, DashBootstrapComponents
using Random

my_image = rand(Float32, (100, 200))
my_plot2 = (
        data = [(z = my_image, type = "heatmap", name = "Image")],
        layout = (title = "Image Visualization",),
)
app.layout = html_div() do
        dcc_graph(id = "image_display", figure = my_plot2)
end
run_server(app, "0.0.0.0", debug = true)

```

Ajay
