UNPKG

safety-results-over-time

Version:

Chart showing population averages for lab measures, vital signs and other related measures during the course of a clinical trial.

12 lines (11 loc) 494 B
export default function removeUnscheduledVisits() { if (!this.config.unscheduled_visits) this.marks.forEach(mark => { if (mark.type === 'line') mark.data.forEach(d => { d.values = d.values.filter(di => this.config.x.domain.indexOf(di.key) > -1); }); else if (mark.type === 'circle') mark.data = mark.data.filter(d => this.config.x.domain.indexOf(d.values.x) > -1); }); }