Skip to content

Commit

Permalink
for vacancies time chart comment divide the number of pieces of data …
Browse files Browse the repository at this point in the history
…by 12 since that data is in months
  • Loading branch information
pauljamesdfe committed Jan 30, 2025
1 parent db0cf4e commit 7479a0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,11 @@ server <- function(input, output, session) {
} else {
paste0(
" in the last ",
nrow(currentArea) - 1, # count number of years of change
if (input$splashMetric == "vacancies") {
round(((nrow(currentArea) - 1) / 12))
} else {
nrow(currentArea) - 1
}, # count number of years of change
" years."
)
}
Expand Down

0 comments on commit 7479a0e

Please sign in to comment.