generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanalytics-dashboard.component.html
More file actions
189 lines (186 loc) · 8.29 KB
/
analytics-dashboard.component.html
File metadata and controls
189 lines (186 loc) · 8.29 KB
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
<div class="top-container" style="overflow-y: hidden;">
<div class="container">
<div class="title-container">
<form #alyticsForm="ngForm">
<!-- Page title and subtitle-->
<div>
<h1 class="text-muted mb-0">Dashboard</h1>
<div class="dashboard-subtitle mb-0">Manage and track FOM information usage</div>
</div>
<!-- Filters -->
<div class="filter-div">
<div class="form-group me-2">
<label for="startDate">Start date</label>
<div class="input-group">
<input
#startDatePicker="bsDatepicker"
id="startDate"
name="startDate"
readonly
type="text"
(keydown)="$event.preventDefault()"
class="form-control readonly-normal"
placeholder="YYYY-MM-DD"
bsDatepicker
[minDate]="minDate"
[maxDate]="maxDate"
[(ngModel)]="startDate"
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD', containerClass: 'theme-dark-blue', showWeekNumbers: false }"
(bsValueChange)="onDateChange('startDate', $event)"
/>
<div class="input-group-append">
<button
class="btn btn-icon" type="button" tabindex="-1" (click)="startDatePicker.show()"
[attr.aria-expanded]="startDatePicker.isOpen">
<em class="material-icons">date_range</em>
</button>
</div>
</div>
</div>
<div class="form-group me-2">
<label for="endDate">End date</label>
<div class="input-group">
<input
#endDatePicker="bsDatepicker"
id="endDate"
name="endDate"
type="text"
(keydown)="$event.preventDefault()"
class="form-control readonly-normal"
placeholder="YYYY-MM-DD"
bsDatepicker
[minDate]="minDate"
[maxDate]="maxDate"
[(ngModel)]="endDate"
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD', containerClass: 'theme-dark-blue', showWeekNumbers: false }"
(bsValueChange)="onDateChange('endDate', $event)"
/>
<div class="input-group-append">
<button
class="btn btn-icon" type="button" tabindex="-1" (click)="endDatePicker.show()"
[attr.aria-expanded]="endDatePicker.isOpen">
<em class="material-icons">date_range</em>
</button>
</div>
</div>
</div>
<div class="form-group">
<label for="plan-select">Show</label>
<select id="plan-select" class="form-control" name="plan-select"
[(ngModel)]="selectedPlan"
(ngModelChange)="onPlanFilterChange($event)">
<option *ngFor="let opt of planFilterOptions" [value]="opt.value">{{ opt.label }}</option>
</select>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="bottom-container">
<!-- Public Engagement Overview -->
<div class="container pb-0" id="public-engagement-overview">
<div class="row"><p>Public Engagement Overview</p></div>
<div class="row">
<div class="grid-1-3">
<div class="total-fom-box">
<div class="total-fom-content-box">
<div class="total-fom-content-title">
Total FOMs published for public comments
</div>
<div class="total-fom-content-value">
{{ analyticsData()?.nonInitialPublishedProjectCount || 0 }}
</div>
</div>
</div>
<div style="height: 100%;">
<apx-chart
#commentsByResponseCodeChart
[series]="commentsByResponseCodeChartOptions.series"
[chart]="commentsByResponseCodeChartOptions.chart"
[dataLabels]="commentsByResponseCodeChartOptions.dataLabels"
[plotOptions]="commentsByResponseCodeChartOptions.plotOptions"
[xaxis]="commentsByResponseCodeChartOptions.xaxis"
[yaxis]="commentsByResponseCodeChartOptions.yaxis"
[fill]="commentsByResponseCodeChartOptions.fill"
[title]="commentsByResponseCodeChartOptions.title"
[theme]="commentsByResponseCodeChartOptions.theme"
></apx-chart>
</div>
</div>
<div>
<div id="most-commented-foms" class="mt-3">
<apx-chart
#topCommentedProjectsChart
[series]="topCommentedProjectsChartOptions.series"
[chart]="topCommentedProjectsChartOptions.chart"
[dataLabels]="topCommentedProjectsChartOptions.dataLabels"
[plotOptions]="topCommentedProjectsChartOptions.plotOptions"
[xaxis]="topCommentedProjectsChartOptions.xaxis"
[yaxis]="topCommentedProjectsChartOptions.yaxis"
[theme]="topCommentedProjectsChartOptions.theme"
[fill]="topCommentedProjectsChartOptions.fill"
[title]="topCommentedProjectsChartOptions.title"
[grid]="topCommentedProjectsChartOptions.grid"
></apx-chart>
</div>
</div>
</div>
</div>
<!-- District-level insights -->
<div class="container pb-0" id="district-level-insights">
<div class="row"><p>District-level insights</p></div>
<div class="row">
<div>
<div id="foms-by-district" class="mt-3">
<apx-chart
#fomsCountByDistrictChart
[series]="fomsCountByDistrictChartOptions.series"
[chart]="fomsCountByDistrictChartOptions.chart"
[dataLabels]="fomsCountByDistrictChartOptions.dataLabels"
[plotOptions]="fomsCountByDistrictChartOptions.plotOptions"
[xaxis]="fomsCountByDistrictChartOptions.xaxis"
[yaxis]="fomsCountByDistrictChartOptions.yaxis"
[theme]="fomsCountByDistrictChartOptions.theme"
[fill]="fomsCountByDistrictChartOptions.fill"
[title]="fomsCountByDistrictChartOptions.title"
[grid]="fomsCountByDistrictChartOptions.grid"
></apx-chart>
</div>
</div>
</div>
</div>
<!-- Forest client activity -->
<div class="container pb-0" id="forest-client-activity">
<div class="row"><p>Forest client activity</p></div>
<div class="unique-fc-box">
<div>Unique forest clients submitting FOMs</div>
<div class="unique-fc-vtxt">
{{ analyticsData()?.uniqueForestClientCount || 0 }}
</div>
</div>
<div id="foms-by-forest-client" class="mt-3">
<div class="mb-2" style="width: 20%;">
<label for="fc-select">Show</label>
<select id="fc-select" class="form-control" name="fc-select"
[(ngModel)]="selectedFcLimit"
(ngModelChange)="onFcLimitChange($event)">
<option *ngFor="let opt of fcLimitOptions" [value]="opt.value">{{ opt.label }}</option>
</select>
</div>
<apx-chart
#fomsCountByForestClientChart
[series]="fomsCountByForestClientChartOptions.series"
[chart]="fomsCountByForestClientChartOptions.chart"
[dataLabels]="fomsCountByForestClientChartOptions.dataLabels"
[plotOptions]="fomsCountByForestClientChartOptions.plotOptions"
[xaxis]="fomsCountByForestClientChartOptions.xaxis"
[yaxis]="fomsCountByForestClientChartOptions.yaxis"
[theme]="fomsCountByForestClientChartOptions.theme"
[fill]="fomsCountByForestClientChartOptions.fill"
[title]="fomsCountByForestClientChartOptions.title"
[grid]="fomsCountByForestClientChartOptions.grid"
></apx-chart>
</div>
</div>
</div>