Skip to content

Latest commit

 

History

History
61 lines (56 loc) · 1 KB

TYPES.md

File metadata and controls

61 lines (56 loc) · 1 KB

Chart Layout types

{
    layout?: {
        backgroundColor: string;
        textColor: string;
    };
    grid?: {
        vertLines?: {
        color: string;
        style: LineStyle;
        };
        horzLines?: {
        color: "#838fa3";
        style: LineStyle;
        };
    };
    crosshair?: {
        mode: CrosshairMode;
    };
    priceScale?: {
        borderColor: string;
    };
    timeScale?: {
        borderColor: string;
        timeVisible: boolean;
        secondsVisible: boolean;
    };
}

Candlestick Config type

{
    upColor?: string;
    downColor?: string;
    borderDownColor?: string;
    borderUpColor?: string;
    wickDownColor?: string;
    wickUpColor?: string;
}

Histogram Config type

{
  base?: number;
  lineWidth?: number;
  priceFormat?: {
    type: string;
  };
  overlay?: boolean;
  scaleMargins?: {
    top?: number;
    bottom?: number;
  };
}