@oncojs/survivalplot
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -89,3 +89,5 @@ 'use strict'; | ||
shouldShowConfidenceIntervals = _defaultsDeep.shouldShowConfidenceIntervals, | ||
confidenceAreaOpacity = _defaultsDeep.confidenceAreaOpacity; | ||
confidenceAreaOpacity = _defaultsDeep.confidenceAreaOpacity, | ||
_defaultsDeep$minimum = _defaultsDeep.minimumDonors, | ||
minimumDonors = _defaultsDeep$minimum === undefined ? 1 : _defaultsDeep$minimum; | ||
@@ -173,3 +175,3 @@ var svg = _d2.default.select(container).selectAll('svg'); | ||
dataSets.forEach(function (data, i) { | ||
if (disabledDataSets.indexOf(data) >= 0) { | ||
if (disabledDataSets.indexOf(data) >= 0 || data.donors.length < minimumDonors) { | ||
return; | ||
@@ -176,0 +178,0 @@ } |
@@ -51,2 +51,3 @@ import d3 from 'd3' | ||
confidenceAreaOpacity, | ||
minimumDonors = 1, | ||
} = defaultsDeep({}, params, defaultOptions, { | ||
@@ -181,3 +182,3 @@ onMouseEnterDonors: (event, donors) => onMouseEnterDonor(event, donors[0]), | ||
dataSets.forEach(function (data, i) { | ||
if (disabledDataSets.indexOf(data) >= 0) { | ||
if (disabledDataSets.indexOf(data) >= 0 || data.donors.length < minimumDonors) { | ||
return | ||
@@ -184,0 +185,0 @@ } |
{ | ||
"name": "@oncojs/survivalplot", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"browser": true, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
18632
444