MCPcopy Create free account
hub / github.com/bqplot/bqplot / draw_dots

Method draw_dots

js/src/Lines.ts:708–721  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

706 }
707
708 draw_dots(): void {
709 if (this.model.get('marker')) {
710 const dots = this.d3el
711 .selectAll('.curve')
712 .selectAll('.dot')
713 .data((d: any, i) => {
714 return d.values.map((e) => {
715 return { x: e.x, y: e.y, sub_index: e.sub_index };
716 });
717 });
718 dots.enter().append('path').attr('class', 'dot');
719 dots.exit().remove();
720 }
721 }
722
723 update_dots_xy(animate): void {
724 if (this.model.get('marker')) {

Callers 2

drawMethod · 0.95
update_markerMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected