Skip to content

Commit 813eb47

Browse files
authored
test(storybook): fix axis options (#774)
1 parent 17a715e commit 813eb47

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

stories/Chart.data.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,9 @@ export const multiTypeData = {
3737

3838
export const dynamicOptions = {
3939
scales: {
40-
yAxes: [
41-
{
42-
ticks: {
43-
beginAtZero: true,
44-
},
45-
},
46-
],
40+
y: {
41+
beginAtZero: true,
42+
},
4743
},
4844
};
4945

@@ -79,13 +75,9 @@ export const getDynamicData = () => ({
7975

8076
export const eventsOptions = {
8177
scales: {
82-
yAxes: [
83-
{
84-
ticks: {
85-
beginAtZero: true,
86-
},
87-
},
88-
],
78+
y: {
79+
beginAtZero: true,
80+
},
8981
},
9082
};
9183

stories/Scatter.data.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ function pos() {
99

1010
export const options = {
1111
scales: {
12-
yAxes: [
13-
{
14-
ticks: {
15-
beginAtZero: true,
16-
},
17-
},
18-
],
12+
y: {
13+
beginAtZero: true,
14+
},
1915
},
2016
};
2117

0 commit comments

Comments
 (0)