aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/trending/trending.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/dash/app/pal/trending/trending.py')
-rw-r--r--resources/tools/dash/app/pal/trending/trending.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/tools/dash/app/pal/trending/trending.py b/resources/tools/dash/app/pal/trending/trending.py
index 1c64677eea..3697f7150f 100644
--- a/resources/tools/dash/app/pal/trending/trending.py
+++ b/resources/tools/dash/app/pal/trending/trending.py
@@ -14,8 +14,8 @@
"""Instantiate the Trending Dash applocation.
"""
import dash
-import dash_bootstrap_components as dbc
+from ..utils.constants import Constants as C
from .layout import Layout
@@ -30,16 +30,16 @@ def init_trending(server, time_period=None):
dash_app = dash.Dash(
server=server,
- routes_pathname_prefix=u"/trending/",
- external_stylesheets=[dbc.themes.LUX],
+ routes_pathname_prefix=C.TREND_ROUTES_PATHNAME_PREFIX,
+ external_stylesheets=C.EXTERNAL_STYLESHEETS
)
layout = Layout(
app=dash_app,
- html_layout_file="pal/templates/trending_layout.jinja2",
- graph_layout_file="pal/trending/layout.yaml",
- data_spec_file="pal/data/data.yaml",
- tooltip_file="pal/data/tooltips.yaml",
+ html_layout_file=C.TREND_HTML_LAYOUT_FILE,
+ graph_layout_file=C.TREND_GRAPH_LAYOUT_FILE,
+ data_spec_file=C.DATA_SPEC_FILE,
+ tooltip_file=C.TOOLTIP_FILE,
time_period=time_period
)
dash_app.index_string = layout.html_layout