diff --git a/packages/go-ui-storybook/src/stories/BarChart.stories.tsx b/packages/go-ui-storybook/src/stories/BarChart.stories.tsx index 0cda7d565..4ba471ad8 100644 --- a/packages/go-ui-storybook/src/stories/BarChart.stories.tsx +++ b/packages/go-ui-storybook/src/stories/BarChart.stories.tsx @@ -1,6 +1,5 @@ import { BarChartProps } from '@ifrc-go/ui'; import type { - Args, Meta, StoryObj, } from '@storybook/react'; @@ -14,21 +13,19 @@ interface Option { } const data: Option[] = [ - { id: 1, label: '2022', value: 10 }, - { id: 2, label: '2023', value: 9 }, - { id: 3, label: '2024', value: 5 }, - { id: 4, label: '2020', value: 2 }, + { id: 1, label: 'Apples', value: 50 }, + { id: 2, label: 'Oranges', value: 30 }, + { id: 3, label: 'Bananas', value: 20 }, + { id: 4, label: 'Grapes', value: 40 }, ]; const keySelector = (d: Option) => d.id; const valueSelector = (d: Option) => d.value; const labelSelector = (d: Option) => d.label; - const maxValue = Math.max(...data.map(valueSelector)); -type BarChartSpecificProps = BarChartProps