@oncojs/survivalplot
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -17,4 +17,4 @@ 'use strict'; | ||
palette: ['#0e6402', '#c20127', '#00005d'], | ||
xAxisLabel: 'Survival Rate', | ||
yAxisLabel: 'Duration (days)', | ||
xAxisLabel: 'Duration (days)', | ||
yAxisLabel: 'Survival Rate', | ||
margins: { | ||
@@ -30,3 +30,2 @@ top: 20, | ||
var _$defaultsDeep = _.defaultsDeep({}, params, defaultOptions), | ||
svg = _$defaultsDeep.svg, | ||
container = _$defaultsDeep.container, | ||
@@ -44,2 +43,10 @@ dataSets = _$defaultsDeep.dataSets, | ||
var svg = d3.select(container).selectAll('svg'); | ||
if (svg.empty()) { | ||
svg = d3.select(container).append('svg'); | ||
} else { | ||
svg.selectAll('*').remove(); | ||
} | ||
var containerBounds = container.getBoundingClientRect(); | ||
@@ -46,0 +53,0 @@ |
{ | ||
"name": "@oncojs/survivalplot", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "dist/survivalplot.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12306
313
0