Skip to content

Commit

Permalink
Update transmonee.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy-Reidy committed Jul 3, 2024
1 parent f8c58d7 commit 128427b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dash_service/pages/transmonee.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ def get_base_layout(**kwargs):
),
dbc.Col(
html.Div([
html.P("Chart type:", style={"margin-bottom": "10px", "margin-top": "5px"}),
html.P("View:", style={"margin-bottom": "10px", "margin-top": "5px"}),
dbc.RadioItems(
id={
"type": "area_types",
Expand Down Expand Up @@ -2634,15 +2634,15 @@ def fig_options(indicator):
# Check if the indicator has is string type and give only bar and map as options
if indicator_config and nominal_data(indicator_config):
area_types = [
{"label": "Bar", "value": "count_bar"},
{"label": "Map", "value": "map"},
{"label": "Latest data", "value": "count_bar"},
{"label": "Map of data", "value": "map"},
]
default_graph = "map"
else:
area_types = [
{"label": "Bar", "value": "bar"},
{"label": "Line", "value": "line"},
{"label": "Map", "value": "map"},
{"label": "Latest data", "value": "bar"},
{"label": "Trend data", "value": "line"},
{"label": "Map of data", "value": "map"},
]
default_graph = "bar"

Expand Down

0 comments on commit 128427b

Please sign in to comment.