Skip to content

Commit 80314b2

Browse files
committed
add sunburst + cartesian + pie mock
1 parent d617a1b commit 80314b2

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed
31.8 KB
Loading
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"data": [
3+
{
4+
"name": "pie",
5+
"type": "pie",
6+
"labels": [
7+
"A",
8+
"B",
9+
"C"
10+
],
11+
"values": [
12+
3,
13+
2,
14+
1
15+
],
16+
"domain": {
17+
"x": [
18+
0,
19+
0.48
20+
],
21+
"y": [
22+
0.52,
23+
1
24+
]
25+
}
26+
},
27+
{
28+
"name": "sunburst",
29+
"type": "sunburst",
30+
"parents": [
31+
"",
32+
"A",
33+
"B"
34+
],
35+
"labels": [
36+
"A",
37+
"B",
38+
"C"
39+
],
40+
"values": [
41+
3,
42+
2,
43+
1
44+
],
45+
"domain": {
46+
"x": [
47+
0.52,
48+
1
49+
],
50+
"y": [
51+
0,
52+
0.48
53+
]
54+
}
55+
},
56+
{
57+
"name": "bar",
58+
"type": "bar",
59+
"x": [
60+
"A",
61+
"B",
62+
"C"
63+
],
64+
"y": [
65+
3,
66+
2,
67+
1
68+
]
69+
},
70+
{
71+
"name": "waterfall",
72+
"type": "waterfall",
73+
"x": [
74+
"A",
75+
"B",
76+
"C"
77+
],
78+
"y": [
79+
3,
80+
-2,
81+
1
82+
],
83+
"xaxis": "x2",
84+
"yaxis": "y2"
85+
}
86+
],
87+
"layout": {
88+
"width": 600,
89+
"height": 600,
90+
"dragmode": "pan",
91+
"xaxis": {
92+
"domain": [
93+
0,
94+
0.48
95+
]
96+
},
97+
"xaxis2": {
98+
"anchor": "y2",
99+
"domain": [
100+
0.52,
101+
1
102+
]
103+
},
104+
"yaxis": {
105+
"domain": [
106+
0,
107+
0.48
108+
]
109+
},
110+
"yaxis2": {
111+
"anchor": "x2",
112+
"domain": [
113+
0.52,
114+
1
115+
]
116+
},
117+
"title": {
118+
"text": "Sunburst + Pie + Cartesian"
119+
}
120+
}
121+
}

0 commit comments

Comments
 (0)