@oncojs/survivalplot
Advanced tools
Comparing version 0.7.2 to 0.8.1
@@ -24,10 +24,6 @@ 'use strict'; | ||
var _lodash7 = require('lodash.uniqby'); | ||
var _lodash7 = require('lodash.groupby'); | ||
var _lodash8 = _interopRequireDefault(_lodash7); | ||
var _lodash9 = require('lodash.groupby'); | ||
var _lodash10 = _interopRequireDefault(_lodash9); | ||
var _debug = require('debug'); | ||
@@ -41,3 +37,2 @@ | ||
var error = (0, _debug2.default)('survivalplot:error'); | ||
var log = (0, _debug2.default)('survivalplot:log'); | ||
@@ -62,3 +57,3 @@ | ||
}, | ||
shouldShowConfidenceIntervals: false, | ||
shouldShowConfidenceIntervals: true, | ||
confidenceAreaOpacity: 0.2 | ||
@@ -148,3 +143,3 @@ }; | ||
}).classed('minor', true); | ||
gy.selectAll('text').attr('x', -20); | ||
gy.selectAll('text').attr('x', -30).attr('text-anchor', 'end'); | ||
gy.append('svg:text').attr('class', 'axis-label').attr('text-anchor', 'middle').attr('transform', 'rotate(-90)').attr('y', -40).attr('x', -(axisHeight / 2)).text(yAxisLabel); | ||
@@ -213,3 +208,3 @@ | ||
}; | ||
var groupedDonors = (0, _lodash10.default)(donorsInRange, groupingFunction); | ||
var groupedDonors = (0, _lodash8.default)(donorsInRange, groupingFunction); | ||
var sampledDataPoints = Object.values(groupedDonors).map(function (x) { | ||
@@ -216,0 +211,0 @@ return x[0]; |
13
index.js
@@ -5,7 +5,5 @@ import d3 from 'd3' | ||
import inRange from 'lodash.inrange' | ||
import uniqBy from 'lodash.uniqby' | ||
import groupBy from 'lodash.groupby' | ||
import debug from 'debug' | ||
const error = debug('survivalplot:error') | ||
const log = debug('survivalplot:log') | ||
@@ -30,3 +28,3 @@ | ||
}, | ||
shouldShowConfidenceIntervals: false, | ||
shouldShowConfidenceIntervals: true, | ||
confidenceAreaOpacity: 0.2, | ||
@@ -83,3 +81,3 @@ } | ||
.map(data => data.donors.slice(-1)[0].time)) | ||
var xDomain = params.xDomain || [0, longestDuration] | ||
@@ -133,3 +131,4 @@ var onDomainChange = params.onDomainChange | ||
gy.selectAll('text') | ||
.attr('x', -20) | ||
.attr('x', -30) | ||
.attr('text-anchor', 'end') | ||
gy.append('svg:text') | ||
@@ -196,3 +195,3 @@ .attr('class', 'axis-label') | ||
.y(d => y(d.survivalEstimate)) | ||
var confidenceArea = ( | ||
@@ -233,3 +232,3 @@ d3.svg | ||
.attr('stroke', setColor) | ||
// Draw the confidence interval | ||
@@ -236,0 +235,0 @@ shouldShowConfidenceIntervals && setGroup.append('svg:path') |
{ | ||
"name": "@oncojs/survivalplot", | ||
"version": "0.7.2", | ||
"version": "0.8.1", | ||
"browser": true, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
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
18390
3
441
1
1