fone-design-system_v2 1.0.332 → 1.0.333

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ import { default as React } from 'react';
2
+ interface DataItem {
3
+ [key: string]: string | number | null;
4
+ }
5
+ type CurveType = "catmullRom" | "linear" | "monotoneX" | "monotoneY" | "natural" | "step" | "stepBefore" | "stepAfter";
6
+ export interface LineChartProps {
7
+ /** 차트에 표시할 데이터 */
8
+ data: DataItem[];
9
+ /** 차트의 너비 */
10
+ width?: number;
11
+ /** 차트의 높이 */
12
+ height?: number;
13
+ /** 데이터 시리즈 설정 */
14
+ series: {
15
+ /** 데이터셋에서 값으로 사용할 키 */
16
+ dataKey: string;
17
+ /** 시리즈 고유 id */
18
+ id: string;
19
+ /** 선 색상 */
20
+ color?: string;
21
+ /** 범례/툴팁에 표시할 라벨 */
22
+ label?: string;
23
+ /** 라인 아래 영역 채움 여부 (area chart) */
24
+ area?: boolean;
25
+ /** 선 보간 방식 */
26
+ curve?: CurveType;
27
+ /** 데이터 포인트 마커 표시 여부 */
28
+ showMark?: boolean;
29
+ /** 여러 시리즈를 쌓을 때 사용할 그룹 키 */
30
+ stack?: string;
31
+ /** 사용할 y축 id */
32
+ yAxisId?: string;
33
+ /** 연결 끊긴 데이터(null)를 이어 그릴지 여부 */
34
+ connectNulls?: boolean;
35
+ }[];
36
+ /** x축 설정 */
37
+ xAxis: any;
38
+ /** y축 설정 */
39
+ yAxis?: any;
40
+ /** 추가 클래스명 */
41
+ className?: string;
42
+ /** 차트 여백 설정 */
43
+ margin?: {
44
+ top?: number;
45
+ right?: number;
46
+ bottom?: number;
47
+ left?: number;
48
+ };
49
+ /** 그리드 표시 설정 */
50
+ grid?: {
51
+ vertical?: boolean;
52
+ horizontal?: boolean;
53
+ };
54
+ /** 애니메이션 비활성화 여부 */
55
+ skipAnimation?: boolean;
56
+ }
57
+ export declare const LineChart: React.ForwardRefExoticComponent<LineChartProps & React.RefAttributes<HTMLDivElement>>;
58
+ export {};
@@ -0,0 +1,2 @@
1
+ import { LineChart, LineChartProps } from './LineChart';
2
+ export { LineChart, LineChartProps };