@@ -146,10 +146,10 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
146
146
d3 . select ( this ) . attr ( 'd' ,
147
147
'M' + m + ',' + posm0 + 'V' + posm1 + // median line
148
148
'M' + q1 + ',' + pos0 + 'V' + pos1 + // left edge
149
- ( ( ( notched === true ) ) ? 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 : '' ) + // top notched edge
149
+ ( notched ? 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 : '' ) + // top notched edge
150
150
'H' + q3 + // end of the top edge
151
151
'V' + pos0 + // right edge
152
- ( ( ( notched === true ) ) ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '' ) + // bottom notched edge
152
+ ( notched ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '' ) + // bottom notched edge
153
153
'Z' + // end of the box
154
154
'M' + q1 + ',' + posc + 'H' + lf + 'M' + q3 + ',' + posc + 'H' + uf + // whiskers
155
155
( ( whiskerWidth === 0 ) ? '' : // whisker caps
@@ -158,10 +158,10 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
158
158
d3 . select ( this ) . attr ( 'd' ,
159
159
'M' + posm0 + ',' + m + 'H' + posm1 + // median line
160
160
'M' + pos0 + ',' + q1 + 'H' + pos1 + // top of the box
161
- ( ( ( notched === true ) ) ? 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un : '' ) + // notched right edge
161
+ ( notched ? 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un : '' ) + // notched right edge
162
162
'V' + q3 + // end of the right edge
163
163
'H' + pos0 + // bottom of the box
164
- ( ( ( notched === true ) ) ? 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln : '' ) + // notched left edge
164
+ ( notched ? 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln : '' ) + // notched left edge
165
165
'Z' + // end of the box
166
166
'M' + posc + ',' + q1 + 'V' + lf + 'M' + posc + ',' + q3 + 'V' + uf + // whiskers
167
167
( ( whiskerWidth === 0 ) ? '' : // whisker caps
0 commit comments