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

Method set_default_style

js/src/Pie.ts:517–529  ·  view source on GitHub ↗
(indices?)

Source from the content-addressed store, hash-verified

515 }
516
517 set_default_style(indices?) {
518 // For all the elements with index in the list indices, the default
519 // style is applied.
520 const stroke = this.model.get('stroke');
521
522 // Update pie slices
523 this.pieSelection
524 .select('.slices')
525 .selectAll('.slice')
526 .style('fill', (d, i) => this.get_mark_color(d.data, i))
527 .style('stroke', stroke)
528 .style('opacity', (d, i) => this.get_mark_opacity(d.data, i));
529 }
530
531 click_handler(args) {
532 const index = args.index;

Callers 1

reset_selectionMethod · 0.95

Calls 2

get_mark_colorMethod · 0.80
get_mark_opacityMethod · 0.80

Tested by

no test coverage detected