- Since:
-
9.4.0
Type Definitions
-
StudyConfig
-
Configuration for studies available and their default settings. CompactChart comes with a handful of studies. It is possible to create additional studies, please contact us for assistance. The modules for built-in studies can be found in
js/modules/studies. Only studies included in this configuration will be available to the chart.Type:
- Since:
-
9.4.0
Properties:
Name Type Argument Description signalIQSignalIQConfig <optional>
Presence of this property indicates SignalIQ availability.
typesRecord.<string, (StudyTypeConfig|undefined)> <optional>
Contains the configurations for each study.
-
StudyDefinition
-
Basic definition of a study. The built-in studies all have their own default study definition settings, so it is only necessary to set one of these properties if you disagree with the default settings. A study definition has many fields, but only those more commonly used are documented here.
Type:
- object
- Since:
-
- 9.4.0 Introduced
- 10.1.0 Added
widthFactorproperty.
Properties:
Name Type Argument Description displaystring <optional>
Name to display on legend if different than study name.
underlayboolean <optional>
Whether study is rendered under the main plot.
overlayboolean <optional>
Whether study is rendered over the main plot.
customLegendboolean <optional>
Indicates if custom legend is being used and study should not appear on built-in legend.
yaxisYAxisInit <optional>
Specifies dedicated y axis for the study. Not all properties of yaxis need to be set. The most common one is
position.inputsRecord.<string, (number|string|boolean|Array.<string>)> <optional>
Override default inputs. You must specify all inputs even if overriding only one.
outputsRecord.<string, StudyOutputColor> <optional>
Override default output colors and line treatments. You must specify all outputs even if overriding only one.
parametersStudyParameters <optional>
Override default parameters. You must specify all parameters even if overriding only one.
centerlinenumber <optional>
<nullable>
Draws a horizontal line through the panel at the y axis level specified.
excludeFieldsFromIDboolean | Array.<string> <optional>
Array of input fields to disregard when building the study id.
panelHeightnumber <optional>
Number of pixels to dedicate to this panel, otherwise it will be automatically determined.
displayGridLinesboolean <optional>
Set to turn on grid lines for the study. By default grid lines are on for the main y axis only.
minMaxFieldsArray.<string> <optional>
If provided the minimum and maximum edges of the y axis will be computed from these fields only.
widthFactornumber <optional>
If provided percentage of candlewidth space taken up by a histogram bar.
-
StudyOutputColor
-
Definition of an output treatment.
Type:
- object
- Since:
-
9.4.0
Properties:
Name Type Argument Description colorstring Plot color.
pattern'solid' | 'dashed' | 'dotted' <optional>
Plot line pattern.
widthnumber <optional>
Plot line width in pixels.
-
StudyParameters
-
Definition for study parameters.
Type:
- object
- Since:
-
9.4.0
Properties:
Name Type Argument Description panelNamestring <optional>
Panel on which to display plot.
studyOverZonesEnabledboolean <optional>
Whether to use the study overbought/oversold zones functionality.
studyOverBoughtValuenumber <optional>
Overbought level.
studyOverBoughtColorstring | StudyOutputColor <optional>
Color or treatment to use to decorate the overbought region.
studyOverSoldValuenumber <optional>
Oversold level.
studyOverSoldColorstring | StudyOutputColor <optional>
Color or treatment to use to decorate the oversold region.
underlayEnabledboolean <optional>
Display plot as an underlay.
yaxisDisplayValuestring <optional>
Specify position of y axis.
yaxisDisplayColorstring <optional>
Specify color of y axis.
chartNamestring <optional>
Should be set to "chart".
displaystring <optional>
Set display name of study.
yAxisYAxisInit <optional>
Specify custom y axis.
flippedEnabledboolean <optional>
Whether plot is flipped, not in use.
opacitynumber <optional>
Plot opacity.
labelboolean <optional>
Whether labels appear on the y axis.
plotTypestring <optional>
If speficied, overrides plot type used by study by default.
excludeYAxisboolean <optional>
Set to not draw y axis.
noSlopesboolean <optional>
Display a change in value without drawing a line between values.
extendToEndboolean <optional>
Extend plot to present time if last data point is in the past.
-
StudyPlotType
-
Allowed plot types for a study.
Type:
- 'line' | 'mountain' | 'scatterplot' | 'step'
- Since:
-
9.4.0
-
StudyTypeConfig
-
Configuration for studies available and their default settings. CompactChart comes with a handful of studies. It is possible to create additional studies, please contact us for assistance. The modules for built-in studies can be found in
js/modules/studies. Only studies included in this configuration will be available to the chart.Type:
- Since:
-
9.4.0
Properties:
Name Type Argument Description modulePathstring <optional>
Path to module file to dynamically load. Alternatively the module can be imported statically. It becomes available as a side effect.
signalDataSignalDataConfig <optional>
SignalIQ signal setup for this study.
plotTypeStudyPlotType <optional>
Allows custom configuration of the study to render as a different plot type than the default.
labelboolean <optional>
Specify if y axis label should appear for the study's current value(s).
baseColorstring <optional>
Specify base color for a mountain plot.
