@byu-oit/vue-decision-processing-components 8.35.8 → 8.35.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +40 -50
- package/.repo-meta.yml +55 -55
- package/AdmitPeriodConfig.vue +115 -115
- package/ApiCallButton.vue +91 -91
- package/ApplicantInfo.vue +100 -100
- package/AssignmentBulkDialog.vue +153 -153
- package/AssignmentDialog.vue +117 -117
- package/AssignmentSummary.vue +75 -75
- package/BackgroundBadge.vue +83 -83
- package/BackgroundDetailCrime.vue +78 -78
- package/BackgroundDetailPluralMarriage.vue +43 -43
- package/BackgroundDetailSexRegistry.vue +43 -43
- package/BackgroundDetailUniversity.vue +37 -37
- package/CHANGELOG.md +676 -676
- package/Dashboard.vue +201 -201
- package/DashboardApplicationList.vue +50 -50
- package/DecisionDialog.vue +178 -178
- package/Details.vue +124 -124
- package/DetailsActivity.vue +59 -59
- package/DetailsBackground.vue +143 -143
- package/DetailsBackgroundDetail.vue +47 -47
- package/DetailsBackgroundSummary.vue +66 -66
- package/DetailsCesHold.vue +107 -107
- package/DetailsCollege.vue +93 -93
- package/DetailsContact.vue +65 -65
- package/DetailsDecision.vue +183 -183
- package/DetailsDecisionHistory.vue +56 -56
- package/DetailsEndorsement.vue +74 -74
- package/DetailsEssay.vue +59 -59
- package/DetailsFilenote.vue +62 -62
- package/DetailsFilenoteList.vue +109 -109
- package/DetailsFlagSection.vue +176 -176
- package/DetailsHeader.vue +263 -263
- package/DetailsHighSchool.vue +99 -99
- package/DetailsHsTranscript.vue +100 -100
- package/DetailsInstitute.vue +90 -90
- package/DetailsMission.vue +88 -88
- package/DetailsNewAppHistory.vue +50 -50
- package/DetailsNotes.vue +83 -83
- package/DetailsPathway.vue +45 -45
- package/DetailsScoringSection.vue +128 -128
- package/DetailsSection.vue +116 -116
- package/DetailsSeminary.vue +184 -184
- package/DetailsSrs.vue +52 -52
- package/DetailsSubnav.vue +54 -54
- package/DetailsTestScores.vue +131 -131
- package/ExpandIndicator.vue +75 -75
- package/ExternalLink.vue +34 -34
- package/FilterBreadcrumb.vue +85 -85
- package/FilterButton.vue +86 -86
- package/FilterButtonAdmitPeriod.vue +104 -104
- package/FilterButtonAppType.vue +103 -103
- package/FilterButtonAssignedTo.vue +96 -96
- package/FilterButtonClearFilters.vue +65 -65
- package/FilterButtonSex.vue +105 -105
- package/FlagButton.vue +59 -59
- package/FlagDialog.vue +129 -129
- package/Footer.vue +432 -432
- package/Header.vue +132 -132
- package/HighSchoolSummary.vue +60 -60
- package/InternationalIndicator.vue +44 -44
- package/InternationalStatus.vue +48 -48
- package/LICENSE +201 -201
- package/LoadingBadge.vue +58 -58
- package/ManageAssignments.vue +123 -123
- package/NoAuth.vue +14 -14
- package/NoteDialog.vue +106 -106
- package/ObjectViewer.vue +49 -49
- package/Queues.vue +278 -268
- package/QuickLinks.vue +25 -25
- package/README.md +2 -2
- package/RecentApplications.vue +53 -53
- package/Report.vue +340 -340
- package/ReportDetail.vue +279 -279
- package/ReportList.vue +87 -87
- package/ReportPhotos.vue +65 -65
- package/ReportSvg.vue +78 -78
- package/ReportViewer.vue +165 -165
- package/RequestAccess.vue +14 -14
- package/RequestAccessList.vue +45 -45
- package/RoleSelector.vue +29 -29
- package/Search.vue +22 -22
- package/ShowApplicantIds.vue +100 -100
- package/SortableHeader.vue +53 -53
- package/Spinner.vue +34 -34
- package/StarredIndicator.vue +36 -36
- package/StatBox.vue +73 -73
- package/StatCharts.vue +196 -196
- package/SupportDialog.vue +172 -172
- package/UserInfo.vue +52 -52
- package/YesNoIndicator.vue +48 -48
- package/dateTimeFormat.js +67 -67
- package/gpaCalculation.js +162 -162
- package/gpaFilter.js +5 -5
- package/hsSummary.json +2019 -2019
- package/package.json +38 -36
- package/parsers/application.js +396 -396
- package/parsers/decisionHistory.js +27 -27
- package/parsers/filenotes.js +27 -27
- package/parsers/notes.js +49 -49
- package/parsers/packet.js +88 -88
- package/parsers/packetList.js +57 -57
- package/parsers/reports.js +13 -13
- package/sat2Act.js +46 -46
- package/test.js +48 -48
- package/themes/ByuiFooter.vue +38 -38
- package/themes/ByuiHeader.vue +96 -96
- package/themes/LdsbcFooter.vue +38 -38
- package/themes/LdsbcHeader.vue +100 -100
- package/vuexModules/application/activity.js +32 -32
- package/vuexModules/application/applicationList.js +71 -71
- package/vuexModules/application/background.js +47 -47
- package/vuexModules/application/bio.js +38 -38
- package/vuexModules/application/citizenship.js +30 -30
- package/vuexModules/application/collegeSummaries.js +32 -32
- package/vuexModules/application/essay.js +26 -26
- package/vuexModules/application/highSchoolSummaries.js +40 -40
- package/vuexModules/application/index.js +157 -157
- package/vuexModules/application/institute.js +30 -30
- package/vuexModules/application/mission.js +48 -48
- package/vuexModules/application/personalRecords.js +24 -24
- package/vuexModules/application/questions.js +23 -23
- package/vuexModules/application/seminary.js +39 -39
- package/vuexModules/application/testScores.js +26 -26
- package/vuexModules/notes/index.js +22 -22
- package/vuexModules/packet/decision.js +43 -43
- package/vuexModules/packet/decisionHistory.js +28 -28
- package/vuexModules/packet/flags.js +174 -174
- package/vuexModules/packet/index.js +52 -52
- package/vuexModules/packet/packetList.js +127 -127
- package/vuexModules/packet/processes.js +28 -28
- package/vuexModules/reports/index.js +32 -32
- package/vuexModules/ui/index.js +56 -56
- package/vuexModules/users/index.js +46 -46
- package/yyyyMmFilter.js +7 -7
package/StatCharts.vue
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2018 Brigham Young University
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
<template>
|
|
17
|
-
<div class="chart-container">
|
|
18
|
-
<h3>Trend Analysis</h3>
|
|
19
|
-
<svg class="chart" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60" preserveAspectRatio="none">
|
|
20
|
-
<defs>
|
|
21
|
-
<linearGradient id="bgGradient" x1="0" x2="0" y1="0" y2="1">
|
|
22
|
-
<stop offset="0%" stop-color="#e0e1e2" />
|
|
23
|
-
<stop offset="25%" stop-color="#ffffff" stop-opacity="0" />
|
|
24
|
-
</linearGradient>
|
|
25
|
-
</defs>
|
|
26
|
-
<rect x="0" y="0" width="100" height="60" fill="url(#bgGradient)" />
|
|
27
|
-
<g transform="scale(1, 0.9) translate(0, 2)">
|
|
28
|
-
<line x1="0" x2="100" y1="60" y2="60" stroke-dasharray="0.2 0.1" class="tick" />
|
|
29
|
-
<text x="4" y="60" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">0</text>
|
|
30
|
-
|
|
31
|
-
<line x1="0" x2="100" y1="55.38461538461539" y2="55.38461538461539" stroke-dasharray="0.2 0.1" class="tick" />
|
|
32
|
-
<text x="4" y="55.38461538461539" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">2</text>
|
|
33
|
-
|
|
34
|
-
<line x1="0" x2="100" y1="50.76923076923077" y2="50.76923076923077" stroke-dasharray="0.2 0.1" class="tick" />
|
|
35
|
-
<text x="4" y="50.76923076923077" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">4</text>
|
|
36
|
-
|
|
37
|
-
<line x1="0" x2="100" y1="46.15384615384615" y2="46.15384615384615" stroke-dasharray="0.2 0.1" class="tick" />
|
|
38
|
-
<text x="4" y="46.15384615384615" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">6</text>
|
|
39
|
-
|
|
40
|
-
<line x1="0" x2="100" y1="41.53846153846153" y2="41.53846153846153" stroke-dasharray="0.2 0.1" class="tick" />
|
|
41
|
-
<text x="4" y="41.53846153846153" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">8</text>
|
|
42
|
-
|
|
43
|
-
<line x1="0" x2="100" y1="36.92307692307692" y2="36.92307692307692" stroke-dasharray="0.2 0.1" class="tick" />
|
|
44
|
-
<text x="4" y="36.92307692307692" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">10</text>
|
|
45
|
-
|
|
46
|
-
<line x1="0" x2="100" y1="32.30769230769231" y2="32.30769230769231" stroke-dasharray="0.2 0.1" class="tick" />
|
|
47
|
-
<text x="4" y="32.30769230769231" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">12</text>
|
|
48
|
-
|
|
49
|
-
<line x1="0" x2="100" y1="27.692307692307693" y2="27.692307692307693" stroke-dasharray="0.2 0.1" class="tick" />
|
|
50
|
-
<text x="4" y="27.692307692307693" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">14</text>
|
|
51
|
-
|
|
52
|
-
<line x1="0" x2="100" y1="23.076923076923073" y2="23.076923076923073" stroke-dasharray="0.2 0.1" class="tick" />
|
|
53
|
-
<text x="4" y="23.076923076923073" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">16</text>
|
|
54
|
-
|
|
55
|
-
<line x1="0" x2="100" y1="18.46153846153846" y2="18.46153846153846" stroke-dasharray="0.2 0.1" class="tick" />
|
|
56
|
-
<text x="4" y="18.46153846153846" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">18</text>
|
|
57
|
-
|
|
58
|
-
<line x1="0" x2="100" y1="13.846153846153847" y2="13.846153846153847" stroke-dasharray="0.2 0.1" class="tick" />
|
|
59
|
-
<text x="4" y="13.846153846153847" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">20</text>
|
|
60
|
-
|
|
61
|
-
<line x1="0" x2="100" y1="9.230769230769234" y2="9.230769230769234" stroke-dasharray="0.2 0.1" class="tick" />
|
|
62
|
-
<text x="4" y="9.230769230769234" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">22</text>
|
|
63
|
-
|
|
64
|
-
<line x1="0" x2="100" y1="4.615384615384613" y2="4.615384615384613" stroke-dasharray="0.2 0.1" class="tick" />
|
|
65
|
-
<text x="4" y="4.615384615384613" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">24</text>
|
|
66
|
-
|
|
67
|
-
<line x1="0" x2="100" y1="0" y2="0" stroke-dasharray="0.2 0.1" class="tick" />
|
|
68
|
-
<text x="4" y="0" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">26</text>
|
|
69
|
-
</g>
|
|
70
|
-
<g transform="scale(0.9, 1) translate(10, 0)">
|
|
71
|
-
<text class="tick-label" x="3.2374100719424455" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 4</text>
|
|
72
|
-
|
|
73
|
-
<text class="tick-label" x="10.431654676258992" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 5</text>
|
|
74
|
-
|
|
75
|
-
<text class="tick-label" x="17.62589928057554" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 6</text>
|
|
76
|
-
|
|
77
|
-
<text class="tick-label" x="24.820143884892087" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 7</text>
|
|
78
|
-
|
|
79
|
-
<text class="tick-label" x="32.01438848920863" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 8</text>
|
|
80
|
-
|
|
81
|
-
<text class="tick-label" x="39.20863309352518" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 9</text>
|
|
82
|
-
|
|
83
|
-
<text class="tick-label" x="46.40287769784173" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 10</text>
|
|
84
|
-
|
|
85
|
-
<text class="tick-label" x="53.59712230215827" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 11</text>
|
|
86
|
-
|
|
87
|
-
<text class="tick-label" x="60.79136690647482" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 12</text>
|
|
88
|
-
|
|
89
|
-
<text class="tick-label" x="67.98561151079136" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 13</text>
|
|
90
|
-
|
|
91
|
-
<text class="tick-label" x="75.1798561151079" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 14</text>
|
|
92
|
-
|
|
93
|
-
<text class="tick-label" x="82.37410071942446" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 15</text>
|
|
94
|
-
|
|
95
|
-
<text class="tick-label" x="89.568345323741" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 16</text>
|
|
96
|
-
|
|
97
|
-
<text class="tick-label" x="96.76258992805754" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 17</text>
|
|
98
|
-
</g>
|
|
99
|
-
<g transform="scale(0.9) translate(10, 2)">
|
|
100
|
-
<rect class="bar" x="0.3597122302158269" y="11.53846153846154" width="5.755395683453237" height="48.46153846153846"/>
|
|
101
|
-
<text class="bar-label" x="3.2374100719424455" y="11.53846153846154" dy="2" text-anchor="middle" font-size="1.4">21</text>
|
|
102
|
-
|
|
103
|
-
<rect class="bar" x="7.553956834532373" y="30" width="5.755395683453237" height="30"/>
|
|
104
|
-
<text class="bar-label" x="10.431654676258992" y="30" dy="2" text-anchor="middle" font-size="1.4">13</text>
|
|
105
|
-
|
|
106
|
-
<rect class="bar" x="14.74820143884892" y="32.30769230769231" width="5.755395683453237" height="27.692307692307693"/>
|
|
107
|
-
<text class="bar-label" x="17.62589928057554" y="32.30769230769231" dy="2" text-anchor="middle" font-size="1.4">12</text>
|
|
108
|
-
|
|
109
|
-
<rect class="bar" x="21.942446043165468" y="11.53846153846154" width="5.755395683453237" height="48.46153846153846"/>
|
|
110
|
-
<text class="bar-label" x="24.820143884892087" y="11.53846153846154" dy="2" text-anchor="middle" font-size="1.4">21</text>
|
|
111
|
-
|
|
112
|
-
<rect class="bar" x="29.136690647482013" y="0" width="5.755395683453237" height="60"/>
|
|
113
|
-
<text class="bar-label" x="32.01438848920863" y="0" dy="2" text-anchor="middle" font-size="1.4">26</text>
|
|
114
|
-
|
|
115
|
-
<rect class="bar" x="36.33093525179856" y="9.230769230769234" width="5.755395683453237" height="50.76923076923077"/>
|
|
116
|
-
<text class="bar-label" x="39.20863309352518" y="9.230769230769234" dy="2" text-anchor="middle" font-size="1.4">22</text>
|
|
117
|
-
|
|
118
|
-
<rect class="bar" x="43.52517985611511" y="11.53846153846154" width="5.755395683453237" height="48.46153846153846"/>
|
|
119
|
-
<text class="bar-label" x="46.40287769784173" y="11.53846153846154" dy="2" text-anchor="middle" font-size="1.4">21</text>
|
|
120
|
-
|
|
121
|
-
<rect class="bar" x="50.719424460431654" y="18.46153846153846" width="5.755395683453237" height="41.53846153846154"/>
|
|
122
|
-
<text class="bar-label" x="53.59712230215827" y="18.46153846153846" dy="2" text-anchor="middle" font-size="1.4">18</text>
|
|
123
|
-
|
|
124
|
-
<rect class="bar" x="57.9136690647482" y="30" width="5.755395683453237" height="30"/>
|
|
125
|
-
<text class="bar-label" x="60.79136690647482" y="30" dy="2" text-anchor="middle" font-size="1.4">13</text>
|
|
126
|
-
|
|
127
|
-
<rect class="bar" x="65.10791366906474" y="18.46153846153846" width="5.755395683453237" height="41.53846153846154"/>
|
|
128
|
-
<text class="bar-label" x="67.98561151079136" y="18.46153846153846" dy="2" text-anchor="middle" font-size="1.4">18</text>
|
|
129
|
-
|
|
130
|
-
<rect class="bar" x="72.30215827338128" y="0" width="5.755395683453237" height="60"/>
|
|
131
|
-
<text class="bar-label" x="75.1798561151079" y="0" dy="2" text-anchor="middle" font-size="1.4">26</text>
|
|
132
|
-
|
|
133
|
-
<rect class="bar" x="79.49640287769785" y="32.30769230769231" width="5.755395683453237" height="27.692307692307693"/>
|
|
134
|
-
<text class="bar-label" x="82.37410071942446" y="32.30769230769231" dy="2" text-anchor="middle" font-size="1.4">12</text>
|
|
135
|
-
|
|
136
|
-
<rect class="bar" x="86.69064748201438" y="23.076923076923073" width="5.755395683453237" height="36.92307692307693"/>
|
|
137
|
-
<text class="bar-label" x="89.568345323741" y="23.076923076923073" dy="2" text-anchor="middle" font-size="1.4">16</text>
|
|
138
|
-
|
|
139
|
-
<rect class="bar" x="93.88489208633092" y="23.076923076923073" width="5.755395683453237" height="36.92307692307693"/>
|
|
140
|
-
<text class="bar-label" x="96.76258992805754" y="23.076923076923073" dy="2" text-anchor="middle" font-size="1.4">16</text>
|
|
141
|
-
</g>
|
|
142
|
-
</svg>
|
|
143
|
-
|
|
144
|
-
</div>
|
|
145
|
-
</template>
|
|
146
|
-
<script>
|
|
147
|
-
const buildChartPath = (data) => {
|
|
148
|
-
const start = "M0.2,49.8"
|
|
149
|
-
const end = "L99.8,49.8 Z"
|
|
150
|
-
const xoff = 99.6 / (data.length - 1)
|
|
151
|
-
const maxVal = Math.max(...data)
|
|
152
|
-
const yscale = (voff => v => 50 - voff * v)(49.6 / maxVal)
|
|
153
|
-
const points = data.map((v, i) => `L${0.2+xoff*i},${yscale(v)}`)
|
|
154
|
-
return [start, ...points, end].join(' ')
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export default {
|
|
158
|
-
name: 'StatCharts',
|
|
159
|
-
computed: {
|
|
160
|
-
admit () {
|
|
161
|
-
return [1,2,3,4,5,6,7].map(v => Math.floor(Math.random() * 120))
|
|
162
|
-
},
|
|
163
|
-
apply () {
|
|
164
|
-
return [1,2,3,4,5,6,7].map(v => Math.floor(Math.random() * 120))
|
|
165
|
-
},
|
|
166
|
-
admitPath () {
|
|
167
|
-
return buildChartPath(this.admit)
|
|
168
|
-
},
|
|
169
|
-
applyPath () {
|
|
170
|
-
return buildChartPath(this.apply)
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
</script>
|
|
175
|
-
<style scoped>
|
|
176
|
-
.chart {
|
|
177
|
-
width: 100%;
|
|
178
|
-
}
|
|
179
|
-
.bar{
|
|
180
|
-
fill: #30495f;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.tick {
|
|
184
|
-
stroke: #ccc;
|
|
185
|
-
stroke-width: 0.2;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.tick-label {
|
|
189
|
-
font-family: "Helvetica Nue", Arial, sans-serif;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.bar-label {
|
|
193
|
-
font-family: "Helvetica Nue", Arial, sans-serif;
|
|
194
|
-
fill: white;
|
|
195
|
-
}
|
|
196
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
Copyright 2018 Brigham Young University
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
<template>
|
|
17
|
+
<div class="chart-container">
|
|
18
|
+
<h3>Trend Analysis</h3>
|
|
19
|
+
<svg class="chart" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60" preserveAspectRatio="none">
|
|
20
|
+
<defs>
|
|
21
|
+
<linearGradient id="bgGradient" x1="0" x2="0" y1="0" y2="1">
|
|
22
|
+
<stop offset="0%" stop-color="#e0e1e2" />
|
|
23
|
+
<stop offset="25%" stop-color="#ffffff" stop-opacity="0" />
|
|
24
|
+
</linearGradient>
|
|
25
|
+
</defs>
|
|
26
|
+
<rect x="0" y="0" width="100" height="60" fill="url(#bgGradient)" />
|
|
27
|
+
<g transform="scale(1, 0.9) translate(0, 2)">
|
|
28
|
+
<line x1="0" x2="100" y1="60" y2="60" stroke-dasharray="0.2 0.1" class="tick" />
|
|
29
|
+
<text x="4" y="60" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">0</text>
|
|
30
|
+
|
|
31
|
+
<line x1="0" x2="100" y1="55.38461538461539" y2="55.38461538461539" stroke-dasharray="0.2 0.1" class="tick" />
|
|
32
|
+
<text x="4" y="55.38461538461539" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">2</text>
|
|
33
|
+
|
|
34
|
+
<line x1="0" x2="100" y1="50.76923076923077" y2="50.76923076923077" stroke-dasharray="0.2 0.1" class="tick" />
|
|
35
|
+
<text x="4" y="50.76923076923077" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">4</text>
|
|
36
|
+
|
|
37
|
+
<line x1="0" x2="100" y1="46.15384615384615" y2="46.15384615384615" stroke-dasharray="0.2 0.1" class="tick" />
|
|
38
|
+
<text x="4" y="46.15384615384615" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">6</text>
|
|
39
|
+
|
|
40
|
+
<line x1="0" x2="100" y1="41.53846153846153" y2="41.53846153846153" stroke-dasharray="0.2 0.1" class="tick" />
|
|
41
|
+
<text x="4" y="41.53846153846153" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">8</text>
|
|
42
|
+
|
|
43
|
+
<line x1="0" x2="100" y1="36.92307692307692" y2="36.92307692307692" stroke-dasharray="0.2 0.1" class="tick" />
|
|
44
|
+
<text x="4" y="36.92307692307692" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">10</text>
|
|
45
|
+
|
|
46
|
+
<line x1="0" x2="100" y1="32.30769230769231" y2="32.30769230769231" stroke-dasharray="0.2 0.1" class="tick" />
|
|
47
|
+
<text x="4" y="32.30769230769231" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">12</text>
|
|
48
|
+
|
|
49
|
+
<line x1="0" x2="100" y1="27.692307692307693" y2="27.692307692307693" stroke-dasharray="0.2 0.1" class="tick" />
|
|
50
|
+
<text x="4" y="27.692307692307693" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">14</text>
|
|
51
|
+
|
|
52
|
+
<line x1="0" x2="100" y1="23.076923076923073" y2="23.076923076923073" stroke-dasharray="0.2 0.1" class="tick" />
|
|
53
|
+
<text x="4" y="23.076923076923073" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">16</text>
|
|
54
|
+
|
|
55
|
+
<line x1="0" x2="100" y1="18.46153846153846" y2="18.46153846153846" stroke-dasharray="0.2 0.1" class="tick" />
|
|
56
|
+
<text x="4" y="18.46153846153846" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">18</text>
|
|
57
|
+
|
|
58
|
+
<line x1="0" x2="100" y1="13.846153846153847" y2="13.846153846153847" stroke-dasharray="0.2 0.1" class="tick" />
|
|
59
|
+
<text x="4" y="13.846153846153847" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">20</text>
|
|
60
|
+
|
|
61
|
+
<line x1="0" x2="100" y1="9.230769230769234" y2="9.230769230769234" stroke-dasharray="0.2 0.1" class="tick" />
|
|
62
|
+
<text x="4" y="9.230769230769234" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">22</text>
|
|
63
|
+
|
|
64
|
+
<line x1="0" x2="100" y1="4.615384615384613" y2="4.615384615384613" stroke-dasharray="0.2 0.1" class="tick" />
|
|
65
|
+
<text x="4" y="4.615384615384613" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">24</text>
|
|
66
|
+
|
|
67
|
+
<line x1="0" x2="100" y1="0" y2="0" stroke-dasharray="0.2 0.1" class="tick" />
|
|
68
|
+
<text x="4" y="0" dy="-0.3" text-anchor="end" font-size="1.4" class="tick-label">26</text>
|
|
69
|
+
</g>
|
|
70
|
+
<g transform="scale(0.9, 1) translate(10, 0)">
|
|
71
|
+
<text class="tick-label" x="3.2374100719424455" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 4</text>
|
|
72
|
+
|
|
73
|
+
<text class="tick-label" x="10.431654676258992" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 5</text>
|
|
74
|
+
|
|
75
|
+
<text class="tick-label" x="17.62589928057554" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 6</text>
|
|
76
|
+
|
|
77
|
+
<text class="tick-label" x="24.820143884892087" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 7</text>
|
|
78
|
+
|
|
79
|
+
<text class="tick-label" x="32.01438848920863" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 8</text>
|
|
80
|
+
|
|
81
|
+
<text class="tick-label" x="39.20863309352518" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 9</text>
|
|
82
|
+
|
|
83
|
+
<text class="tick-label" x="46.40287769784173" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 10</text>
|
|
84
|
+
|
|
85
|
+
<text class="tick-label" x="53.59712230215827" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 11</text>
|
|
86
|
+
|
|
87
|
+
<text class="tick-label" x="60.79136690647482" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 12</text>
|
|
88
|
+
|
|
89
|
+
<text class="tick-label" x="67.98561151079136" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 13</text>
|
|
90
|
+
|
|
91
|
+
<text class="tick-label" x="75.1798561151079" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 14</text>
|
|
92
|
+
|
|
93
|
+
<text class="tick-label" x="82.37410071942446" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 15</text>
|
|
94
|
+
|
|
95
|
+
<text class="tick-label" x="89.568345323741" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 16</text>
|
|
96
|
+
|
|
97
|
+
<text class="tick-label" x="96.76258992805754" y="60" dy="-1.3" text-anchor="middle" font-size="1.4">May 17</text>
|
|
98
|
+
</g>
|
|
99
|
+
<g transform="scale(0.9) translate(10, 2)">
|
|
100
|
+
<rect class="bar" x="0.3597122302158269" y="11.53846153846154" width="5.755395683453237" height="48.46153846153846"/>
|
|
101
|
+
<text class="bar-label" x="3.2374100719424455" y="11.53846153846154" dy="2" text-anchor="middle" font-size="1.4">21</text>
|
|
102
|
+
|
|
103
|
+
<rect class="bar" x="7.553956834532373" y="30" width="5.755395683453237" height="30"/>
|
|
104
|
+
<text class="bar-label" x="10.431654676258992" y="30" dy="2" text-anchor="middle" font-size="1.4">13</text>
|
|
105
|
+
|
|
106
|
+
<rect class="bar" x="14.74820143884892" y="32.30769230769231" width="5.755395683453237" height="27.692307692307693"/>
|
|
107
|
+
<text class="bar-label" x="17.62589928057554" y="32.30769230769231" dy="2" text-anchor="middle" font-size="1.4">12</text>
|
|
108
|
+
|
|
109
|
+
<rect class="bar" x="21.942446043165468" y="11.53846153846154" width="5.755395683453237" height="48.46153846153846"/>
|
|
110
|
+
<text class="bar-label" x="24.820143884892087" y="11.53846153846154" dy="2" text-anchor="middle" font-size="1.4">21</text>
|
|
111
|
+
|
|
112
|
+
<rect class="bar" x="29.136690647482013" y="0" width="5.755395683453237" height="60"/>
|
|
113
|
+
<text class="bar-label" x="32.01438848920863" y="0" dy="2" text-anchor="middle" font-size="1.4">26</text>
|
|
114
|
+
|
|
115
|
+
<rect class="bar" x="36.33093525179856" y="9.230769230769234" width="5.755395683453237" height="50.76923076923077"/>
|
|
116
|
+
<text class="bar-label" x="39.20863309352518" y="9.230769230769234" dy="2" text-anchor="middle" font-size="1.4">22</text>
|
|
117
|
+
|
|
118
|
+
<rect class="bar" x="43.52517985611511" y="11.53846153846154" width="5.755395683453237" height="48.46153846153846"/>
|
|
119
|
+
<text class="bar-label" x="46.40287769784173" y="11.53846153846154" dy="2" text-anchor="middle" font-size="1.4">21</text>
|
|
120
|
+
|
|
121
|
+
<rect class="bar" x="50.719424460431654" y="18.46153846153846" width="5.755395683453237" height="41.53846153846154"/>
|
|
122
|
+
<text class="bar-label" x="53.59712230215827" y="18.46153846153846" dy="2" text-anchor="middle" font-size="1.4">18</text>
|
|
123
|
+
|
|
124
|
+
<rect class="bar" x="57.9136690647482" y="30" width="5.755395683453237" height="30"/>
|
|
125
|
+
<text class="bar-label" x="60.79136690647482" y="30" dy="2" text-anchor="middle" font-size="1.4">13</text>
|
|
126
|
+
|
|
127
|
+
<rect class="bar" x="65.10791366906474" y="18.46153846153846" width="5.755395683453237" height="41.53846153846154"/>
|
|
128
|
+
<text class="bar-label" x="67.98561151079136" y="18.46153846153846" dy="2" text-anchor="middle" font-size="1.4">18</text>
|
|
129
|
+
|
|
130
|
+
<rect class="bar" x="72.30215827338128" y="0" width="5.755395683453237" height="60"/>
|
|
131
|
+
<text class="bar-label" x="75.1798561151079" y="0" dy="2" text-anchor="middle" font-size="1.4">26</text>
|
|
132
|
+
|
|
133
|
+
<rect class="bar" x="79.49640287769785" y="32.30769230769231" width="5.755395683453237" height="27.692307692307693"/>
|
|
134
|
+
<text class="bar-label" x="82.37410071942446" y="32.30769230769231" dy="2" text-anchor="middle" font-size="1.4">12</text>
|
|
135
|
+
|
|
136
|
+
<rect class="bar" x="86.69064748201438" y="23.076923076923073" width="5.755395683453237" height="36.92307692307693"/>
|
|
137
|
+
<text class="bar-label" x="89.568345323741" y="23.076923076923073" dy="2" text-anchor="middle" font-size="1.4">16</text>
|
|
138
|
+
|
|
139
|
+
<rect class="bar" x="93.88489208633092" y="23.076923076923073" width="5.755395683453237" height="36.92307692307693"/>
|
|
140
|
+
<text class="bar-label" x="96.76258992805754" y="23.076923076923073" dy="2" text-anchor="middle" font-size="1.4">16</text>
|
|
141
|
+
</g>
|
|
142
|
+
</svg>
|
|
143
|
+
|
|
144
|
+
</div>
|
|
145
|
+
</template>
|
|
146
|
+
<script>
|
|
147
|
+
const buildChartPath = (data) => {
|
|
148
|
+
const start = "M0.2,49.8"
|
|
149
|
+
const end = "L99.8,49.8 Z"
|
|
150
|
+
const xoff = 99.6 / (data.length - 1)
|
|
151
|
+
const maxVal = Math.max(...data)
|
|
152
|
+
const yscale = (voff => v => 50 - voff * v)(49.6 / maxVal)
|
|
153
|
+
const points = data.map((v, i) => `L${0.2+xoff*i},${yscale(v)}`)
|
|
154
|
+
return [start, ...points, end].join(' ')
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export default {
|
|
158
|
+
name: 'StatCharts',
|
|
159
|
+
computed: {
|
|
160
|
+
admit () {
|
|
161
|
+
return [1,2,3,4,5,6,7].map(v => Math.floor(Math.random() * 120))
|
|
162
|
+
},
|
|
163
|
+
apply () {
|
|
164
|
+
return [1,2,3,4,5,6,7].map(v => Math.floor(Math.random() * 120))
|
|
165
|
+
},
|
|
166
|
+
admitPath () {
|
|
167
|
+
return buildChartPath(this.admit)
|
|
168
|
+
},
|
|
169
|
+
applyPath () {
|
|
170
|
+
return buildChartPath(this.apply)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
</script>
|
|
175
|
+
<style scoped>
|
|
176
|
+
.chart {
|
|
177
|
+
width: 100%;
|
|
178
|
+
}
|
|
179
|
+
.bar{
|
|
180
|
+
fill: #30495f;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tick {
|
|
184
|
+
stroke: #ccc;
|
|
185
|
+
stroke-width: 0.2;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.tick-label {
|
|
189
|
+
font-family: "Helvetica Nue", Arial, sans-serif;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.bar-label {
|
|
193
|
+
font-family: "Helvetica Nue", Arial, sans-serif;
|
|
194
|
+
fill: white;
|
|
195
|
+
}
|
|
196
|
+
</style>
|