diff --git a/app/figures.py b/app/figures.py index 9a4506d..913e967 100644 --- a/app/figures.py +++ b/app/figures.py @@ -255,7 +255,7 @@ def generate_intraday_market_bids_fig(df: pd.DataFrame) -> go.Figure: return intraday_market_bids_fig -def generate_dsr_bids_fig(df: pd.DataFrame) -> go.Figure: +def generate_dsr_fig(df: pd.DataFrame) -> go.Figure: """Creates plotly Figure object for DSR Bids and Offers table. Args: diff --git a/app/pages/market.py b/app/pages/market.py index e738e28..c13a277 100644 --- a/app/pages/market.py +++ b/app/pages/market.py @@ -9,8 +9,8 @@ from .. import datahub_api as datahub from ..figures import ( generate_balancing_market_fig, - generate_dsr_bids_fig, generate_dsr_commands_fig, + generate_dsr_fig, generate_energy_deficit_fig, generate_intraday_market_bids_fig, generate_intraday_market_sys_fig, @@ -28,7 +28,7 @@ balancing_market_fig = generate_balancing_market_fig(df) energy_deficit_fig = generate_energy_deficit_fig(df) intraday_market_bids_fig = generate_intraday_market_bids_fig(df) -dsr_bids_fig = generate_dsr_bids_fig(df) +dsr_fig = generate_dsr_fig(df) dsr_commands_fig = generate_dsr_commands_fig(df) layout = html.Div( @@ -93,10 +93,10 @@ html.Div( style={"width": "48%"}, children=[ - html.H1("DSR Bids and Offers"), + html.H1("Demand Side Response"), dcc.Graph( - id="table-dsr-bids", - figure=dsr_bids_fig, + id="graph-dsr", + figure=dsr_fig, style={"height": "40vh"}, ), ], @@ -144,13 +144,13 @@ def update_data(n_intervals): # type: ignore # noqa balancing_market_fig = generate_balancing_market_fig(new_df_opal) energy_deficit_fig = generate_energy_deficit_fig(new_df_opal) intraday_market_bids_fig = generate_intraday_market_bids_fig(new_df_opal) - dsr_bids_fig = generate_dsr_bids_fig(new_df_dsr) + dsr_fig = generate_dsr_fig(new_df_dsr) dsr_commands_fig = generate_dsr_commands_fig(new_df_opal) return ( intraday_market_sys_fig, balancing_market_fig, energy_deficit_fig, intraday_market_bids_fig, - dsr_bids_fig, + dsr_fig, dsr_commands_fig, )