ui修改
This commit is contained in:
parent
0c161934a3
commit
de5fdba84a
@ -111,9 +111,9 @@ def layout_config(app):
|
|||||||
),
|
),
|
||||||
html.Div(id='multi-tweet-summary', style={'fontSize': '20px', 'margin': '10px'}),
|
html.Div(id='multi-tweet-summary', style={'fontSize': '20px', 'margin': '10px'}),
|
||||||
dcc.Tabs(id='tabs', value='line', children=[
|
dcc.Tabs(id='tabs', value='line', children=[
|
||||||
dcc.Tab(label='Line Chart', value='line'),
|
dcc.Tab(label='Line', value='line'),
|
||||||
dcc.Tab(label='Heatmap', value='heatmap'),
|
dcc.Tab(label='Heatmap', value='heatmap'),
|
||||||
dcc.Tab(label='One Day Heatmap Plot', value='one_day_heatmap'),
|
dcc.Tab(label='1-dayHeatmap', value='one_day_heatmap'),
|
||||||
]),
|
]),
|
||||||
html.Div(id='tabs-content'),
|
html.Div(id='tabs-content'),
|
||||||
], style={'marginLeft': '50px'}),
|
], style={'marginLeft': '50px'}),
|
||||||
|
@ -108,10 +108,10 @@ def render_tab_content(tab, selected_dates, interval, time_zones, days_to_displa
|
|||||||
fig = go.Figure(data=go.Heatmap(
|
fig = go.Figure(data=go.Heatmap(
|
||||||
z=z_values,
|
z=z_values,
|
||||||
x=x_labels,
|
x=x_labels,
|
||||||
y=[f"{h:02d}:00" for h in hours],
|
y=[f"{h:02d}" for h in hours],
|
||||||
colorscale='Viridis',
|
colorscale='Viridis',
|
||||||
hoverongaps=False,
|
hoverongaps=False,
|
||||||
hovertemplate='%{y} %{x} EST<br>Tweets: %{z}<extra></extra>'
|
hovertemplate='%{y}:%{x} EST<br>Tweets: %{z}<extra></extra>'
|
||||||
))
|
))
|
||||||
|
|
||||||
if tab in ['line', 'one_day_heatmap']:
|
if tab in ['line', 'one_day_heatmap']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user