-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathILL_loans_analysis.jsl
182 lines (170 loc) · 3.67 KB
/
ILL_loans_analysis.jsl
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
//Which titles show up more than once?
Distribution(
Nominal Distribution(
Column( :Loan Title ),
Histogram( 0 ),
Order By( "Count Descending" )
)
);
//Which Departments request the most?
Distribution(
Nominal Distribution(
Column( :Department ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Order By( "Count Descending" )
)
);
//Stacked pareto of requests by department, stacked by year
Graph Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Variables(
X(
:Department,
Order By(
Transform Column(
"Count",
Formula( Col Number( :Department, :Department ) )
),
Descending,
Order Statistic( "N" )
)
),
Overlay( :Year )
),
Elements(
Bar( X, Legend( 6 ), Bar Style( "Stacked" ), Label( "Label by Value" ) )
),
SendToReport(
Dispatch(
{},
"Department",
ScaleBox,
{Label Row( Label Orientation( "Vertical" ) )}
),
Dispatch( {}, "", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Total Number of ILL Requests by Department" )}
)
)
);
//Stacked pareto of patron status
Graph Builder(
Size( 586, 540 ),
Show Control Panel( 0 ),
Variables(
X(
:Department,
Order By(
Transform Column(
"Count",
Formula( Col Number( :Department, :Department ) )
),
Descending,
Order Statistic( "N" )
)
),
Overlay( :Status )
),
Elements( Bar( X, Legend( 5 ), Bar Style( "Stacked" ) ) ),
SendToReport(
Dispatch(
{},
"Department",
ScaleBox,
{Label Row( Label Orientation( "Vertical" ) )}
),
Dispatch( {}, "", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Patron Status by Department" )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {5, [3, 2, 1, 0, 4, -1]} ),
Position( {3, 2, 1, 0, 4, -1} )}
)
)
);
//Which titles are requested in each department?
//Distribution(
// Nominal Distribution(
// Column( :Loan Title ),
// Histogram( 0 ),
// Order By( "Count Descending" )
// ),
// By( :Department)
//);
//Faculty/Graduate/staff/etc by Department
//Graph Builder(
// Size( 1525, 887 ),
// Variables( X( :Department ), Overlay( :Status ) ),
// Elements( Bar( X, Legend( 4 ), Bar Style( "Stacked" ) ) ),
// SendToReport(
// Dispatch(
// {},
// "400",
// ScaleBox,
// {Legend Model(
// 4,
// Properties( 0, {Fill Color( 0 )} ),
// Properties( 1, {Fill Color( 55 )} ),
// Properties( 3, {Fill Color( 19 )} ),
// Properties( 4, {Fill Color( 5 )} ),
// Properties( 5, {Fill Color( 41 )} ),
// Properties( 6, {Fill Color( 38 )} )
// )}
// )
// )
//);
//Which libraries fill our requests?
Graph Builder(
Size( 649, 791 ),
Show Control Panel( 0 ),
Variables(
X(
:Library Name,
Order By(
Transform Column(
"Count",
Formula( Col Number( :Lending Library, :Lending Library ) )
),
Descending,
Order Statistic( "N" )
)
),
Overlay( :Year )
),
Elements(
Bar( X, Legend( 3 ), Bar Style( "Stacked" ), Label( "Label by Value" ) )
),
SendToReport(
Dispatch(
{},
"Library Name",
ScaleBox,
{Min( -0.5 ), Max( 15.4147988025051 ), Inc( 1 ), Minor Ticks( 0 )}
),
Dispatch( {}, "", ScaleBox, {Label Row( Show Major Grid( 1 ) )} )
)
);
//Which publishers are requested the most?
Distribution(
Nominal Distribution( Column( :Loan Publisher ), Histogram( 0 ) ),
SendToReport(
Dispatch(
{"Distributions", "Loan Publisher", "Frequencies"},
"",
TableBox,
{Sort By Column( 2, 0 )}
)
)
);