Static
addStatic
addStatic
addadd watermark drawing function to watermark registry
implementations can be set active by calling BG.charts.utils.set('activeWatermark', $name);
Additionally, it needs to be enabled for each BG.charts.Controller-instance by setting the showWatermark
-setting to true.
Static
adjustadjust interval for span
Static
adjustadjust span for interval
Static
cloneStatic
comparecompare an object identifier returns true if identifiers match, false otherwise the optional parameter controls wether ids should be considered for comparison (default = true)
Optional
considerIds: booleanStatic
convertEODTimestamptimestamp
timezone identifier of source timezone
timezone identifier of destination timezone
Static
ellipsifyabbreviate text to specified maximum length by cutting of and appending an ellipsis
Static
equalscompares two objects
Static
fetchStatic
findMax function for Float64 buffers
Static
findMin function for Float64 buffers
Static
formatbuilds 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"
Static
getStatic
hasStatic
hasStatic
htmlentitiesreplace special characters by html entities
Static
intervalStatic
lista list containing all available objects of the specified type lists are available for the following types: indicator, tool, generator, loader, layer NOTE: the map can contain duplicates, as one clazz might be registered for multiple types
Static
mergemerges 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:
Static
nearestreturns the nearest predefined span for an arbitrary time span when passing a custom span array, the values need to be sorted in ascending order
Optional
spans: number[]Static
normalizenormalize an object identifier (see parseIdentifier) Example: Instrument => Instrument Instrument() => Instrument Instrument(1, 2) => Instrument(1,2) Instrument( ) => Instrument
Static
parseparse 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}
Static
rmStatic
rmStatic
setstore the specified global configuration values
Optional
value: anyStatic
setStatic
setStatic
shiftshift box boxStart by offset shiftCount
box
offset
box size
absolute mode flag
Static
spanStatic
stripstrip html tags from a string
Static
tickchecks 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
Static
tickTFinds 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)
Static
typeStatic
urlreturns a uri encoded url query string is generated from the provided optional objects keys and values
Optional
params: Record<string, string | number>Static
validatevalidate expression
a collection of utility functions used by the chart classes