modify growth trends ui

This commit is contained in:
2025-08-02 16:31:40 -04:00
parent 258ba30736
commit 89f9f18ba4
+27 -36
View File
@@ -774,14 +774,11 @@ DTOutput("track_data")
Growth Trends {data-navmenu="Storm Details"} Growth Trends {data-navmenu="Storm Details"}
================================ ================================
Column {data-width=550 .tabset} Column {data-width=550}
------------------------------- -------------------------------
### Growth Map {.no-padding} ### Growth Year {data-height=100}
```{r} ```{r}
# Growth - Growth Map
# TODO: implement data loading
observe({ observe({
req(storm_selection$is_selected) req(storm_selection$is_selected)
@@ -794,6 +791,29 @@ observe({
) )
}) })
sliderInput(
"growth_trend_map_slider",
label = NULL,
min = 1926,
max = 2024,
step = 1,
animate = list(
interval = 250,
loop = F
),
value = 1926,
sep = "",
width = "100%",
ticks = F
)
```
### Growth Map {data-height=700 .no-padding}
```{r}
# Growth - Growth Map
# TODO: implement data loading
growth_counties <- reactive({ growth_counties <- reactive({
req( req(
storm_selection$is_selected, storm_selection$is_selected,
@@ -865,41 +885,12 @@ observe({
) )
}) })
fillCol(
flex = c(.1, .45, .45),
div(
style = "
padding-left: 15px;
padding-right: 15px;
padding-top: 15px;
display: flex;
justify-content: center;
align-itmes: center;
",
sliderInput(
"growth_trend_map_slider",
label = NULL,
min = 1926,
max = 2024,
step = 1,
animate = list(
interval = 250,
loop = F
),
value = 1926,
sep = "",
width = "100%",
ticks = F
)
),
leafletOutput("pop_growth_map", height = "100%"),
leafletOutput("housing_growth_map", height = "100%") leafletOutput("housing_growth_map", height = "100%")
)
``` ```
### Growth Data {.no-padding} ### Map Control {data-height=200}
```{r} ```{r}
# Growth - Growth Data
``` ```
Column {data-width=450} Column {data-width=450}