MCPcopy Index your code
hub / github.com/bqplot/bqplot / set_style_on_elements

Method set_style_on_elements

js/src/Boxplot.ts:182–191  ·  view source on GitHub ↗
(style, indices)

Source from the content-addressed store, hash-verified

180 }
181
182 set_style_on_elements(style, indices) {
183 if (indices === undefined || indices.length === 0) {
184 return;
185 }
186 let elements = this.d3el.selectAll('.box');
187 elements = elements.filter((data, index) => {
188 return indices.indexOf(index) != -1;
189 });
190 applyStyles(elements, style);
191 }
192
193 set_default_style(indices) {
194 // For all the elements with index in the list indices, the default

Callers 1

style_updatedMethod · 0.95

Calls 1

applyStylesFunction · 0.90

Tested by

no test coverage detected