Interface WidgetBottombarOptions

The widget options the bottom bar and the session calendar read.

interface WidgetBottombarOptions {
    bottombar?: boolean;
    ranges?: readonly WidgetRange[];
    sessionCalendar?: WidgetSessionCalendar;
    sessionShading?: boolean;
}

Hierarchy (View Summary)

Properties

bottombar?: boolean

The strip under the chart: preset ranges and Go to on the left, the market status, a clock that opens the timezone choice and the price scale toggles on the right. The phone layout hides it and lists its controls in the More sheet. Default true.

ranges?: readonly WidgetRange[]

Preset ranges for the bar and setRange. [] leaves the range buttons out. Default DEFAULT_RANGES.

sessionCalendar?: WidgetSessionCalendar

Trading hours, applied with chart.setSessionCalendar for the first symbol and on every symbol change. They size a range's fetch in sessions, give the bar its market status and the shading its hours. Default: the widget leaves the chart's calendar to the host.

sessionShading?: boolean

Shade the pre-open, post-close and extended-hours bars from the chart's calendar (attachSessionShading). A calendar without those hours, or no calendar, shades nothing. Default true.