Skip to content

Commit 3625234

Browse files
committed
update d3-sankey-circular and associated baselines
1 parent 003704c commit 3625234

9 files changed

+272
-239
lines changed

package-lock.json

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"country-regex": "^1.1.0",
6767
"d3": "^3.5.12",
6868
"@plotly/d3-sankey": "0.7.2",
69-
"d3-sankey-circular": "0.30.0",
69+
"d3-sankey-circular": "git://github.com/plotly/d3-sankey-circular.git#4da7da7572809de361cbe4aceed813ea536de005",
7070
"d3-force": "^1.0.6",
7171
"d3-interpolate": "1",
7272
"delaunay-triangulate": "^1.1.6",
147 KB
Loading
-1.03 KB
Loading
39.2 KB
Loading
Loading

test/image/mocks/sankey_circular_large.json

Lines changed: 227 additions & 232 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"data": [
3+
{
4+
"type": "sankey",
5+
"node": {
6+
"pad": 5,
7+
"label": ["0", "1", "2", "3", "sink", "source"]
8+
},
9+
"link": {
10+
"source": [
11+
0, 1, 2, 3,
12+
0, 1, 2, 3,
13+
5
14+
],
15+
"target": [
16+
1, 2, 3, 0,
17+
4, 4, 4, 4,
18+
0
19+
],
20+
"value": [
21+
1, 0.85, 0.7, 0.55,
22+
0, 0.15, 0.15, 0.15,
23+
0.45
24+
]
25+
}
26+
}],
27+
"layout": {
28+
"width": 800,
29+
"height": 800
30+
}
31+
}

test/jasmine/tests/sankey_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,6 @@ describe('sankey layout generators', function() {
11771177
sankey = d3SankeyCircular
11781178
.sankeyCircular()
11791179
.iterations(32)
1180-
.circularLinkGap(2)
11811180
.nodePadding(10)
11821181
.size([500, 500])
11831182
.nodeId(function(d) {
@@ -1194,7 +1193,7 @@ describe('sankey layout generators', function() {
11941193
var circularLinks = graph.links.filter(function(link) {
11951194
return link.circular;
11961195
});
1197-
expect(circularLinks.length).toEqual(194, 'right number of circular links');
1196+
expect(circularLinks.length).toEqual(89, 'right number of circular links');
11981197
});
11991198
});
12001199
});

0 commit comments

Comments
 (0)