Skip to main content

Interface: TimeFrameItem

Charting Library.TimeFrameItem

Definition of visible timeframes that can be selected at the bottom of the chart

Example

{ text: "3y", resolution: "1W", description: "3 Years", title: "3yr" }

Properties

description

Optional description: string

Optional text displayed in the pop-up menu. If not set, title wil be used instead.


resolution

resolution: ResolutionString

Resolution to be set


text

text: string

Defines the range to be set for the given resolution. It has the <integer><y|m|d> ( \d+(y|m|d) as Regex ) format.


title

Optional title: string

Optional text representing the time frame. If not set a generated string will be set based on text property.