Improve styling
parent
8d33fe713c
commit
065462a071
|
@ -0,0 +1,11 @@
|
||||||
|
#range-controls {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#timerange {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#range_count {
|
||||||
|
width: 30%;
|
||||||
|
}
|
6
tsplot
6
tsplot
|
@ -14,10 +14,8 @@ import time
|
||||||
import sys
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
|
|
||||||
|
|
||||||
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
|
|
||||||
|
|
||||||
|
app = dash.Dash(__name__)
|
||||||
|
|
||||||
def get_topics(db):
|
def get_topics(db):
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
|
@ -60,7 +58,7 @@ plot_page = html.Div([
|
||||||
id='interval-component',
|
id='interval-component',
|
||||||
interval=4*1000, # in milliseconds
|
interval=4*1000, # in milliseconds
|
||||||
n_intervals=0),
|
n_intervals=0),
|
||||||
html.Div([
|
html.Div(id='range-controls', children=[
|
||||||
dcc.Input(id="range_count",
|
dcc.Input(id="range_count",
|
||||||
type="number",
|
type="number",
|
||||||
value=1,
|
value=1,
|
||||||
|
|
Loading…
Reference in New Issue