This file contains hidden or 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
#ids dos gráficos | |
tab_01_scatter_pontos = 'tab-01-scatter-pontos' | |
tab_02_scatter_valorizacao = 'tab-02-scatter-valorizacao' | |
#criando a tab Pontuação | |
tab_01 = html.Div( | |
[ | |
dbc.Row( | |
[ | |
dbc.Col(controles_01, md=4,className='mt-5'), |
This file contains hidden or 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
import construtores.layout as cl | |
controles_01 = cl.create_controls(['Clube','Posição','Jogador'],['drop-clube-01','drop-posicao-01','drop-jogador-01']) | |
controles_02 = cl.create_controls(['Clube','Posição','Jogador'],['drop-clube-02','drop-posicao-02','drop-jogador-02']) |
This file contains hidden or 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
#criando a tab Pontuação | |
tab_01 = html.Div( | |
[ | |
dbc.Row( | |
[ | |
dbc.Col("ELEMENTO_COLUNA_01", md=4,className='mt-5'), | |
dbc.Col("ELEMENTO_COLUNA_02",md=8, className='mt-4') | |
] | |
) | |
] |
This file contains hidden or 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
import dash_html_components as html | |
import dash_bootstrap_components as dbc | |
import dash_core_components as dcc | |
def create_controls(labels,ids): | |
"""Com base em uma lista de labels e ids, que devem ser do mesmo tamanho | |
cria-se um menu dentro de um elemento do tipo card, contendo botões do tipo Dropdown | |
Args: | |
labels (array): Listagem com os nomes que serão exibidos no menu Ex.["Clube","Posição","Jogador"] |
This file contains hidden or 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
import dash_core_components as dcc | |
import dash_bootstrap_components as dbc | |
import dash_html_components as html | |
#inserindo a navbar | |
navbar = dbc.Navbar( | |
dbc.Container( | |
[ | |
html.A( |
This file contains hidden or 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
navbar = dbc.Navbar( | |
dbc.Container( | |
[ | |
html.A( | |
dbc.Row( | |
[ | |
dbc.Col(html.Img(src=logo, height="50px")), | |
dbc.Col(dbc.NavbarBrand("", className="ml-5")), | |
], | |
align="center", |
This file contains hidden or 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
#importando as bibliotecas | |
import dash_core_components as dcc | |
import dash_bootstrap_components as dbc | |
import dash_html_components as html | |
#montagem do layout | |
layout = html.Div(html.H1("Opa, está rodando")) | |
This file contains hidden or 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
#importando as bibliotecas | |
import callbacks | |
#importando o layout criado no arquivo layouts.py | |
from layouts import layout | |
#importando a aplicação Dash | |
from app import app | |
#inicializa layout | |
app.layout = layout |
This file contains hidden or 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
import dash | |
import dash_bootstrap_components as dbc | |
#criando a aplicação Dash utilizando o tema MATERIA do Dash Boostrap Component | |
app = dash.Dash(__name__,suppress_callback_exceptions=True,external_stylesheets=[dbc.themes.MATERIA]) | |
#Aplicação Flask | |
server = app.server |
This file contains hidden or 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
Brotli==1.0.9 | |
click==7.1.2 | |
dash==1.15.0 | |
dash-bootstrap-components==0.10.5 | |
dash-core-components==1.11.0 | |
dash-html-components==1.1.0 | |
dash-renderer==1.7.0 | |
dash-table==4.10.0 | |
Flask==1.1.2 | |
Flask-Caching==1.9.0 |