Graph: fixes storybook crashing when using the story (#35251)

* Graph: fixes storybook crashing when using the story

* fixes the GraphWithLegend story too
This commit is contained in:
Uchechukwu Obasi 2021-06-04 15:22:11 +01:00 committed by GitHub
parent 3331506660
commit 70155c7fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ export default {
disable: true, disable: true,
}, },
controls: { controls: {
exclude: ['className', 'series', 'timeRange', 'ariaLabel'], exclude: ['className', 'ariaLabel'],
}, },
}, },
args: { args: {
@ -107,7 +107,7 @@ export default {
tooltipMode: { control: { type: 'radio', options: ['multi', 'single'] } }, tooltipMode: { control: { type: 'radio', options: ['multi', 'single'] } },
timeZone: { control: { type: 'radio', options: ['browser', 'utc'] } }, timeZone: { control: { type: 'radio', options: ['browser', 'utc'] } },
width: { control: { type: 'range', min: 200, max: 800 } }, width: { control: { type: 'range', min: 200, max: 800 } },
height: { control: { type: 'range', min: 200, max: 800 } }, height: { control: { type: 'range', min: 200, max: 1700, step: 300 } },
lineWidth: { control: { type: 'range', min: 1, max: 10 } }, lineWidth: { control: { type: 'range', min: 1, max: 10 } },
}, },
}; };

View File

@ -15,7 +15,7 @@ export default {
disable: true, disable: true,
}, },
controls: { controls: {
exclude: ['className', 'series', 'timeRange', 'ariaLabel', 'legendDisplayMode'], exclude: ['className', 'ariaLabel', 'legendDisplayMode'],
}, },
}, },
argTypes: { argTypes: {
@ -24,7 +24,7 @@ export default {
rightAxisSeries: { name: 'Right y-axis series, i.e. A,C' }, rightAxisSeries: { name: 'Right y-axis series, i.e. A,C' },
timeZone: { control: { type: 'radio', options: ['browser', 'utc'] } }, timeZone: { control: { type: 'radio', options: ['browser', 'utc'] } },
width: { control: { type: 'range', min: 200, max: 800 } }, width: { control: { type: 'range', min: 200, max: 800 } },
height: { control: { type: 'range', min: 200, max: 800 } }, height: { control: { type: 'range', min: 1700, step: 300 } },
lineWidth: { control: { type: 'range', min: 1, max: 10 } }, lineWidth: { control: { type: 'range', min: 1, max: 10 } },
}, },
}; };