From 1ab4ffb03d4c8c646be819da4f0a83e776ba0eb7 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Wed, 30 Jun 2021 17:08:34 +0300 Subject: [PATCH] Fix Graph story (#36259) --- .../Graph/GraphWithLegend.story.internal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/grafana-ui/src/components/Graph/GraphWithLegend.story.internal.tsx b/packages/grafana-ui/src/components/Graph/GraphWithLegend.story.internal.tsx index b44568bb692..57f91a7c9ca 100644 --- a/packages/grafana-ui/src/components/Graph/GraphWithLegend.story.internal.tsx +++ b/packages/grafana-ui/src/components/Graph/GraphWithLegend.story.internal.tsx @@ -12,14 +12,14 @@ export default { decorator: [withCenteredStory], parameters: { controls: { - exclude: ['className', 'ariaLabel', 'legendDisplayMode'], + exclude: ['className', 'ariaLabel', 'legendDisplayMode', 'series'], }, }, argTypes: { - displayMode: { control: { type: 'radio', options: ['table', 'list', 'hidden'] } }, - placement: { control: { type: 'radio', options: ['bottom', 'right'] } }, + displayMode: { control: { type: 'radio' }, options: ['table', 'list', 'hidden'] }, + placement: { control: { type: 'radio' }, options: ['bottom', 'right'] }, 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 } }, height: { control: { type: 'range', min: 1700, step: 300 } }, lineWidth: { control: { type: 'range', min: 1, max: 10 } }, @@ -124,8 +124,8 @@ export const WithLegend: Story = ({ rightAxisSeries, displayMode, le ? LegendDisplayMode.Table : LegendDisplayMode.List } - {...props} {...args} + {...props} /> ); };