import type { Meta, StoryObj } from "@storybook/react-vite" import { HMLineChart } from "@hm-design/chart" import { sampleLineCompare, sampleLinePointColors } from "@hm-design/chart/examples" import { StoryPage, StoryPageHeader, StorySectionGrid } from "@/components/story-page" import { ChartSampleNotice, ChartSpecimen, chartGrid, chartPageClass } from "./chart-story" // Sample data only. All six charts share one data set and axis range, so connection styles compare directly: curve, straight // and step, each as a plain line and with Dots and value labels. Same data and props as the @hm-design/chart/examples cards; // open layout (no card): see chart-story.tsx. const meta = { title: "Chart/Line Chart", parameters: { layout: "fullscreen", controls: { disable: true } }, } satisfies Meta export default meta type Story = StoryObj export const Line: Story = { name: "Line Chart", render: () => ( {/* Source order is the mobile order. 1024px: Curve | Curve + labels per row. 1200px: three columns, plain styles in the first row and their Dot + Label versions below. */} ), }