Py.Cafe

adamschroeder.m/

meetup-template-for-plotly-figures

Visualizing Data with Plotly and Dash

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# check out https://dash.plotly.com/ for Dash documentation
# check out https://plotly.com/python for Plotly documentation

from dash import Dash, Input, Output, callback, dcc, html
import pandas as pd
import plotly.express as px

# Best to grab the raw csv data link from GitHub
# df = pd.read_csv('my_raw_dataset_from_GitHub.csv')

"""
Use this sectiont to slice, clean, filter data to prepare it for the figure
"""


"""
# Build the figure
fig = px.bar(df, x="x_col", y="y_col")
"""

app = Dash(__name__)
app.layout = html.Div(
    children=[
        # assign the fig to the 'figure' property to view
        dcc.Graph(figure={})
    ]
)