Interface SessionShadeOptions

interface SessionShadeOptions {
    calendar?: null | SessionPhaseSource;
    extendedColor?: null | string;
    postColor?: null | string;
    preColor?: null | string;
    visible?: boolean;
}

Properties

calendar?: null | SessionPhaseSource

The hours to shade by. Absent or null, the chart's own calendar is read each frame (chart.setSessionCalendar, Instrument.applyTo), so the shade follows the instrument and clears when the chart drops its hours.

extendedColor?: null | string

Wash behind extended-hours bars; null leaves them unshaded. Default: a faint tint of the theme's axis text.

postColor?: null | string

Wash behind post-close bars; null leaves them unshaded. Default: a faint amber.

preColor?: null | string

Wash behind pre-open bars; null leaves them unshaded. Default: a faint tint of the theme's line colour.

visible?: boolean

Draw at all. Default true.