import type { Meta, StoryObj } from "@storybook/react-vite" import { DonutActiveExample, DonutCenterExample, DonutInteractiveExample, DonutPlainExample, } from "@hm-design/chart/examples" import { StoryPage, StoryPageHeader, StorySection } from "@/components/story-page" // Sample data only. The four examples share one data set, color mapping and item order. const meta = { title: "Chart/Donut Chart", parameters: { layout: "fullscreen", controls: { disable: true } }, } satisfies Meta export default meta type Story = StoryObj export const Donut: Story = { name: "Donut Chart", render: () => ( {/* Same grid as Bar and Line Chart: two per row from 1024px, one below; source order is the mobile order. */}
), }