MCPcopy Create free account
hub / github.com/plotly/plotly.js / styleHighlight

Function styleHighlight

src/traces/parcoords/axisbrush.js:118–124  ·  view source on GitHub ↗
(selection)

Source from the content-addressed store, hash-verified

116}
117
118function 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
126function renderHighlight(root, tweenCallback) {
127 var bar = d3.select(root).selectAll('.highlight, .highlight-shadow');

Callers 1

renderHighlightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…