class anychart.core.stock.Scroller Improve this Doc
Extends: anychart.core.ui.Scroller
Stock scroller class. Adds series drawing to UI Scroller.
Methods Overview
| Specific settings | |
| addSeries() | Add series to chart. |
| allowRangeChange() | Mode of the range changing. |
| defaultSeriesType() | Default series type. |
| getSeriesAt() | Gets the series by its index. |
| getSeriesCount() | Returns series count. |
| removeAllSeries() | Removes all series from chart. |
| removeSeries() | Removes one of series from chart by its id. |
| removeSeriesAt() | Removes one of series from chart by its index. |
| thumbs() | Thumbs settings. |
| Axes and Scales | |
| xAxis() | X-axis settings. |
| yScale() | Y-scale settings. |
| Chart Coloring | |
| hatchFillPalette() | Hatch fill palette settings. |
| palette() | Palette settings. |
| Coloring | |
| fill() | Fill settings. |
| outlineStroke() | Stroke settings. |
| selectedFill() | Select fill settings. |
| Interactivity | |
| autoHide() | Auto hide setting. |
| enabled() | Element state (enabled or disabled). |
| Series | |
| area() | Adds Area series. |
| candlestick() | Adds Candlestick series. |
| column() | Adds Column series. |
| getSeries() | Gets series by its id. |
| hilo() | Adds HiLo series. |
| jumpLine() | Adds Jump Line series. |
| line() | Adds Line series. |
| marker() | Adds Marker series. |
| ohlc() | Adds OHLC series. |
| rangeArea() | Adds Range Area series. |
| rangeColumn() | Adds Range Column series. |
| rangeSplineArea() | Adds Range Column series. |
| rangeStepArea() | Adds Range Step area series. |
| spline() | Adds Range Step area series. |
| splineArea() | Adds Spline Area series. |
| stepArea() | Adds Step Area series. |
| stepLine() | Adds Step Line series. |
| stick() | Adds Stick series. |
| Size and Position | |
| height() | Scroller height. |
| inverted() | Inverted settings. |
| maxHeight() | Scroller maximum height. |
| minHeight() | Scroller minimum height. |
| orientation() | Scroller orientation. |
| zIndex() | Z-index of the element. |
| Technical Indicators | |
| adl() | Creates an Accumulation Distribution Line indicator on the scroller. |
| ama() | Creates AMA (Adaptive Moving Average) indicator on the scroller. |
| ao() | Creates an Awesome Oscillator indicator on the scroller. |
| aroon() | Creates Aroon indicator on the scroller. |
| aroonOscillator() | Creates Aroon Oscillator indicator on the scroller. |
| atr() | Creates an Average True Range indicator on the scroller. |
| bbands() | Creates Bollinger Bands indicator on the scroller. |
| bbandsB() | Creates %B indicator on the scroller. |
| bbandsWidth() | Creates Bollinger Bands Width indicator on the scroller. |
| cci() | Creates a Commodity Channel Index indicator on the scroller. |
| cho() | Creates a Chaikin Oscillator indicator on the scroller. |
| cmf() | Creates a Chaikin Money Flow indicator on the scroller. |
| coppockCurve() | Creates a Coppock Curve indicator on the scroller. |
| dmi() | Creates a Directional Movement Index indicator on the scroller. |
| ema() | Creates EMA (Exponential Moving Average) indicator on the scroller. |
| env() | Creates ENV (Envelope) indicator on the scroller. |
| ha() | Creates a Heikin-Ashi indicator on the scroller. |
| ikh() | Creates an Ichimoku Cloud (IKH) indicator on the scroller. |
| kdj() | Creates a KDJ indicator on the scroller. |
| keltnerChannels() | Creates a Keltner Channels indicator on the scroller. |
| macd() | Creates MACD (Moving Average Convergence Divergence) indicator on the scroller. |
| mfi() | Creates a MFI (Money Flow Index) indicator on the scroller. |
| mma() | Creates MMA (Modified Moving Average) indicator on the scroller. |
| momentum() | Creates a Momentum indicator on the scroller. |
| obv() | Creates an On Balance Volume indicator on the scroller. |
| ppo() | Creates PPO (Price Oscillator) indicator on the scroller. |
| priceChannels() | Creates a Price Channels indicator on the scroller. |
| psar() | Creates a PSAR (Parabolic SAR) indicator on the scroller. |
| psy() | Creates a PSY (The Psychological Line) indicator on the scroller. |
| rat() | Creates RAT (Ratiocator) indicator on the scroller. |
| rci() | Creates a RCI (Rank Correlation Index) indicator on the plot. |
| roc() | Creates RoC (Rate of Change) indicator on the scroller. |
| rsi() | Creates RSI (Relative Strength Index) indicator on the scroller. |
| sma() | Creates SMA (Simple Moving Average) indicator on the scroller. |
| stochastic() | Creates a Stochastic indicator on the scroller. |
| trix() | Creates a TRIX indicator on the scroller. |
| volumeMa() | Creates a Volume + MA indicator on the scroller. |
| vwap() | Creates a Volume Weighted Average Price (VWAP) indicator on the scroller. |
| williamsR() | Creates a Williams %R indicator on the scroller. |
| wma() | Creates WMA (Weighted Moving Average) indicator on the scroller. |
Methods Description
addSeries
Note: We recommend to use the line and area types for the scroller series.
Params:
| Name | Type | Description |
|---|---|---|
| var_args | anychart.data.View | anychart.data.Set | Array | Chart series data. |
Returns:
Array.<anychart.core.stock.scrollerSeries.Base> - Array of created series.Try it:
adl
Params:
| Name | Type | Description |
|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. |
| seriesType | anychart.enums.StockSeriesType | string | Series type. |
Returns:
anychart.core.stock.indicators.ADL - Returns an Accumulation Distribution Line indicator.Try it:
allowRangeChange
Returns:
boolean - Mode of the range changing.var scroller = chart.xScroller(); var allowRangeChange = scroller.allowRangeChange();
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enabled state to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
ama
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| fastPeriod | number | 2 | Fast period. |
| slowPeriod | number | 30 | Slow period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for AMA indicator. |
Returns:
anychart.core.stock.indicators.AMA - Returns AMA (Adaptive Moving Average) indicator.Try it:
ao
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| fastPeriod | number | 5 | Indicator fast period. |
| slowPeriod | number | 34 | Indicator slow period. |
| maType | anychart.enums.MovingAverageType | string | 'sma' | Indicator smoothing type. |
| seriesType | anychart.enums.StockSeriesType | string | 'line' | Series type. |
Returns:
anychart.core.stock.indicators.AO - Returns Awesome Oscillator indicator.Try it:
area
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Area - An instance of the created series.Try it:
aroon
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping | |
| period | number | 25 | Period |
| upSeriesType | anychart.enums.StockSeriesType | string | "line" | Up Series type for the Aroon indicator. |
| downSeriesType | anychart.enums.StockSeriesType | string | "line" | Down Series type for the Aroon indicator. |
Returns:
anychart.core.stock.indicators.Aroon - Returns Aroon indicator.Try it:
aroonOscillator
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping | |
| period | number | 25 | Period |
| seriesType | anychart.enums.StockSeriesType | string | "area" | Series type for the Aroon Oscillator indicator. |
Returns:
anychart.core.stock.indicators.AroonOscillator - Returns Aroon Oscillator indicator.Try it:
atr
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 14 | Moving average period value. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for the Average True Range indicator. |
Returns:
anychart.core.stock.indicators.ATR - Returns an Average True Range indicator.Try it:
autoHide
Returns:
boolean - Auto hide mode.var scroller = chart.xScroller(); var state = scroller.autoHide();
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | false | Enabled state to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
bbands
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Moving average period value. |
| deviation | number | 2 | The multiplier applied to the moving average to compute upper and lower bands of the indicator. |
| middleSeriesType | anychart.enums.StockSeriesType | string | "line" | Middle Series type for the Bollinger Bands indicator. |
| upperSeriesType | anychart.enums.StockSeriesType | string | "line" | Upper Series type for the Bollinger Bands indicator. |
| lowerSeriesType | anychart.enums.StockSeriesType | string | "line" | Lower Series type for the Bollinger Bands indicator. |
Returns:
anychart.core.stock.indicators.BBands - Returns Bollinger Bands indicator.Try it:
bbandsB
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Moving average period value. |
| deviation | number | 2 | The multiplier applied to the moving average to compute upper and lower bands of the indicator. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for the %B indicator. |
Returns:
anychart.core.stock.indicators.BBandsB - Returns %B indicator.Try it:
bbandsWidth
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Moving average period value. |
| deviation | number | 2 | The multiplier applied to the moving average to compute upper and lower bands of the indicator. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for the Bollinger Bands Width indicator. |
Returns:
anychart.core.stock.indicators.BBandsWidth - Returns Bollinger Bands Width indicator.Try it:
candlestick
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Candlestick - An instance of the created series.Try it:
cci
Params:
| Name | Type | Description |
|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. |
| period | number | Moving average period value. |
| seriesType | anychart.enums.StockSeriesType | string | Series type. |
Returns:
anychart.core.stock.indicators.CCI - Returns a Commodity Channel Index indicator.Try it:
cho
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| fastPeriod | number | 3 | Indicator period. |
| slowPeriod | number | 10 | Indicator period. |
| maType | string | EMA | Indicator smoothing type. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type. |
Returns:
anychart.core.stock.indicators.CHO - Returns a Chaikin Oscillator indicator.Try it:
cmf
Params:
| Name | Type | Description |
|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. |
| period | number | Moving average period value. |
| seriesType | anychart.enums.StockSeriesType | string | Series type. |
Returns:
anychart.core.stock.indicators.CMF - Returns a Chaikin Money Flow indicator.Try it:
column
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Data to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Column - An instance of the created series.Try it:
coppockCurve
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| wmaPeriod | number | 10 | WMA calculation period. |
| firstRocPeriod | number | 11 | The first RoC calculation period. |
| secondRocPeriod | number | 14 | The second RoC calculation period. |
| seriesType | anychart.enums.StockSeriesType | string | Series type. |
Returns:
anychart.core.stock.indicators.CoppockCurve - Returns a Coppock Curve indicator.Try it:
defaultSeriesType
Note: We recommend to use the line and area types for the scroller series.
Returns:
anychart.enums.StockSeriesType | string - Default series type.Try it:
Note: We recommend to use the line and area types for the scroller series.
Params:
| Name | Type | Description |
|---|---|---|
| type | anychart.enums.StockSeriesType | string | Default series type. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
dmi
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 14 | Moving average period value. |
| adxPeriod | number | 14 | Period for ADX. |
| useWildersSmoothing | boolean | true | Wilders smoothing mode. |
| pdiSeriesType | anychart.enums.StockSeriesType | string | "line" | Type for +DI series. |
| ndiSeriesType | anychart.enums.StockSeriesType | string | "line" | Type for -DI series. |
| adxSeriesType | anychart.enums.StockSeriesType | string | "line" | Type for ADX series. |
Returns:
anychart.core.stock.indicators.DMI - Returns a Directional Movement Index indicator.Try it:
ema
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for EMA indicator (type as "line", "column", "ohlc"). |
Returns:
anychart.core.stock.indicators.EMA - Returns EMA (Exponential Moving Average) indicator.Try it:
enabled
Returns:
boolean - Element state.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enabled state to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.if (!element.enabled()) element.enabled(true);
Try it:
env
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| deviation | number | 10 | Deviation. |
| maType | anychart.enums.MovingAverageType | string | "ema" | Indicator smoothing type. |
| upperSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type. |
| lowerSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type. |
Returns:
anychart.core.stock.indicators.ENV - Returns ENV (Envelope) indicator.Try it:
fill
Returns:
anychart.graphics.vector.Fill - Fill color.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | '#fff' | Color as an array, an object or a string. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Params:
| Name | Type | Description |
|---|---|---|
| color | string | Color as a string. |
| opacity | number | Color opacity. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. |
| angle | number | Gradient angle. |
| mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. |
| opacity | number | Gradient opacity. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. |
| cx | number | X ratio of center radial gradient. |
| cy | number | Y ratio of center radial gradient. |
| mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Opacity of the gradient. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
getSeries
Params:
| Name | Type | Description |
|---|---|---|
| id | number | string | Id of the series. |
Returns:
anychart.core.stock.scrollerSeries.Base - An instance of the created series.Try it:
getSeriesAt
Params:
| Name | Type | Description |
|---|---|---|
| index | number | Index of the series. |
Returns:
anychart.core.stock.scrollerSeries.Base - An instance of the created series.Try it:
getSeriesCount
ha
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| seriesType | anychart.enums.StockSeriesType | string | 'candlestick' | Series type. |
Returns:
anychart.core.stock.indicators.HA - Returns Heikin-Ashi indicator.Try it:
hatchFillPalette
Returns:
anychart.palettes.HatchFills - Hatch fill palette settings.var hatchFillPalette = scroller.hatchFillPalette();
Params:
| Name | Type | Description |
|---|---|---|
| value | Array.<anychart.graphics.vector.HatchFill.HatchFillType> | Object | anychart.palettes.HatchFills | Hatch fill palette settings to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
height
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| height | number | string | 40 | Scroller height to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
hilo
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Hilo - An instance of the created series.Try it:
ikh
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| conversionPeriod | number | 9 | Indicator conversion line period. |
| basePeriod | number | 26 | Indicator Base line period. |
| leadingPeriod | number | 52 | Indicator Leading span period. Also used to move the Cloud forward.. |
| conversionSeriesType | anychart.enums.StockSeriesType | string | "line" | Conversion series type. |
| baseSeriesType | anychart.enums.StockSeriesType | string | "line" | Base series type. |
| leadingSeriesType | anychart.enums.StockSeriesType | string | "range-area" | Leading span series type. |
| laggingSeriesType | anychart.enums.StockSeriesType | string | "line" | Lagging series type. |
Returns:
anychart.core.stock.indicators.IKH - Returns an Ichimoku Cloud (IKH) indicator.Try it:
inverted
Returns:
boolean - Inverted state.Params:
| Name | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | false | Whether scroller should be inverted or not. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
jumpLine
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.JumpLine - An instance of the created series.Try it:
kdj
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| kPeriod | number | 14 | Indicator %K period. |
| kMAPeriod | number | 5 | Indicator %K smoothing period. |
| dPeriod | number | 5 | Indicator %D period. |
| kMAType | anychart.enums.MovingAverageType | string | "ema" | Indicator %K smoothing type. |
| dMAType | anychart.enums.MovingAverageType | string | "ema" | Indicator %D smoothing type. |
| kMultiplier | number | -2 | The %K multiplier to calculate the % J values. |
| dMultiplier | number | 3 | The %D multiplier to calculate the % J values. |
| kSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for %K value. |
| dSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for %D value. |
| jSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for %J value. |
Returns:
anychart.core.stock.indicators.KDJ - Returns a KDJ indicator.Try it:
keltnerChannels
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| maPeriod | number | 20 | Moving Average period. |
| atrPeriod | number | 10 | Average True Range period. |
| maType | anychart.enums.MovingAverageType | string | 'ema' | Indicator Moving Average type. |
| multiplier | number | 2 | Multiplier. |
| maSeries | anychart.enums.StockSeriesType | string | 'line' | Moving Average series type. |
Returns:
anychart.core.stock.indicators.KeltnerChannels - Returns Keltner Channels indicator.Try it:
line
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Data to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Line - An instance of the created series.Try it:
macd
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| fastPeriod | number | 12 | Fast period. Fast period must be greater than the slow period. |
| slowPeriod | number | 26 | Slow period. |
| signalPeriod | number | 9 | Signal period. |
| macdSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for MACD indicator (type as "line", "column", "ohlc"). |
| signalSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for signal (type as "line", "column", "ohlc"). |
| histogramSeriesType | anychart.enums.StockSeriesType | string | "column" | Series type for histogram (type as "line", "column", "ohlc"). |
Returns:
anychart.core.stock.indicators.MACD - Returns MACD (Moving Average Convergence Divergence) indicator.Try it:
marker
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Marker - An instance of the created series.Try it:
maxHeight
Returns:
number | string | null - Scroller maximum height.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| height | number | string | null | Maximum height |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
mfi
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 10 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for MFI indicator. |
Returns:
anychart.core.stock.indicators.MFI - Returns a MFI (Money Flow Index) indicator.Try it:
minHeight
Returns:
number | string | null - Scroller minimum height.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| height | number | string | null | Minimum height. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
mma
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for MMA indicator. |
Returns:
anychart.core.stock.indicators.MMA - Returns MMA (Modified Moving Average) indicator.Try it:
momentum
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 14 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for Momentum indicator. |
Returns:
anychart.core.stock.indicators.Momentum - Returns a Momentum indicator.Try it:
obv
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| seriesType | anychart.enums.StockSeriesType | string | 'line' | Series type. |
Returns:
anychart.core.stock.indicators.OBV - Returns On Balance Volume indicator.Try it:
ohlc
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Data to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.OHLC - An instance of the created series.Try it:
orientation
Returns:
anychart.enums.Orientation | string - Scroller orientation.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| orientation | anychart.enums.Orientation | string | 'bottom' | Scroller orientation. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
outlineStroke
Returns:
anychart.graphics.vector.Stroke - Stroke settings.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | '#cecece' | Stroke settings. |
| thickness | number | Line thickness. | |
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| settings | Object | Stroke settings from anychart.graphics.vector.Stroke. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
palette
Try it:
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.palettes.RangeColors | anychart.palettes.DistinctColors | Object | Array.<string> | Colors palette settings to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.ppo
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| shortPeriod | number | 12 | Indicator short period. |
| longPeriod | number | 26 | Indicator long period. |
| smoothingPeriod | number | 9 | Indicator smoothing period. |
| ppoSeriesType | anychart.enums.StockSeriesType | string | "line" | PPO line series type. |
| signalSeriesType | anychart.enums.StockSeriesType | string | "line" | Signal line series type. |
| histogramSeriesType | anychart.enums.StockSeriesType | string | "column" | PPO Histogram series type. |
Returns:
anychart.core.stock.indicators.PPO - Returns Price Oscillator indicator.Try it:
priceChannels
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| middleSeriesType | anychart.enums.StockSeriesType | string | "line" | Middle Series type for the Price Channels indicator. |
| rangeSeriesType | anychart.enums.StockSeriesType | string | "range-area" | Range Series type for the Price Channels indicator. |
Returns:
anychart.core.stock.indicators.PriceChannels - Returns a Price Channels indicator.psar
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| accelerationFactorStart | number | 0.02 | Start acceleration factor. |
| accelerationFactorIncrement | number | 0.02 | Increment acceleration factor. |
| accelerationFactorMaximum | number | 0.2 | Maximum acceleration factor value. |
| seriesType | anychart.enums.StockSeriesType | string | "marker" | Series type for PSAR indicator. |
Returns:
anychart.core.stock.indicators.PSAR - Returns a PSAR (Parabolic SAR) indicator.Try it:
psy
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Indicator period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for PSY indicator. |
Returns:
anychart.core.stock.indicators.PSY - Returns a PSY (The Psychological Line) indicator.Try it:
rangeArea
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.RangeArea - An instance of the created series.Try it:
rangeColumn
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.RangeColumn - An instance of the created series.Try it:
rangeSplineArea
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.RangeSplineArea - An instance of the created series.Try it:
rangeStepArea
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.RangeStepArea - An instance of the created series.Try it:
rat
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| baseDate | * | 0 | Start date of calculation. Start date is displayed in indicator series name and uses inputDateTimeFormat. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type. |
rci
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 12 | Indicator period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for RCI indicator. |
Returns:
anychart.core.stock.indicators.RCI - Returns a RCI (Rank Correlation Index) indicator.Try it:
removeAllSeries
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
removeSeries
Params:
| Name | Type | Description |
|---|---|---|
| id | number | string | Series id. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
removeSeriesAt
Params:
| Name | Type | Description |
|---|---|---|
| index | number | Series index. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
roc
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for Roc indicator (type as "line", "column", "ohlc"). |
Returns:
anychart.core.stock.indicators.RoC - Returns RoC (Rate of Change) indicator.Try it:
rsi
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 14 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for RSI indicator (type as "line", "column", "ohlc"). |
Returns:
anychart.core.stock.indicators.RSI - Returns RSI (Relative Strength Index) indicator.Try it:
selectedFill
Returns:
anychart.graphics.vector.Fill - Select fill color.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | {color: "#1976d2", opacity: 0.2} | Color as an array, an object or a string. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Params:
| Name | Type | Description |
|---|---|---|
| color | string | Color as a string. |
| opacity | number | Color opacity. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. |
| angle | number | Gradient angle. |
| mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. |
| opacity | number | Gradient opacity. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. |
| cx | number | X ratio of center radial gradient. |
| cy | number | Y ratio of center radial gradient. |
| mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Opacity of the gradient. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
sma
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for SMA indicator (type as "line", "column", "ohlc"). |
Returns:
anychart.core.stock.indicators.SMA - Returns SMA (Simple Moving Average) indicator.Try it:
spline
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Spline - An instance of the created series.Try it:
splineArea
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.SplineArea - An instance of the created series.Try it:
stepArea
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.StepArea - An instance of the created series.Try it:
stepLine
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.StepLine - An instance of the created series.Try it:
stick
Params:
| Name | Type | Description |
|---|---|---|
| data | anychart.data.TableMapping | anychart.data.Table | Array.<Array.<*>> | string | Value to set. |
| mappingSettings | Object.<string, ({column: number, type: (anychart.enums.AggregationType|string), weights: number}|number)> | An object where keys are field names and values are objects with fields: - 'column': number - Column index, that the field should get values from; - 'type': anychart.enums.AggregationType|string - How to group values for the field. Defaults to 'close'. - 'weights': number - Column to get weights from for 'weightedAverage' grouping type. Note: If type set to 'weightedAverage', but opt_weightsColumn is not passed - uses 'average' grouping instead. or numbers - just the column index to get values from. In this case the grouping type will be set to 'close'. |
| csvSettings | Object | CSV parser settings if the string is passed. |
Returns:
anychart.core.stock.scrollerSeries.Stick - An instance of the created series.Try it:
stochastic
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| kPeriod | number | 14 | Moving average period value for %K. |
| kMAPeriod | number | 1 | Indicator %K smoothing period. |
| dPeriod | number | 3 | Moving average period value for %D. |
| kMAType | anychart.enums.MovingAverageType | string | "sma" | Indicator %K smoothing type. |
| dMAType | anychart.enums.MovingAverageType | string | "sma" | Indicator %D smoothing type. |
| kSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for %K value. |
| dSeriesType | anychart.enums.StockSeriesType | string | "line" | Series type for %D value. |
Returns:
anychart.core.stock.indicators.Stochastic - Returns a Stochastic indicator.Try it:
thumbs
- null/boolean - disable or enable thumbs.
- object - sets thumbs settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| settings | boolean | Object | null | null | Thumbs settings. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.trix
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 15 | Indicator TRIX period. |
| signalPeriod | number | 9 | Indicator signal period. |
| maType | anychart.enums.MovingAverageType | string | 'ema' | Indicator smoothing type. |
| signalMaType | anychart.enums.MovingAverageType | string | 'ema' | Indicator signal smoothing type. |
| trixSeriesType | anychart.enums.StockSeriesType | string | 'line' | TRIX series type. |
| signalSeriesType | anychart.enums.StockSeriesType | string | 'line' | Signal series type. |
Returns:
anychart.core.stock.indicators.TRIX - Returns TRIX indicator.Try it:
volumeMa
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| maPeriod | number | 20 | Moving Average period. |
| maType | anychart.enums.MovingAverageType | string | 'sma' | Indicator smoothing type. |
| volumeSeriesType | anychart.enums.StockSeriesType | string | 'stick' | Volume series type. |
| maSeriesType | anychart.enums.StockSeriesType | string | 'line' | Moving Average series type. |
Returns:
anychart.core.stock.indicators.VolumeMA - Returns Volume + MA indicator.Try it:
vwap
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| vwapSeriesType | anychart.enums.StockSeriesType | string | 'line' | Indicator series type. |
Returns:
anychart.core.stock.indicators.VWAP - Returns VWAP indicator.Try it:
williamsR
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 10 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for Williams %R indicator. |
Returns:
anychart.core.stock.indicators.WilliamsR - Returns a Williams %R indicator.Try it:
wma
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 9 | Period. |
| seriesType | anychart.enums.StockSeriesType | string | "line" | Series type for WMA indicator (type as "line", "column", "area"). |
Returns:
anychart.core.stock.indicators.WMA - Returns WMA (Weighted Moving Average) indicator.Try it:
xAxis
- null/boolean - disable or enable scroller Y-axis.
- object - sets scroller Y-axis settings.
Params:
| Name | Type | Description |
|---|---|---|
| settings | Object | boolean | null | Chart axis settings to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.yScale
Returns:
anychart.scales.ScatterBase - Default chart scale value.var scroller = chart.scroller(); var yScale = scroller.yScale();
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| settings | anychart.enums.ScatterScaleTypes | string | anychart.scales.ScatterBase | Object | anychart.scales.Linear | Scale settings to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
zIndex
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| zIndex | number | 0 | Value to set. |
Returns:
anychart.core.stock.Scroller - Self instance for method chaining.Try it:
