import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from apps import commonmodules

from app import app

layout = html.Div([
    commonmodules.get_header(),
    commonmodules.get_menu(),
    html.H3('Line Chart'),
    dcc.Graph(id='example-graph',
              figure={
                  'data': [
                      {
                          'x': [1, 2, 3],
                          'y': [4, 1, 2],
                          'type': 'bar',
                          'name': 'SF'
                      },
                      {
                          'x': [1, 2, 3],
                          'y': [2, 4, 5],
                          'type': 'bar',
                          'name': u'Montreal'
                      },
                  ],
                  'layout': {
                      'title': 'Dash Data Visualization'
                  }
              }),
Exemple #2
0
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from apps import commonmodules

from app import app

layout = html.Div([
    commonmodules.get_header("Mail Page"),
    commonmodules.get_menu(),
])
Exemple #3
0
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from apps import commonmodules
import pandas as pd
import numpy as np

# plotly libraries
from plotly import graph_objs as go
from app import app, df


layout = html.Div([
    commonmodules.get_header("Stat Page"),
    commonmodules.get_menu_from_stat(),
    dcc.Graph(id="stat_layout"),
    html.Div("some value", style={"display":"none"} ,id="useless")
])


@app.callback(Output('stat_layout', 'figure'),
              [Input('useless', 'children'),
               Input("check_user", "n_clicks"),
              ],
              [State("id", "value"),
              ]
)
def display_stat(pathname, n_clicks, user_id):
    # make the barplot
    print("display stat")
    df["id"] = df["id"].astype(str)
Exemple #4
0
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from apps import commonmodules

from app import app


layout = html.Div([
    commonmodules.get_header("Home Page"),
    commonmodules.get_menu(),
])
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from apps import commonmodules

from app import app

layout = html.Div([
    commonmodules.get_header("Yammer Page"),
    commonmodules.get_menu(),
])