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

* Graph: fixes storybook crashing when using the story

* fixes the GraphWithLegend story too

(cherry picked from commit 70155c7fd0)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-04 16:52:58 +02:00
committed by GitHub
co-authored by Uchechukwu Obasi
parent 1aaed7c2fe
commit 74eb38e2fc
2 changed files with 4 additions and 4 deletions
@@ -85,7 +85,7 @@ export default {
disable: true,
},
controls: {
exclude: ['className', 'series', 'timeRange', 'ariaLabel'],
exclude: ['className', 'ariaLabel'],
},
},
args: {
@@ -107,7 +107,7 @@ export default {
tooltipMode: { control: { type: 'radio', options: ['multi', 'single'] } },
timeZone: { control: { type: 'radio', options: ['browser', 'utc'] } },
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 } },
},
};
@@ -15,7 +15,7 @@ export default {
disable: true,
},
controls: {
exclude: ['className', 'series', 'timeRange', 'ariaLabel', 'legendDisplayMode'],
exclude: ['className', 'ariaLabel', 'legendDisplayMode'],
},
},
argTypes: {
@@ -24,7 +24,7 @@ export default {
rightAxisSeries: { name: 'Right y-axis series, i.e. A,C' },
timeZone: { control: { type: 'radio', options: ['browser', 'utc'] } },
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 } },
},
};