-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.qmd
208 lines (146 loc) · 4.9 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
---
title: "MyNorfolk Requests"
logo: assets/city-of-norfolk.png
format: dashboard
theme:
- cosmo
- assets/styles/custom.scss
- assets/styles/quarto.scss
resources:
- assets/city-of-norfolk.png
execute:
echo: false
---
```{r setup, include = FALSE}
library(dplyr)
library(ggplot2)
library(forcats)
library(targets)
tar_source("R/formatting.R")
```
# Today
```{r load-targets-today}
#| include: false
tar_load(c(today_stats, today_plots))
```
## Row
::: {.valuebox icon="arrow-repeat" color="vb-warning"}
In Progress
`r number(today_stats$n_in_progress_total)`
`r change(0, today_stats$n_in_progress_new, when = "were started today", more = NULL, less = NULL)`
:::
::: {.valuebox icon="plus-circle" color="vb-info"}
Opened
`r number(today_stats$n_opened)`
`r change(today_stats$n_opened_yesterday, today_stats$n_opened, when = "yesterday")`
:::
::: {.valuebox icon="check-circle" color="vb-success"}
Closed
`r number(today_stats$n_closed)`
`r change(today_stats$n_closed_yesterday, today_stats$n_closed, when = "yesterday")`
:::
::: {.valuebox icon="x-circle" color="vb-danger"}
Cancelled
`r number(today_stats$n_cancelled)`
`r change(today_stats$n_cancelled_yesterday, today_stats$n_cancelled, when = "yesterday")`
:::
## Row
### Column {.tabset width="50%"}
```{r today-top-new-requests}
#| title: Top New Requests
today_plots$top_new_requests
```
```{r today-top-in-progress}
#| title: Top In Progress
#| caption: These things are in progress right now.
today_plots$top_in_progress
```
```{r today-top-closed}
#| title: Top Closed Today
today_plots$top_closed
```
### Column
```{r today-opened-by-hour}
#| title: Opened by Hour of Day
today_plots$opened_by_hour
```
```{r today-resolved-by-hour}
#| title: Resolved by Hour of Day
today_plots$resolved_by_hour
```
# Week
```{r load-targets-week}
#| include: false
tar_load(c(week_stats, week_plots))
```
## Row
::: {.valuebox icon="arrow-repeat" color="vb-warning"}
In Progress
`r number(today_stats$n_in_progress_total)`
`r change(0, week_stats$n_started, when = "were started this week", more = NULL, less = NULL)`
:::
::: {.valuebox icon="plus-circle" color="vb-info"}
Opened
`r number(week_stats$n_opened)`
`r change(week_stats$n_opened_prev, week_stats$n_opened, when = "last week")`
:::
::: {.valuebox icon="check-circle" color="vb-success"}
Closed
`r number(week_stats$n_closed)`
`r change(week_stats$n_closed_prev, week_stats$n_closed, when = "last week")`
:::
::: {.valuebox icon="x-circle" color="vb-danger"}
Cancelled
`r number(week_stats$n_cancelled)`
`r change(week_stats$n_cancelled_prev, week_stats$n_cancelled, when = "last week")`
:::
## Row
### Column {.tabset width="50%"}
```{r week-top-new-requests}
#| title: Top New Requests
week_plots$top_new_requests
```
```{r week-top-in-progress}
#| title: Top In Progress
#| caption: These things are in progress right now.
week_plots$top_in_progress
```
```{r week-top-closed}
#| title: Top Closed This Week
week_plots$top_closed
```
### Column
```{r week-opened-by-hour}
#| title: Opened by Hour of Day
week_plots$opened_by_hour
```
```{r week-resolved-by-hour}
#| title: Resolved by Hour of Day
week_plots$resolved_by_hour
```
# About
## Row {.flow}
::: card
::: card-header
About MyNorfolk
:::
::: card-body
This dashboard is a demo of Quarto dashboards and **is not affiliated** with the city of Norfolk.
[MyNorfolk](https://www.mynorfolk.org/#/homepage) is a service that allows residents of [the City of Norfolk](https://www.norfolk.gov/) to request services online from their computer or mobile device.
The data used in this dashboard is available on the [Norfolk Open Data Portal](https://data.norfolk.gov/Government/MyNorfolk/nbyu-xjez).
> This dataset provides data from MyNorfolk, a citizen services portal that delegates and tracks requests and questions about the city of Norfolk and the services we provide to our residents, businesses, and visitors. Data for the service requests is collected from phone calls, emails, an app for smart phones and on-line. The portal is managed by the Norfolk Cares Center; its mission is to provide a single point of contact for visitors, residents, businesses and city staff to request a city service, report a concern, seek information about Norfolk, or follow-up on a previous request for service.
>
> **Disclaimer** - With the current process in place, not all tickets are closed automatically. There could be tickets shown as open in this dataset that are closed in our other systems. We are working to address the issue.
:::
:::
::: card
::: card-header
About this dashboard
:::
::: card-body
This dashboard is built with [Quarto Dashboards](https://quarto.org/docs/dashboards/),
a new output format to be released in [Quarto 1.4](https://quarto.org/docs/download/prerelease.html).
The dashboard is updated regularly and published on [Quarto Pubs](https://quartopub.com/).
[<i class="bi bi-github"></i> Source code](https://github.com/gadenbuie/mynorfolk-dash)
:::
:::