import type { Meta, StoryObj } from "@storybook/react-vite" import { BarChartExample, HorizontalBarChartExample, SignedBarChartExample, StackedBarChartExample, } from "@hm-design/chart/examples" import { StoryPage, StoryPageHeader, StorySection } from "@/components/story-page" // shadcn/ui Chart (Recharts) with HM tokens, from the public @hm-design/chart entries. All values are sample data. // Narrow widths: use the toolbar Viewport presets (HM Mobile ยท 390). The chart is fluid. const meta = { title: "Chart/Bar Chart", parameters: { layout: "fullscreen", controls: { disable: true } }, } satisfies Meta export default meta type Story = StoryObj export const Bar: Story = { name: "Bar Chart", render: () => ( {/* Two sections per row from 1024px (HM desktop boundary), one below. Source order is the mobile order; on desktop it reads row by row: Grouped | Horizontal, then Stacked | Positive / Negative. On desktop every row has the same height and each card fills its section, so card tops, bottoms and chart areas line up. */}
), }