Files
HMDesign/packages/chart/src/index.ts
T
shkim4 db0bfe2d34 feat(chart): add solid (thick) pie and donut charts
Add HMSolidPieChart and HMSolidDonutChart: a tilted, SVG-drawn disc with an
outer wall and, for the donut, an inner wall seen through the hole. Same data,
slice angles, order, legend and tooltip as the 2D charts; the tooltip is the
same on the top face and the walls and follows the pointer. The existing 2D
charts and their props are unchanged.

- Side walls use darker HM tokens (--hm-chart-1-side .. --hm-chart-5-side) and
  a color-mix darkening for custom colors; shared chart tokens are untouched.
- Add a "입체형" example to the Pie Chart and Donut Chart stories
  (PieSolidExample, DonutSolidExample); ExampleCard description is now optional.
- Document usage and constraints in the chart package README.
2026-11-06 17:44:49 +09:00

39 lines
1.9 KiB
TypeScript

import "./chart.css"
// shadcn/ui Chart primitives (official source) for custom Recharts compositions.
export {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
ChartLegend,
ChartLegendContent,
ChartStyle,
} from "./components/chart"
export type { ChartConfig } from "./components/chart"
// Ready-made HM charts. Sample data lives in the separate "@hm-design/chart/examples" entry.
export { HMBarChart } from "./components/bar-chart"
export type { HMBarChartProps } from "./components/bar-chart"
export { HMHorizontalBarChart } from "./components/horizontal-bar-chart"
export type { HMHorizontalBarChartProps } from "./components/horizontal-bar-chart"
export { HMSignedBarChart } from "./components/signed-bar-chart"
export type { HMSignedBarChartProps } from "./components/signed-bar-chart"
export { HMLineChart } from "./components/line-chart"
export type { HMLineChartProps } from "./components/line-chart"
export { HMDonutChart } from "./components/donut-chart"
export type { HMDonutChartProps, HMDonutDatum } from "./components/donut-chart"
export { chartColors } from "./components/series"
export type { ChartSeries } from "./components/series"
export { HMPieChart, HMStackedPieChart } from "./components/pie-chart"
export type { HMPieChartProps, HMPieRing, HMStackedPieChartProps } from "./components/pie-chart"
export { HMSolidPieChart, HMSolidDonutChart } from "./components/solid-chart"
export type { HMSolidPieChartProps, HMSolidDonutChartProps } from "./components/solid-chart"
export { HMRadarChart } from "./components/radar-chart"
export type { HMRadarChartProps } from "./components/radar-chart"
export { HMAreaChart } from "./components/area-chart"
export type { HMAreaChartProps } from "./components/area-chart"
export { HMRadialBarChart, HMRadialMeterChart, HMRadialStackedChart } from "./components/radial-chart"
export type { HMRadialBarChartProps, HMRadialMeterChartProps, HMRadialStackedChartProps } from "./components/radial-chart"