The chart options chart.applyOptions changes at runtime, without recreating the chart.

interface ChartApplyOptions {
    canvas?: CanvasOptions;
    crosshairMode?: CrosshairMode;
    crosshairSnapToBar?: boolean;
    grid?: Partial<GridOptions>;
    legendIconSize?: number;
    priceFormatter?: null | (price: number) => string;
    priceScale?: Partial<PriceScaleOptions>;
    statusLine?: LegendStatusLineOptions;
    theme?: ChartTheme;
    timeFormatter?: (utcSeconds: number, tickMark?: TickMarkType) => string;
    timezone?: string;
}

Properties

canvas?: CanvasOptions
crosshairMode?: CrosshairMode
crosshairSnapToBar?: boolean
grid?: Partial<GridOptions>
legendIconSize?: number
priceFormatter?: null | (price: number) => string
priceScale?: Partial<PriceScaleOptions>
theme?: ChartTheme
timeFormatter?: (utcSeconds: number, tickMark?: TickMarkType) => string
timezone?: string