# Need help with loading plots in dash

**URL:** <https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841>\
**Category:** Visualization\
**Tags:** dashboard, plotlyjs\
**Created:** [July 18, 2021, 1:00am UTC](https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841 "2021-07-18T01:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goku](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@Goku](https://discourse.julialang.org/u/Goku)\
**Post date:** [July 18, 2021, 1:00am UTC](https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841/1 "2021-07-18T01:00:25Z")

</div>

I am trying to host this plot in dash, but I am getting the following error:  
`Error loading layout`

 ![final](https://global.discourse-cdn.com/julialang/original/3X/6/2/62b1e852291d2b05317775241e38581bc7b1e734.png)

Full Code:

```julia
using CSV, DataFrames, Dates, Plots
using Dash, DashHtmlComponents, DashCoreComponents
plotly()

df = CSV.read("47cb5580002e004a_2021-06-17.csv",DataFrame)
df.dateTime = DateTime.(df.dateTime,"yyyy-mm-dd HH:MM:SS")
hs = [Plots.plot(df.dateTime, df[:,i], title=names(df)[i]) for i in 3:ncol(df)]
ncols = 5 # set how many columns you want in the plot
nrows = cld(length(hs), ncols)
blankplot = Plots.plot(legend=false,grid=false,foreground_color_subplot=:white)
for i = (length(hs)+1):(nrows*ncols)
    push!(hs, deepcopy(blankplot))
end
p1 = Plots.plot(hs..., layout=(nrows, ncols), legend=false, size=(3000,1500))

app = dash()

app.layout = html_div() do
    html_h4("Iris Sepal Length vs Sepal Width")
    dcc_graph(figure=plot(rand(10)))
end

run_server(app, "0.0.0.0",8080)

dcc_graph(
    id = "example-graph-3",
    figure = (p1),
)

```
