(d)
| 481 | } |
| 482 | |
| 483 | function styleOHLC(d) { |
| 484 | var trace = d[0].trace; |
| 485 | |
| 486 | var pts = d3 |
| 487 | .select(this) |
| 488 | .select('g.legendpoints') |
| 489 | .selectAll('path.legendohlc') |
| 490 | .data(trace.visible && trace.type === 'ohlc' ? [d, d] : []); |
| 491 | pts.enter() |
| 492 | .append('path') |
| 493 | .classed('legendohlc', true) |
| 494 | .attr('d', function (_, i) { |
| 495 | if (i) return 'M-15,0H0M-8,-6V0'; // increasing |
| 496 | return 'M15,0H0M8,6V0'; // decreasing |
| 497 | }) |
| 498 | .attr('transform', centerTransform) |
| 499 | .style('stroke-miterlimit', 1); |
| 500 | pts.exit().remove(); |
| 501 | |
| 502 | pts.each(function (_, i) { |
| 503 | var p = d3.select(this); |
| 504 | var cont = trace[i ? 'increasing' : 'decreasing']; |
| 505 | var w = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH); |
| 506 | |
| 507 | p.style('fill', 'none').call(Drawing.dashLine, cont.line.dash, w); |
| 508 | |
| 509 | if (w) Color.stroke(p, cont.line.color); |
| 510 | }); |
| 511 | } |
| 512 | |
| 513 | function stylePies(d) { |
| 514 | stylePieLike(d, this, 'pie'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…