|
@@ -43,236 +43,248 @@ var refresh = function() {
|
43
|
43
|
var plotMin = Math.min(Number(query.value(4)), Number(query.value(5)));
|
44
|
44
|
var plotMax = Math.max(Number(query.value(12)), Number(query.value(13)));
|
45
|
45
|
|
46
|
|
- output.writeStartElement("g"); //plot (whole)
|
47
|
|
- output.writeAttribute("transform", "translate(55,30)");
|
48
|
|
- output.writeStartElement("line"); //center line
|
49
|
|
- output.writeAttribute("class", "center");
|
50
|
|
- output.writeAttribute("style", "fill: #000; stroke: #000; stroke-width: 1px;");
|
51
|
|
- output.writeAttribute("x1", "27");
|
52
|
|
- output.writeAttribute("x2", "27");
|
53
|
|
- output.writeAttribute("y1", position(Number(query.value(4)), plotMin, plotMax));
|
54
|
|
- output.writeAttribute("y2", position(Number(query.value(12)), plotMin, plotMax));
|
55
|
|
- output.writeEndElement(); //line
|
56
|
|
- output.writeStartElement("rect"); //upper and lower quartiles box
|
57
|
|
- output.writeAttribute("class", "box");
|
58
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
59
|
|
- output.writeAttribute("x", "0");
|
60
|
|
- output.writeAttribute("width", "54");
|
61
|
|
- output.writeAttribute("y", position(Number(query.value(10)), plotMin, plotMax));
|
62
|
|
- output.writeAttribute("height", position(Number(query.value(6)), plotMin, plotMax) - position(Number(query.value(10)), plotMin, plotMax));
|
63
|
|
- output.writeEndElement(); //rect
|
64
|
|
- output.writeStartElement("line"); //median line
|
65
|
|
- output.writeAttribute("class", "median");
|
66
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
67
|
|
- output.writeAttribute("x1", "0");
|
68
|
|
- output.writeAttribute("x2", "54");
|
69
|
|
- output.writeAttribute("y1", position(Number(query.value(8)), plotMin, plotMax));
|
70
|
|
- output.writeAttribute("y2", position(Number(query.value(8)), plotMin, plotMax));
|
71
|
|
- output.writeEndElement(); //line
|
72
|
|
- output.writeStartElement("line"); //minimum whisker
|
73
|
|
- output.writeAttribute("class", "whisker");
|
74
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
75
|
|
- output.writeAttribute("x1", "0");
|
76
|
|
- output.writeAttribute("x2", "54");
|
77
|
|
- output.writeAttribute("y1", position(Number(query.value(4)), plotMin, plotMax));
|
78
|
|
- output.writeAttribute("y2", position(Number(query.value(4)), plotMin, plotMax));
|
79
|
|
- output.writeEndElement(); //line
|
80
|
|
- output.writeStartElement("line"); //maximum whisker
|
81
|
|
- output.writeAttribute("class", "whisker");
|
82
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
83
|
|
- output.writeAttribute("x1", "0");
|
84
|
|
- output.writeAttribute("x2", "54");
|
85
|
|
- output.writeAttribute("y1", position(Number(query.value(12)), plotMin, plotMax));
|
86
|
|
- output.writeAttribute("y2", position(Number(query.value(12)), plotMin, plotMax));
|
87
|
|
- output.writeEndElement(); //line
|
88
|
|
- output.writeStartElement("text"); //upper quartile label
|
89
|
|
- output.writeAttribute("class", "box");
|
90
|
|
- output.writeAttribute("dy", ".3em");
|
91
|
|
- output.writeAttribute("dx", "-6");
|
92
|
|
- output.writeAttribute("x", "0");
|
93
|
|
- output.writeAttribute("y", position(Number(query.value(10)), plotMin, plotMax));
|
94
|
|
- output.writeAttribute("text-anchor", "end");
|
95
|
|
- output.writeCharacters(query.value(10));
|
96
|
|
- output.writeEndElement(); //text
|
97
|
|
- output.writeStartElement("text"); //lower quartile label
|
98
|
|
- output.writeAttribute("class", "box");
|
99
|
|
- output.writeAttribute("dy", ".3em");
|
100
|
|
- output.writeAttribute("dx", "-6");
|
101
|
|
- output.writeAttribute("x", "0");
|
102
|
|
- output.writeAttribute("y", position(Number(query.value(6)), plotMin, plotMax));
|
103
|
|
- output.writeAttribute("text-anchor", "end");
|
104
|
|
- output.writeCharacters(query.value(6));
|
105
|
|
- output.writeEndElement(); //text
|
106
|
|
- output.writeStartElement("text"); //median label
|
107
|
|
- output.writeAttribute("class", "box");
|
108
|
|
- output.writeAttribute("dy", ".3em");
|
109
|
|
- output.writeAttribute("dx", "6");
|
110
|
|
- output.writeAttribute("x", "54");
|
111
|
|
- output.writeAttribute("y", position(Number(query.value(8)), plotMin, plotMax));
|
112
|
|
- output.writeAttribute("text-anchor", "start");
|
113
|
|
- output.writeCharacters(query.value(8));
|
114
|
|
- output.writeEndElement(); //text
|
115
|
|
- output.writeStartElement("text"); //minimum label
|
116
|
|
- output.writeAttribute("class", "whisker");
|
117
|
|
- output.writeAttribute("dy", ".3em");
|
118
|
|
- output.writeAttribute("dx", "6");
|
119
|
|
- output.writeAttribute("x", "54");
|
120
|
|
- output.writeAttribute("y", position(Number(query.value(4)), plotMin, plotMax));
|
121
|
|
- output.writeAttribute("text-anchor", "start");
|
122
|
|
- output.writeCharacters(query.value(4));
|
123
|
|
- output.writeEndElement(); //text
|
124
|
|
- output.writeStartElement("text"); //maximum label
|
125
|
|
- output.writeAttribute("class", "whisker");
|
126
|
|
- output.writeAttribute("dy", ".3em");
|
127
|
|
- output.writeAttribute("dx", "6");
|
128
|
|
- output.writeAttribute("x", "54");
|
129
|
|
- output.writeAttribute("y", position(Number(query.value(12)), plotMin, plotMax));
|
130
|
|
- output.writeAttribute("text-anchor", "start");
|
131
|
|
- output.writeCharacters(query.value(12));
|
132
|
|
- output.writeEndElement(); //text
|
133
|
|
- output.writeEndElement(); //g
|
|
46
|
+ if(Number(query.value(2)) > 0) {
|
|
47
|
+ output.writeStartElement("g"); //plot (whole)
|
|
48
|
+ output.writeAttribute("transform", "translate(55,30)");
|
|
49
|
+ output.writeStartElement("line"); //center line
|
|
50
|
+ output.writeAttribute("class", "center");
|
|
51
|
+ output.writeAttribute("style", "fill: #000; stroke: #000; stroke-width: 1px;");
|
|
52
|
+ output.writeAttribute("x1", "27");
|
|
53
|
+ output.writeAttribute("x2", "27");
|
|
54
|
+ output.writeAttribute("y1", position(Number(query.value(4)), plotMin, plotMax));
|
|
55
|
+ output.writeAttribute("y2", position(Number(query.value(12)), plotMin, plotMax));
|
|
56
|
+ output.writeEndElement(); //line
|
|
57
|
+ output.writeStartElement("rect"); //upper and lower quartiles box
|
|
58
|
+ output.writeAttribute("class", "box");
|
|
59
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
60
|
+ output.writeAttribute("x", "0");
|
|
61
|
+ output.writeAttribute("width", "54");
|
|
62
|
+ output.writeAttribute("y", position(Number(query.value(10)), plotMin, plotMax));
|
|
63
|
+ output.writeAttribute("height", position(Number(query.value(6)), plotMin, plotMax) - position(Number(query.value(10)), plotMin, plotMax));
|
|
64
|
+ output.writeEndElement(); //rect
|
|
65
|
+ output.writeStartElement("line"); //median line
|
|
66
|
+ output.writeAttribute("class", "median");
|
|
67
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
68
|
+ output.writeAttribute("x1", "0");
|
|
69
|
+ output.writeAttribute("x2", "54");
|
|
70
|
+ output.writeAttribute("y1", position(Number(query.value(8)), plotMin, plotMax));
|
|
71
|
+ output.writeAttribute("y2", position(Number(query.value(8)), plotMin, plotMax));
|
|
72
|
+ output.writeEndElement(); //line
|
|
73
|
+ output.writeStartElement("line"); //minimum whisker
|
|
74
|
+ output.writeAttribute("class", "whisker");
|
|
75
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
76
|
+ output.writeAttribute("x1", "0");
|
|
77
|
+ output.writeAttribute("x2", "54");
|
|
78
|
+ output.writeAttribute("y1", position(Number(query.value(4)), plotMin, plotMax));
|
|
79
|
+ output.writeAttribute("y2", position(Number(query.value(4)), plotMin, plotMax));
|
|
80
|
+ output.writeEndElement(); //line
|
|
81
|
+ output.writeStartElement("line"); //maximum whisker
|
|
82
|
+ output.writeAttribute("class", "whisker");
|
|
83
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
84
|
+ output.writeAttribute("x1", "0");
|
|
85
|
+ output.writeAttribute("x2", "54");
|
|
86
|
+ output.writeAttribute("y1", position(Number(query.value(12)), plotMin, plotMax));
|
|
87
|
+ output.writeAttribute("y2", position(Number(query.value(12)), plotMin, plotMax));
|
|
88
|
+ output.writeEndElement(); //line
|
|
89
|
+ output.writeStartElement("text"); //upper quartile label
|
|
90
|
+ output.writeAttribute("class", "box");
|
|
91
|
+ output.writeAttribute("dy", ".3em");
|
|
92
|
+ output.writeAttribute("dx", "-6");
|
|
93
|
+ output.writeAttribute("x", "0");
|
|
94
|
+ output.writeAttribute("y", position(Number(query.value(10)), plotMin, plotMax));
|
|
95
|
+ output.writeAttribute("text-anchor", "end");
|
|
96
|
+ output.writeCharacters(query.value(10));
|
|
97
|
+ output.writeEndElement(); //text
|
|
98
|
+ output.writeStartElement("text"); //lower quartile label
|
|
99
|
+ output.writeAttribute("class", "box");
|
|
100
|
+ output.writeAttribute("dy", ".3em");
|
|
101
|
+ output.writeAttribute("dx", "-6");
|
|
102
|
+ output.writeAttribute("x", "0");
|
|
103
|
+ output.writeAttribute("y", position(Number(query.value(6)), plotMin, plotMax));
|
|
104
|
+ output.writeAttribute("text-anchor", "end");
|
|
105
|
+ output.writeCharacters(query.value(6));
|
|
106
|
+ output.writeEndElement(); //text
|
|
107
|
+ output.writeStartElement("text"); //median label
|
|
108
|
+ output.writeAttribute("class", "box");
|
|
109
|
+ output.writeAttribute("dy", ".3em");
|
|
110
|
+ output.writeAttribute("dx", "6");
|
|
111
|
+ output.writeAttribute("x", "54");
|
|
112
|
+ output.writeAttribute("y", position(Number(query.value(8)), plotMin, plotMax));
|
|
113
|
+ output.writeAttribute("text-anchor", "start");
|
|
114
|
+ output.writeCharacters(query.value(8));
|
|
115
|
+ output.writeEndElement(); //text
|
|
116
|
+ output.writeStartElement("text"); //minimum label
|
|
117
|
+ output.writeAttribute("class", "whisker");
|
|
118
|
+ output.writeAttribute("dy", ".3em");
|
|
119
|
+ output.writeAttribute("dx", "6");
|
|
120
|
+ output.writeAttribute("x", "54");
|
|
121
|
+ output.writeAttribute("y", position(Number(query.value(4)), plotMin, plotMax));
|
|
122
|
+ output.writeAttribute("text-anchor", "start");
|
|
123
|
+ output.writeCharacters(query.value(4));
|
|
124
|
+ output.writeEndElement(); //text
|
|
125
|
+ output.writeStartElement("text"); //maximum label
|
|
126
|
+ output.writeAttribute("class", "whisker");
|
|
127
|
+ output.writeAttribute("dy", ".3em");
|
|
128
|
+ output.writeAttribute("dx", "6");
|
|
129
|
+ output.writeAttribute("x", "54");
|
|
130
|
+ output.writeAttribute("y", position(Number(query.value(12)), plotMin, plotMax));
|
|
131
|
+ output.writeAttribute("text-anchor", "start");
|
|
132
|
+ output.writeCharacters(query.value(12));
|
|
133
|
+ output.writeEndElement(); //text
|
|
134
|
+ output.writeEndElement(); //g
|
|
135
|
+
|
|
136
|
+ output.writeStartElement("g") //x axis
|
|
137
|
+ output.writeAttribute("class", "x axis");
|
|
138
|
+ output.writeAttribute("transform", "translate(0,340)");
|
|
139
|
+ output.writeStartElement("g"); //name and population size
|
|
140
|
+ output.writeAttribute("class", "tick");
|
|
141
|
+ output.writeAttribute("transform", "translate(82,0)");
|
|
142
|
+ output.writeStartElement("line"); //tick
|
|
143
|
+ output.writeAttribute("y2", "6");
|
|
144
|
+ output.writeAttribute("x2", "0");
|
|
145
|
+ output.writeEndElement(); //line
|
|
146
|
+ output.writeStartElement("text"); //label
|
|
147
|
+ output.writeAttribute("style", "text-anchor: middle");
|
|
148
|
+ output.writeAttribute("y", "9");
|
|
149
|
+ output.writeAttribute("x", "0");
|
|
150
|
+ output.writeStartElement("tspan");
|
|
151
|
+ output.writeAttribute("x", "0");
|
|
152
|
+ output.writeAttribute("dy", ".71em");
|
|
153
|
+ output.writeCharacters(TTR("colorplots", "whole"));
|
|
154
|
+ output.writeEndElement(); //tspan
|
|
155
|
+ output.writeStartElement("tspan");
|
|
156
|
+ output.writeAttribute("x", "0");
|
|
157
|
+ output.writeAttribute("dy", "1.42em");
|
|
158
|
+ output.writeCharacters("(n=" + query.value(2) + ")");
|
|
159
|
+ output.writeEndElement(); //tspan
|
|
160
|
+ output.writeEndElement(); //text
|
|
161
|
+ output.writeEndElement(); //g
|
|
162
|
+ output.writeEndElement();
|
|
163
|
+ }
|
134
|
164
|
|
135
|
|
- output.writeStartElement("g"); //plot (ground)
|
136
|
|
- output.writeAttribute("transform", "translate(234,30)");
|
137
|
|
- output.writeStartElement("line"); //center line
|
138
|
|
- output.writeAttribute("class", "center");
|
139
|
|
- output.writeAttribute("style", "fill: #000; stroke: #000; stroke-width: 1px;");
|
140
|
|
- output.writeAttribute("x1", "27");
|
141
|
|
- output.writeAttribute("x2", "27");
|
142
|
|
- output.writeAttribute("y1", position(Number(query.value(5)), plotMin, plotMax));
|
143
|
|
- output.writeAttribute("y2", position(Number(query.value(13)), plotMin, plotMax));
|
144
|
|
- output.writeEndElement(); //line
|
145
|
|
- output.writeStartElement("rect"); //upper and lower quartiles box
|
146
|
|
- output.writeAttribute("class", "box");
|
147
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
148
|
|
- output.writeAttribute("x", "0");
|
149
|
|
- output.writeAttribute("width", "54");
|
150
|
|
- output.writeAttribute("y", position(Number(query.value(11)), plotMin, plotMax));
|
151
|
|
- output.writeAttribute("height", position(Number(query.value(7)), plotMin, plotMax) - position(Number(query.value(11)), plotMin, plotMax));
|
152
|
|
- output.writeEndElement(); //rect
|
153
|
|
- output.writeStartElement("line"); //median line
|
154
|
|
- output.writeAttribute("class", "median");
|
155
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
156
|
|
- output.writeAttribute("x1", "0");
|
157
|
|
- output.writeAttribute("x2", "54");
|
158
|
|
- output.writeAttribute("y1", position(Number(query.value(9)), plotMin, plotMax));
|
159
|
|
- output.writeAttribute("y2", position(Number(query.value(9)), plotMin, plotMax));
|
160
|
|
- output.writeEndElement(); //line
|
161
|
|
- output.writeStartElement("line"); //minimum whisker
|
162
|
|
- output.writeAttribute("class", "whisker");
|
163
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
164
|
|
- output.writeAttribute("x1", "0");
|
165
|
|
- output.writeAttribute("x2", "54");
|
166
|
|
- output.writeAttribute("y1", position(Number(query.value(5)), plotMin, plotMax));
|
167
|
|
- output.writeAttribute("y2", position(Number(query.value(5)), plotMin, plotMax));
|
168
|
|
- output.writeEndElement(); //line
|
169
|
|
- output.writeStartElement("line"); //maximum whisker
|
170
|
|
- output.writeAttribute("class", "whisker");
|
171
|
|
- output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
172
|
|
- output.writeAttribute("x1", "0");
|
173
|
|
- output.writeAttribute("x2", "54");
|
174
|
|
- output.writeAttribute("y1", position(Number(query.value(13)), plotMin, plotMax));
|
175
|
|
- output.writeAttribute("y2", position(Number(query.value(13)), plotMin, plotMax));
|
176
|
|
- output.writeEndElement(); //line
|
177
|
|
- output.writeStartElement("text"); //upper quartile label
|
178
|
|
- output.writeAttribute("class", "box");
|
179
|
|
- output.writeAttribute("dy", ".3em");
|
180
|
|
- output.writeAttribute("dx", "-6");
|
181
|
|
- output.writeAttribute("x", "0");
|
182
|
|
- output.writeAttribute("y", position(Number(query.value(11)), plotMin, plotMax));
|
183
|
|
- output.writeAttribute("text-anchor", "end");
|
184
|
|
- output.writeCharacters(query.value(11));
|
185
|
|
- output.writeEndElement(); //text
|
186
|
|
- output.writeStartElement("text"); //lower quartile label
|
187
|
|
- output.writeAttribute("class", "box");
|
188
|
|
- output.writeAttribute("dy", ".3em");
|
189
|
|
- output.writeAttribute("dx", "-6");
|
190
|
|
- output.writeAttribute("x", "0");
|
191
|
|
- output.writeAttribute("y", position(Number(query.value(7)), plotMin, plotMax));
|
192
|
|
- output.writeAttribute("text-anchor", "end");
|
193
|
|
- output.writeCharacters(query.value(7));
|
194
|
|
- output.writeEndElement(); //text
|
195
|
|
- output.writeStartElement("text"); //median label
|
196
|
|
- output.writeAttribute("class", "box");
|
197
|
|
- output.writeAttribute("dy", ".3em");
|
198
|
|
- output.writeAttribute("dx", "6");
|
199
|
|
- output.writeAttribute("x", "54");
|
200
|
|
- output.writeAttribute("y", position(Number(query.value(9)), plotMin, plotMax));
|
201
|
|
- output.writeAttribute("text-anchor", "start");
|
202
|
|
- output.writeCharacters(query.value(9));
|
203
|
|
- output.writeEndElement(); //text
|
204
|
|
- output.writeStartElement("text"); //minimum label
|
205
|
|
- output.writeAttribute("class", "whisker");
|
206
|
|
- output.writeAttribute("dy", ".3em");
|
207
|
|
- output.writeAttribute("dx", "6");
|
208
|
|
- output.writeAttribute("x", "54");
|
209
|
|
- output.writeAttribute("y", position(Number(query.value(5)), plotMin, plotMax));
|
210
|
|
- output.writeAttribute("text-anchor", "start");
|
211
|
|
- output.writeCharacters(query.value(5));
|
212
|
|
- output.writeEndElement(); //text
|
213
|
|
- output.writeStartElement("text"); //maximum label
|
214
|
|
- output.writeAttribute("class", "whisker");
|
215
|
|
- output.writeAttribute("dy", ".3em");
|
216
|
|
- output.writeAttribute("dx", "6");
|
217
|
|
- output.writeAttribute("x", "54");
|
218
|
|
- output.writeAttribute("y", position(Number(query.value(13)), plotMin, plotMax));
|
219
|
|
- output.writeAttribute("text-anchor", "start");
|
220
|
|
- output.writeCharacters(query.value(13));
|
221
|
|
- output.writeEndElement(); //text
|
222
|
|
- output.writeEndElement(); //g
|
|
165
|
+ if(Number(query.value(3)) > 0) {
|
|
166
|
+ output.writeStartElement("g"); //plot (ground)
|
|
167
|
+ output.writeAttribute("transform", "translate(234,30)");
|
|
168
|
+ output.writeStartElement("line"); //center line
|
|
169
|
+ output.writeAttribute("class", "center");
|
|
170
|
+ output.writeAttribute("style", "fill: #000; stroke: #000; stroke-width: 1px;");
|
|
171
|
+ output.writeAttribute("x1", "27");
|
|
172
|
+ output.writeAttribute("x2", "27");
|
|
173
|
+ output.writeAttribute("y1", position(Number(query.value(5)), plotMin, plotMax));
|
|
174
|
+ output.writeAttribute("y2", position(Number(query.value(13)), plotMin, plotMax));
|
|
175
|
+ output.writeEndElement(); //line
|
|
176
|
+ output.writeStartElement("rect"); //upper and lower quartiles box
|
|
177
|
+ output.writeAttribute("class", "box");
|
|
178
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
179
|
+ output.writeAttribute("x", "0");
|
|
180
|
+ output.writeAttribute("width", "54");
|
|
181
|
+ output.writeAttribute("y", position(Number(query.value(11)), plotMin, plotMax));
|
|
182
|
+ output.writeAttribute("height", position(Number(query.value(7)), plotMin, plotMax) - position(Number(query.value(11)), plotMin, plotMax));
|
|
183
|
+ output.writeEndElement(); //rect
|
|
184
|
+ output.writeStartElement("line"); //median line
|
|
185
|
+ output.writeAttribute("class", "median");
|
|
186
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
187
|
+ output.writeAttribute("x1", "0");
|
|
188
|
+ output.writeAttribute("x2", "54");
|
|
189
|
+ output.writeAttribute("y1", position(Number(query.value(9)), plotMin, plotMax));
|
|
190
|
+ output.writeAttribute("y2", position(Number(query.value(9)), plotMin, plotMax));
|
|
191
|
+ output.writeEndElement(); //line
|
|
192
|
+ output.writeStartElement("line"); //minimum whisker
|
|
193
|
+ output.writeAttribute("class", "whisker");
|
|
194
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
195
|
+ output.writeAttribute("x1", "0");
|
|
196
|
+ output.writeAttribute("x2", "54");
|
|
197
|
+ output.writeAttribute("y1", position(Number(query.value(5)), plotMin, plotMax));
|
|
198
|
+ output.writeAttribute("y2", position(Number(query.value(5)), plotMin, plotMax));
|
|
199
|
+ output.writeEndElement(); //line
|
|
200
|
+ output.writeStartElement("line"); //maximum whisker
|
|
201
|
+ output.writeAttribute("class", "whisker");
|
|
202
|
+ output.writeAttribute("style", "fill: #12DD11; stroke: #000; stroke-width: 1px;");
|
|
203
|
+ output.writeAttribute("x1", "0");
|
|
204
|
+ output.writeAttribute("x2", "54");
|
|
205
|
+ output.writeAttribute("y1", position(Number(query.value(13)), plotMin, plotMax));
|
|
206
|
+ output.writeAttribute("y2", position(Number(query.value(13)), plotMin, plotMax));
|
|
207
|
+ output.writeEndElement(); //line
|
|
208
|
+ output.writeStartElement("text"); //upper quartile label
|
|
209
|
+ output.writeAttribute("class", "box");
|
|
210
|
+ output.writeAttribute("dy", ".3em");
|
|
211
|
+ output.writeAttribute("dx", "-6");
|
|
212
|
+ output.writeAttribute("x", "0");
|
|
213
|
+ output.writeAttribute("y", position(Number(query.value(11)), plotMin, plotMax));
|
|
214
|
+ output.writeAttribute("text-anchor", "end");
|
|
215
|
+ output.writeCharacters(query.value(11));
|
|
216
|
+ output.writeEndElement(); //text
|
|
217
|
+ output.writeStartElement("text"); //lower quartile label
|
|
218
|
+ output.writeAttribute("class", "box");
|
|
219
|
+ output.writeAttribute("dy", ".3em");
|
|
220
|
+ output.writeAttribute("dx", "-6");
|
|
221
|
+ output.writeAttribute("x", "0");
|
|
222
|
+ output.writeAttribute("y", position(Number(query.value(7)), plotMin, plotMax));
|
|
223
|
+ output.writeAttribute("text-anchor", "end");
|
|
224
|
+ output.writeCharacters(query.value(7));
|
|
225
|
+ output.writeEndElement(); //text
|
|
226
|
+ output.writeStartElement("text"); //median label
|
|
227
|
+ output.writeAttribute("class", "box");
|
|
228
|
+ output.writeAttribute("dy", ".3em");
|
|
229
|
+ output.writeAttribute("dx", "6");
|
|
230
|
+ output.writeAttribute("x", "54");
|
|
231
|
+ output.writeAttribute("y", position(Number(query.value(9)), plotMin, plotMax));
|
|
232
|
+ output.writeAttribute("text-anchor", "start");
|
|
233
|
+ output.writeCharacters(query.value(9));
|
|
234
|
+ output.writeEndElement(); //text
|
|
235
|
+ output.writeStartElement("text"); //minimum label
|
|
236
|
+ output.writeAttribute("class", "whisker");
|
|
237
|
+ output.writeAttribute("dy", ".3em");
|
|
238
|
+ output.writeAttribute("dx", "6");
|
|
239
|
+ output.writeAttribute("x", "54");
|
|
240
|
+ output.writeAttribute("y", position(Number(query.value(5)), plotMin, plotMax));
|
|
241
|
+ output.writeAttribute("text-anchor", "start");
|
|
242
|
+ output.writeCharacters(query.value(5));
|
|
243
|
+ output.writeEndElement(); //text
|
|
244
|
+ output.writeStartElement("text"); //maximum label
|
|
245
|
+ output.writeAttribute("class", "whisker");
|
|
246
|
+ output.writeAttribute("dy", ".3em");
|
|
247
|
+ output.writeAttribute("dx", "6");
|
|
248
|
+ output.writeAttribute("x", "54");
|
|
249
|
+ output.writeAttribute("y", position(Number(query.value(13)), plotMin, plotMax));
|
|
250
|
+ output.writeAttribute("text-anchor", "start");
|
|
251
|
+ output.writeCharacters(query.value(13));
|
|
252
|
+ output.writeEndElement(); //text
|
|
253
|
+ output.writeEndElement(); //g
|
|
254
|
+
|
|
255
|
+ output.writeStartElement("g") //x axis
|
|
256
|
+ output.writeAttribute("class", "x axis");
|
|
257
|
+ output.writeAttribute("transform", "translate(0,340)");
|
|
258
|
+ output.writeStartElement("g"); //name and population size
|
|
259
|
+ output.writeAttribute("class", "tick");
|
|
260
|
+ output.writeAttribute("transform", "translate(261,0)");
|
|
261
|
+ output.writeStartElement("line"); //tick
|
|
262
|
+ output.writeAttribute("y2", "6");
|
|
263
|
+ output.writeAttribute("x2", "0");
|
|
264
|
+ output.writeEndElement(); //line
|
|
265
|
+ output.writeStartElement("text"); //label
|
|
266
|
+ output.writeAttribute("style", "text-anchor: middle");
|
|
267
|
+ output.writeAttribute("y", "9");
|
|
268
|
+ output.writeAttribute("x", "0");
|
|
269
|
+ output.writeStartElement("tspan");
|
|
270
|
+ output.writeAttribute("x", "0");
|
|
271
|
+ output.writeAttribute("dy", ".71em");
|
|
272
|
+ output.writeCharacters(TTR("colorplots", "ground"));
|
|
273
|
+ output.writeEndElement(); //tspan
|
|
274
|
+ output.writeStartElement("tspan");
|
|
275
|
+ output.writeAttribute("x", "0");
|
|
276
|
+ output.writeAttribute("dy", "1.42em");
|
|
277
|
+ output.writeCharacters("(n=" + query.value(3) + ")");
|
|
278
|
+ output.writeEndElement(); //tspan
|
|
279
|
+ output.writeEndElement(); //text
|
|
280
|
+ output.writeEndElement(); //g
|
|
281
|
+ output.writeEndElement();
|
|
282
|
+ }
|
223
|
283
|
|
224
|
284
|
output.writeStartElement("g") //x axis
|
225
|
285
|
output.writeAttribute("class", "x axis");
|
226
|
286
|
output.writeAttribute("transform", "translate(0,340)");
|
227
|
287
|
|
228
|
|
- output.writeStartElement("g"); //name and population size
|
229
|
|
- output.writeAttribute("class", "tick");
|
230
|
|
- output.writeAttribute("transform", "translate(82,0)");
|
231
|
|
- output.writeStartElement("line"); //tick
|
232
|
|
- output.writeAttribute("y2", "6");
|
233
|
|
- output.writeAttribute("x2", "0");
|
234
|
|
- output.writeEndElement(); //line
|
235
|
|
- output.writeStartElement("text"); //label
|
236
|
|
- output.writeAttribute("style", "text-anchor: middle");
|
237
|
|
- output.writeAttribute("y", "9");
|
238
|
|
- output.writeAttribute("x", "0");
|
239
|
|
- output.writeStartElement("tspan");
|
240
|
|
- output.writeAttribute("x", "0");
|
241
|
|
- output.writeAttribute("dy", ".71em");
|
242
|
|
- output.writeCharacters(TTR("colorplots", "whole"));
|
243
|
|
- output.writeEndElement(); //tspan
|
244
|
|
- output.writeStartElement("tspan");
|
245
|
|
- output.writeAttribute("x", "0");
|
246
|
|
- output.writeAttribute("dy", "1.42em");
|
247
|
|
- output.writeCharacters("(n=" + query.value(2) + ")");
|
248
|
|
- output.writeEndElement(); //tspan
|
249
|
|
- output.writeEndElement(); //text
|
250
|
|
- output.writeEndElement(); //g
|
251
|
|
-
|
252
|
|
- output.writeStartElement("g"); //name and population size
|
253
|
|
- output.writeAttribute("class", "tick");
|
254
|
|
- output.writeAttribute("transform", "translate(261,0)");
|
255
|
|
- output.writeStartElement("line"); //tick
|
256
|
|
- output.writeAttribute("y2", "6");
|
257
|
|
- output.writeAttribute("x2", "0");
|
258
|
|
- output.writeEndElement(); //line
|
259
|
|
- output.writeStartElement("text"); //label
|
260
|
|
- output.writeAttribute("style", "text-anchor: middle");
|
261
|
|
- output.writeAttribute("y", "9");
|
262
|
|
- output.writeAttribute("x", "0");
|
263
|
|
- output.writeStartElement("tspan");
|
264
|
|
- output.writeAttribute("x", "0");
|
265
|
|
- output.writeAttribute("dy", ".71em");
|
266
|
|
- output.writeCharacters(TTR("colorplots", "ground"));
|
267
|
|
- output.writeEndElement(); //tspan
|
268
|
|
- output.writeStartElement("tspan");
|
269
|
|
- output.writeAttribute("x", "0");
|
270
|
|
- output.writeAttribute("dy", "1.42em");
|
271
|
|
- output.writeCharacters("(n=" + query.value(3) + ")");
|
272
|
|
- output.writeEndElement(); //tspan
|
273
|
|
- output.writeEndElement(); //text
|
274
|
|
- output.writeEndElement(); //g
|
275
|
|
-
|
276
|
288
|
output.writeStartElement("path");
|
277
|
289
|
output.writeAttribute("class", "domain");
|
278
|
290
|
output.writeAttribute("d", "M0,6V0H" + 342 + "V6");
|