Skip to content

Commit b4664f7

Browse files
committed
Sankey percy mock
1 parent d42d737 commit b4664f7

File tree

4 files changed

+66
-11
lines changed

4 files changed

+66
-11
lines changed

dev/mocks.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"/percy/violin.json",
1010
"/percy/waterfall.json",
1111
"/percy/sunburst.json",
12+
"/percy/sankey.json",
1213
"0.json",
1314
"1.json",
1415
"10.json",

dev/percy/index.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import panelTest from './panelTest.json';
2-
import histogram from './histogram.json';
3-
import histogram2d from './histogram2d.json';
4-
import pie from './pie.json';
5-
import violin from './violin.json';
6-
import bar from './bar.json';
7-
import box from './box.json';
8-
import waterfall from './waterfall.json';
9-
import sunburst from './sunburst.json';
10-
11-
export {panelTest, histogram, histogram2d, pie, violin, bar, box, waterfall, sunburst};
1+
export {default as panelTest} from './panelTest.json';
2+
export {default as histogram} from './histogram.json';
3+
export {default as histogram2d} from './histogram2d.json';
4+
export {default as pie} from './pie.json';
5+
export {default as violin} from './violin.json';
6+
export {default as bar} from './bar.json';
7+
export {default as box} from './box.json';
8+
export {default as waterfall} from './waterfall.json';
9+
export {default as sunburst} from './sunburst.json';
10+
export {default as sankey} from './sankey.json';

dev/percy/sankey.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"data": [
3+
{
4+
"type": "sankey",
5+
"mode": "markers",
6+
"link": {
7+
"value": [
8+
124.729,
9+
0.597,
10+
26.862
11+
],
12+
"valuesrc": "x1",
13+
"source": [
14+
0,
15+
1,
16+
1
17+
],
18+
"sourcesrc": "x1",
19+
"target": [
20+
1,
21+
2,
22+
3
23+
],
24+
"targetsrc": "x1"
25+
},
26+
"node": {
27+
"label": [
28+
"A",
29+
"B",
30+
"C"
31+
],
32+
"labelsrc": "x1"
33+
}
34+
}
35+
],
36+
"layout": {
37+
"xaxis": {
38+
"range": [
39+
-1,
40+
6
41+
],
42+
"autorange": true
43+
},
44+
"yaxis": {
45+
"range": [
46+
-1,
47+
4
48+
],
49+
"autorange": true
50+
},
51+
"autosize": true
52+
},
53+
"frames": []
54+
}

src/__stories__/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const panelsToTest = {
2626
violin: ['GraphCreatePanel', 'StyleTracesPanel'],
2727
waterfall: ['GraphCreatePanel', 'StyleTracesPanel'],
2828
sunburst: ['GraphCreatePanel', 'StyleTracesPanel'],
29+
sankey: ['GraphCreatePanel', 'StyleTracesPanel'],
2930
};
3031

3132
window.URL.createObjectURL = function() {

0 commit comments

Comments
 (0)