chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
62 lines (61 loc) • 1.29 kB
TypeScript
/**
* 차트 설정 타입 정의
*/
export interface ChartSettings {
candle?: {
upColor?: string;
downColor?: string;
upWickColor?: string;
downWickColor?: string;
};
bar?: {
upColor?: string;
downColor?: string;
};
line?: {
color?: string;
width?: number;
};
grid?: {
show?: boolean;
color?: string;
style?: 'solid' | 'dashed' | 'dotted';
};
crosshair?: {
show?: boolean;
color?: string;
width?: number;
style?: 'solid' | 'dashed' | 'dotted';
};
volume?: {
upColor?: string;
downColor?: string;
opacity?: number;
};
background?: {
color?: string;
};
text?: {
color?: string;
font?: string;
fontSize?: number;
};
axis?: {
color?: string;
fontSize?: number;
format?: {
price?: (price: number) => string;
time?: (time: number) => string;
volume?: (volume: number) => string;
};
};
panel?: {
margin?: {
top?: number;
bottom?: number;
left?: number;
right?: number;
};
spacing?: number;
};
}