From ffe90b7abf32e83cd8ff84ad0977edb688688950 Mon Sep 17 00:00:00 2001 From: Uchechukwu Obasi Date: Thu, 15 Apr 2021 12:51:00 +0100 Subject: [PATCH] VizLegend: sets a min and max value of the seriesCount control in Storybook (#33022) --- .../src/components/VizLegend/VizLegend.story.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/grafana-ui/src/components/VizLegend/VizLegend.story.tsx b/packages/grafana-ui/src/components/VizLegend/VizLegend.story.tsx index c21ffb51d09..050f9ae289b 100644 --- a/packages/grafana-ui/src/components/VizLegend/VizLegend.story.tsx +++ b/packages/grafana-ui/src/components/VizLegend/VizLegend.story.tsx @@ -27,6 +27,13 @@ export default { options: ['200px', '500px', '100%'], }, }, + seriesCount: { + control: { + type: 'number', + min: 1, + max: 8, + }, + }, }, } as Meta;