@@ -119,26 +119,41 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
119
119
d3 . select ( this ) . attr ( 'd' ,
120
120
'M' + m + ',' + posm0 + 'V' + posm1 + // median line
121
121
'M' + q1 + ',' + pos0 + 'V' + pos1 + // left edge
122
- ( notched ? 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 : '' ) + // top notched edge
122
+ ( notched ?
123
+ 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 :
124
+ ''
125
+ ) + // top notched edge
123
126
'H' + q3 + // end of the top edge
124
127
'V' + pos0 + // right edge
125
128
( notched ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '' ) + // bottom notched edge
126
129
'Z' + // end of the box
127
130
'M' + q1 + ',' + posc + 'H' + lf + 'M' + q3 + ',' + posc + 'H' + uf + // whiskers
128
- ( ( whiskerWidth === 0 ) ? '' : // whisker caps
129
- 'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1 ) ) ;
131
+ ( whiskerWidth === 0 ?
132
+ '' : // whisker caps
133
+ 'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1
134
+ )
135
+ ) ;
130
136
} else {
131
137
d3 . select ( this ) . attr ( 'd' ,
132
138
'M' + posm0 + ',' + m + 'H' + posm1 + // median line
133
139
'M' + pos0 + ',' + q1 + 'H' + pos1 + // top of the box
134
- ( notched ? 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un : '' ) + // notched right edge
140
+ ( notched ?
141
+ 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un :
142
+ ''
143
+ ) + // notched right edge
135
144
'V' + q3 + // end of the right edge
136
145
'H' + pos0 + // bottom of the box
137
- ( notched ? 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln : '' ) + // notched left edge
146
+ ( notched ?
147
+ 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln :
148
+ ''
149
+ ) + // notched left edge
138
150
'Z' + // end of the box
139
151
'M' + posc + ',' + q1 + 'V' + lf + 'M' + posc + ',' + q3 + 'V' + uf + // whiskers
140
- ( ( whiskerWidth === 0 ) ? '' : // whisker caps
141
- 'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1 ) ) ;
152
+ ( whiskerWidth === 0 ?
153
+ '' : // whisker caps
154
+ 'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1
155
+ )
156
+ ) ;
142
157
}
143
158
} ) ;
144
159
}
0 commit comments