Skip to content

Commit 7341a5f

Browse files
committed
Add multilabel
1 parent d890348 commit 7341a5f

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

test/e2e/tests/features.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
},
4040
"data_input/big_category_indexed": {
4141
"refs": ["d8538cb"]
42+
},
43+
"multilabel": {
44+
"refs": ["6356a25"]
4245
}
4346
}
4447
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
const testSteps = [
2+
(chart) =>
3+
chart.animate({
4+
data: {
5+
series: [
6+
{
7+
name: 'Foo',
8+
values: ['Ted', 'Alice', 'Bob', 'Ted', 'Alice', 'Bob', 'Ted']
9+
},
10+
{ name: 'Foo2', values: ['A', 'A', 'A', 'B', 'B', 'B', 'A'] },
11+
{ name: 'Foo3', values: ['X', 'Y', 'Z', 'X', 'Y', 'Z', 'Y'] },
12+
{ name: 'Bar', values: [23, 32, 12, 15, 41, 31, 1] }
13+
]
14+
}
15+
}),
16+
(chart) =>
17+
chart.animate({
18+
x: ['Foo', 'Foo2'],
19+
y: 'Bar'
20+
}),
21+
(chart) =>
22+
chart.animate({
23+
x: { labelLevel: 1 }
24+
}),
25+
(chart) =>
26+
chart.animate({
27+
x: { labelLevel: "[0, 1]" }
28+
}),
29+
(chart) =>
30+
chart.animate({
31+
x: { labelLevel: "[1, 0]" }
32+
}),
33+
(chart) =>
34+
chart.animate({
35+
color: ['Foo', 'Foo2'],
36+
legend: "color"
37+
}),
38+
(chart) =>
39+
chart.animate({
40+
color: { labelLevel: 1 }
41+
}),
42+
(chart) =>
43+
chart.animate({
44+
color: { labelLevel: "[0, 1]" }
45+
}),
46+
(chart) =>
47+
chart.animate({
48+
color: { labelLevel: "[1, 0]" }
49+
}),
50+
]
51+
52+
export default testSteps

0 commit comments

Comments
 (0)