(selection)
| 116 | } |
| 117 | |
| 118 | function styleHighlight(selection) { |
| 119 | // stroke-dasharray is used to minimize the number of created DOM nodes, because the requirement calls for up to |
| 120 | // 1000 individual selections on an axis, and there can be 60 axes per parcoords, and multiple parcoords per |
| 121 | // dashboard. The technique is similar to https://codepen.io/monfera/pen/rLYqWR and using a `polyline` with |
| 122 | // multiple sections, or a `path` element via its `d` attribute would also be DOM-sparing alternatives. |
| 123 | selection.attr('stroke-dasharray', setHighlight); |
| 124 | } |
| 125 | |
| 126 | function renderHighlight(root, tweenCallback) { |
| 127 | var bar = d3.select(root).selectAll('.highlight, .highlight-shadow'); |
no outgoing calls
no test coverage detected
searching dependent graphs…