Created
March 14, 2020 02:49
-
-
Save tiagofer/dec484fd926d630a2df5b9303fd30c39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#criação do layout | |
app.layout = html.Div([ | |
#menu dropdown com a id para ser acessado via callback e a lista de opções geradas a partir do dataframe | |
dcc.Dropdown( | |
id='tribunal-dropdown', | |
options=[{'label':i,'value':i} for i in tribunal] | |
), | |
#div para a exibição do gráfico. Repare que o elemento graph só tem o ID, o gráfico será gerado no callback | |
html.Div([ | |
dcc.Graph( | |
id='line-result' | |
) | |
]) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment