# App using Dash with multi components (dcc\_dropdown and dcc\_graph) error

**URL:** <https://discourse.julialang.org/t/app-using-dash-with-multi-components-dcc-dropdown-and-dcc-graph-error/106269>\
**Category:** General Usage\
**Tags:** question, package, plotting, dash\
**Created:** [November 15, 2023, 3:25pm UTC](https://discourse.julialang.org/t/app-using-dash-with-multi-components-dcc-dropdown-and-dcc-graph-error/106269 "2023-11-15T15:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siv\_Soerensen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/siv_soerensen/32/51611_2.png) [@Siv\_Soerensen](https://discourse.julialang.org/u/Siv_Soerensen)\
**Post date:** [November 15, 2023, 3:25pm UTC](https://discourse.julialang.org/t/app-using-dash-with-multi-components-dcc-dropdown-and-dcc-graph-error/106269/1 "2023-11-15T15:25:35Z")

</div>

I would like to make an application in which I have both a dcc\_dropdown and a dcc\_graph component, but I do not seem to be able to get the right ‘format of the call’.

I had ChatGPT make a ‘simplified version’ of my code/what I want to do, such that it’s easy to run and see the issue:  
The error reads: ERROR: MethodError: no method matching html\_div(::Component, ::Component, ::Component)

"  
using Dash  
using DashHtmlComponents  
using DashCoreComponents  
using Random

function generate\_data()  
x = 1:10  
y = rand(10)  
return (x=x, y=y)  
end

data1 = generate\_data()

layout = html\_div(  
html\_h1(“Simple Dash App”),  
dcc\_dropdown(id=“dropdown1”),  
dcc\_graph(id=“graph1”, figure=(data=[(:x, data1.x), (:y, data1.y)], type=“scatter”))  
)

app = dash(layout)

run\_server(app, “0.0.0.0”, 8050)  
"

Any help is appreciated!
