Skip to content

Commit 7d2cb5e

Browse files
authored
Merge pull request #619 from vizzuhq/axis_refactor_v12b
Axis refactor v12b - Move split align sort and reverse to AxisChannelProperties
2 parents a87fefc + 3fa1330 commit 7d2cb5e

File tree

415 files changed

+1103
-1661
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+1103
-1661
lines changed

docs/tutorial/align_range/01.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
chart.animate({
22
config: {
3-
align: 'center',
43
channels: {
54
y: {
5+
align: 'center',
66
labels: false
77
}
88
}

docs/tutorial/align_range/02_b.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
chart.animate({
22
config: {
3-
align: 'stretch',
4-
channels: {
5-
y: {
6-
labels: true
7-
}
3+
y: {
4+
align: 'stretch',
5+
labels: true
86
}
97
}
108
})

docs/tutorial/align_range/03_b.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
chart.animate({
22
config: {
3-
align: 'none'
3+
y: {
4+
align: 'none'
5+
}
46
}
57
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
chart.animate({
22
config: {
3-
split: true
3+
x: { split: true }
44
}
55
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
chart.animate({
22
config: {
3-
split: false
3+
x: { split: false }
44
}
55
})
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
chart.animate({
22
// config: {
3-
align: 'stretch'
3+
y: {
4+
align: 'stretch'
5+
}
46
// }
57
})

docs/tutorial/shorthands_store/03_b.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ chart
99
},
1010
// y: { detach: [ 'Kinds' ] },
1111
y: {
12-
detach: 'Kinds'
12+
detach: 'Kinds',
13+
align: 'none'
1314
}
14-
},
15-
align: 'none'
15+
}
1616
})
1717
.activated.then((control) => {
1818
animation = control.store()

docs/tutorial/shorthands_store/08.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ chart.animate(
33
style: null,
44
config: {
55
title: 'Store function',
6-
align: 'stretch',
6+
77
channels: {
8-
y: ['Popularity', 'Kinds'],
8+
y: {
9+
set: ['Popularity', 'Kinds'],
10+
align: 'stretch'
11+
},
912
x: ['Genres'],
1013
label: ['Popularity']
1114
},

docs/tutorial/shorthands_store/09.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ chart.animate({
22
style: null,
33
config: {
44
title: 'Store function',
5-
align: 'stretch',
65
channels: {
7-
y: ['Popularity', 'Kinds'],
6+
y: {
7+
set: ['Popularity', 'Kinds'],
8+
align: 'stretch'
9+
},
810
x: ['Genres'],
911
label: ['Popularity']
1012
},

docs/tutorial/sorting/01.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
chart.animate({
22
config: {
3-
sort: 'byValue'
3+
x: { sort: 'byValue' }
44
}
55
})

0 commit comments

Comments
 (0)