diff --git a/src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx b/src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx new file mode 100644 index 00000000..0e63780c --- /dev/null +++ b/src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx @@ -0,0 +1,58 @@ +import type { Meta, StoryObj } from '@storybook/react' + +import UptimeChart from './UptimeChart' + +const meta = { + title: 'Dashboard/UptimeChart', + component: UptimeChart, + parameters: { + layout: 'centered', + }, + decorators: [ + Story => ( +
+ +
+ ), + ], + tags: ['autodocs'], +} satisfies Meta + +export default meta +type Story = StoryObj + +export const WithoutLabels: Story = { + args: { + data: [ + { + pv: 1, + pa: 1, + }, + { + pv: 0, + pa: 0, + }, + { + pv: 0, + pa: 0, + }, + { + pv: 0, + pa: 1, + }, + { + pv: 0, + pa: 0, + }, + { + pv: 1, + pa: 0, + }, + { + pv: 0, + pa: 1, + }, + ] + + }, +}