@redsift/d3-rs-lines
Advanced tools
Comparing version 0.4.5 to 0.4.6
{ | ||
"name": "@redsift/d3-rs-lines", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "Generates line charts using D3v4.", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"@redsift/d3-rs-intl": "~0.1.0", | ||
"@redsift/d3-rs-legends": "~0.2.3", | ||
"@redsift/d3-rs-legends": "~0.2.5", | ||
"@redsift/d3-rs-svg": "~0.4.0", | ||
@@ -37,0 +37,0 @@ "@redsift/d3-rs-theme": "~0.4.2", |
@@ -533,3 +533,3 @@ | ||
item, | ||
{v: item.v.map((v, idx) => legends.length && legendsEnabled.includes(idx) ? v : null)} | ||
{v: item.v.map((v, idx) => legendsEnabled.includes(idx) ? v : null)} | ||
) | ||
@@ -536,0 +536,0 @@ ); |
@@ -23,3 +23,3 @@ var tape = require("@redsift/tape-reel")("<div id='test'></div>"), | ||
var el = d3.select('#test'); | ||
el.datum([ 1, 2 ]).call(host); | ||
el.datum([{l: 1, v:[1, 2]}]).call(host); | ||
@@ -31,4 +31,4 @@ t.equal(el.selectAll('svg').size(), 1); | ||
// In this chart, one path should be there | ||
t.equal(node.selectAll('path.stroke').size(), 1); | ||
t.equal(node.selectAll('path.area').size(), 1); | ||
t.equal(node.selectAll('path.stroke').size(), 2); | ||
t.equal(node.selectAll('path.area').size(), 2); | ||
@@ -42,3 +42,3 @@ t.end(); | ||
var el = d3.select('#test'); | ||
el.datum([ [ 0, 1 ], [ 1, 2 ] ]).call(host); | ||
el.datum([ {l: 1, v:[ 0, 1 ]}, {l: 2, v:[ 1, 2 ]} ]).call(host); | ||
@@ -53,3 +53,3 @@ t.equal(el.selectAll('svg').size(), 1); | ||
t.equal(node.selectAll('.voronoi path.series-0').size(), 2); | ||
t.equal(node.selectAll('.voronoi path.series-0').size(), 0); | ||
t.equal(node.selectAll('.voronoi path.series-1').size(), 2); | ||
@@ -63,3 +63,3 @@ | ||
tape("html() data reentrant", function(t) { | ||
var data = [ [ 0, 1 ], [ 1, 2 ] ]; | ||
var data = [ {v:[ 0, 1 ]}, {v:[ 1, 2 ]} ]; | ||
@@ -91,3 +91,3 @@ var host = lines.html(); | ||
var el = d3.select('#test'); | ||
el.datum([ [ 0, 1 ], [ 1, 2 ] ]).call(host); | ||
el.datum([ {v:[ 0, 1 ]}, {v:[ 1, 2 ]} ]).call(host); | ||
@@ -97,5 +97,5 @@ t.equal(el.selectAll('svg').size(), 1); | ||
t.equal(el.selectAll('.voronoi path').size(), 4, '4 voronoi polygons'); | ||
t.equal(el.selectAll('.voronoi text').size(), 2, '2 text labels'); | ||
t.equal(el.selectAll('.voronoi text').size(), 1, '1 text labels'); | ||
el.datum([ [ 0, 1 ] ]).call(host); | ||
el.datum([ {v: [ 0, 1 ]} ]).call(host); | ||
@@ -102,0 +102,0 @@ t.equal(el.selectAll('.voronoi path').size(), 2, '2 voronoi polygons'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
1117110
12186