Skip to content

Instantly share code, notes, and snippets.

@vnegi10
Created March 28, 2021 20:47
Show Gist options
  • Save vnegi10/1d1dd7856191756a80656ed0654036f2 to your computer and use it in GitHub Desktop.
Save vnegi10/1d1dd7856191756a80656ed0654036f2 to your computer and use it in GitHub Desktop.
# UI part of the tool
app = dash()
app.layout = html_div() do
html_h1("Crypto Dashboard",
style= (
textAlign = "center",
)
),
html_div(
children = [
dcc_dropdown(
id = "mode_ID",
options = [
(label = "$(modes[i])", value = i) for i in modes_index
],
value = 1,
),
dcc_dropdown(
id = "pair_ID",
options = [
(label = "$(currencies[i])", value = i) for i in currencies_index
],
value = 1,
),
dcc_radioitems(
id = "window_ID",
options = [(label = "$(i)-day", value = i) for i in windows],
value = 1,
),
dcc_radioitems(
id = "duration_ID",
options = [(label = "$(i)d", value = i) for i in durations],
value = 7,
),
],
style = (width = "50%", display = "inline-block", padding="2% 25%"),
),
html_div(style = (width="100%", display="inline-block", padding="2% 25%")) do
dcc_graph(id = "graph")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment