StaticfetchDefaults to the global fetch, but can be overridden via overrideFetch.
Optionalinit: RequestInitOptionalinit: RequestInitStaticaddset flag for the specified object has no effect if flag is already set For a list of flags and a detailed explanation see ObjectEFlags
Staticaddset flag for the specified objects option has no effect if flag is already set For a list of flags and a detailed explanation see ObjectEOptionFlags
Staticaddadd watermark drawing function to watermark registry
implementations can be set active by calling utils.set('activeWatermark', $name);
Additionally, it needs to be enabled for each Controller-instance by setting the showWatermark-setting to true.
Staticadjustadjust interval for span
Staticadjustadjust span for interval
StaticcloneStaticcomparecompare an object identifier returns true if identifiers match, false otherwise the optional parameter controls wether ids should be considered for comparison (default = true)
OptionalconsiderIds: booleanStaticconverttimestamp
timezone identifier of source timezone
timezone identifier of destination timezone
Staticellipsifyabbreviate text to specified maximum length by cutting of and appending an ellipsis
Staticequalscompares two objects
StaticfetchStaticfindMax function for Float64 buffers
StaticfindMin function for Float64 buffers
Staticformatbuilds a string using the supplied format and key value callback
supports variables like {NAME} variables can supply default values like {NAME:DEFAULT} if the value retrieved from the callback matches the default it will be skipped, same as if there was no value at all
multiple variables can be joined with {SEPARATOR|VARIABLE|VARIABLE|...}
also supports conditionals that are only displayed when at least one enclosed variable has a non-default value: "[Currency: {currency}]"
available variables depend on used data loader that has to provide them in the properties object as part of the metadata
Example: "{name}[ ({, |currency|qs})]" => "DAX (XXP, Last)" or "Foo (Bid)" or "Foo ($)" or "Foo"
StaticgetStatichascheck if a flag is set for the specified object For a list of flags and a detailed explanation see ObjectEFlags
Statichascheck if a flag is set for the specified objects option For a list of flags and a detailed explanation see ObjectEOptionFlags
Statichtmlentitiesreplace special characters by html entities
Staticintervalreturns the name for an interval
interval
ChartbreakerLocale.Translator
Optionalshort: booleanuse short forms (e.g. min instead of Minue), defaults to false
StaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticisOptionalobj: ChartbreakerObject<Record<string, (...args: any) => void>> | nullStaticlistStaticmergemerges properties of the second object into the first one
non-existing properties are simply added to the first object. if properties exist in both objects:
Staticnearestreturns the nearest predefined span for an arbitrary time span when passing a custom span array, the values need to be sorted in ascending order
Optionalspans: number[]Staticnormalizenormalize an object identifier (see parseIdentifier) Example: Instrument => Instrument Instrument() => Instrument Instrument(1, 2) => Instrument(1,2) Instrument( ) => Instrument
StaticoverrideReplaces the default fetch used by utils.fetch with a custom implementation.
Useful for e.g. debugging, request caching, or providing a mock in tests.
Optionalinit: RequestInitOptionalinit: RequestInitStaticparseparse an object identifier identifiers consist of a type, optional params enclosed by parenthesis, and an optional resolution prefixed with @
Example: Instrument(133962,4)@86400000 => {type:"Instrument", params:[133962,4], resolution:86400000, id:null} SMA(20) => {type:"SMA", params:[20], resolution:86400000, id:null} MACD => {type:"MACD", params:[], resolution:86400000, id:null} Expression(A/(B+C))@3600000 => {type:"Expression", params:["A/(B+C)"], resolution:3600000, id:null} Instrument(133962)#Foo => {type:"Instrument", params:[133962], resolution:86400000, id:Foo}
Staticrmremove a flag from the specified object Has no effect if flag is not set. For a list of flags and a detailed explanation see ObjectEFlags
Staticrmremove a flag from the specified objects option Has no effect if flag is not set. For a list of flags and a detailed explanation see ObjectEOptionFlags
Staticsetstore the specified global configuration values
Optionalvalue: anyStaticsetset flag for the specified object For a list of flags and a detailed explanation see ObjectEFlags
Optionalstate: booleanStaticsetset flag for the specified objects option For a list of flags and a detailed explanation see ObjectEOptionFlags
Optionalstate: booleanStaticshiftshift box boxStart by offset shiftCount
box
offset
box size
absolute mode flag
Staticspanreturns the name for an interval
Staticstripstrip html tags from a string
Statictickchecks if the specified tick is already complete
a timestamp (UTC)
interval to match with
timezone identifier for grouping
daily start time in milliseconds
daily end time in milliseconds
flag indicating if tick is complete
StatictickFinds the nearest timestamp before the referenceTick that indicates a border between intervals of the given length
a timestamp (UTC)
interval to match with
timezone identifier for grouping
daily start time in milliseconds
the matched timestamp (UTC)
StatictypeStaticurlOptionalparams: Record<string, string | number>Staticvalidatevalidate expression
a collection of utility functions used by the chart classes