Options
chart
Chart-level options controlling dimensions and identification.
height
Total height of the ApexStock chart in pixels, including the main candlestick area and any oscillator panels below it.
id
Unique identifier for the chart instance. Auto-generated if not provided.
series
Array of data series. Each series contains OHLCV data points rendered as candlesticks on the main chart.
series: [
{
name: 'Stock Price',
data: [
{ x: 1706745600000, y: [150, 155, 148, 153], v: 1200000 },
{ x: 1706832000000, y: [153, 158, 151, 157], v: 980000 },
],
},
]
name
Name of the data series displayed in the legend and tooltips.
data
Array of data points in OHLCV format.
x
Timestamp or date for the data point. Can be a Unix timestamp (number) or a date string.
y
Array containing [open, high, low, close] prices in that order. Used to render the candlestick body and wicks.
v
Volume for the time period. When present, volume data is available for the Volumes indicator.
theme
Theme configuration for the chart. Every key is optional. The object is passed on to ApexCharts as well, so ApexCharts' own theme keys (such as palette) apply to the charts. See Theming.
mode
Color scheme for the chart.
Available Options:
- light (default): light background with dark text
- dark: dark background with light text
Left unset, it is light, or dark when the page's design system is dark (Ignite UI, with the apexstock/ignite-ui add-on loaded).
preset
A named preset, built in or registered with ApexStock.registerTheme. A preset carries its own base mode. See Theme presets.
designSystem
Since 0.6.0. false ignores the page's design system (Ignite UI) for this chart. It has an effect only while the apexstock/ignite-ui add-on, or another product's Ignite UI add-on, is loaded. Defaults to true. See Using with Ignite UI.
tokens
Since 0.6.0. false also ignores the design system, and turns off ApexCharts' own --apx-* token reads for the charts. Defaults to true.
palette
An ApexCharts palette name, 'palette1' to 'palette10', for the charts.
monochrome
ApexCharts' monochrome mode for the charts, with the same enabled, color, shadeTo and shadeIntensity keys. While it is on, ApexStock keeps its own colors over the design system's; the design system's font and mode still apply.
colorBlindMode
ApexCharts' color-blind palettes for the charts: 'deuteranopia', 'protanopia', 'tritanopia', 'highContrast', or '' for none. Like monochrome, a colorBlindMode keeps ApexStock's own colors over the design system's.
plotOptions
Plot-specific options for the stock chart.
stockChart
Configuration specific to the stock chart component.
indicators
Configure which technical indicators are available. Indicators are split into overlays (drawn on the main chart) and oscillators (rendered in separate panels below).
Pass an object to enable/disable individual indicators, or an array of indicator name strings to enable only those.
plotOptions: {
stockChart: {
indicators: {
'moving average': { enabled: true },
'bollinger bands': { enabled: true },
'rsi': { enabled: true },
'macd': { enabled: false },
},
},
}
moving average
Moving Average overlay configuration.
enabled
Enable the Simple Moving Average overlay on the main chart.
bollinger bands
Bollinger Bands overlay configuration.
enabled
Enable the Bollinger Bands overlay showing price volatility bands.
exponential moving average
Exponential Moving Average overlay configuration.
enabled
Enable the Exponential Moving Average overlay for trend analysis.
fibonacci retracements
Fibonacci Retracements overlay configuration.
enabled
Enable Fibonacci retracement levels for support and resistance analysis.
linear regression
Linear Regression overlay configuration.
enabled
Enable the Linear Regression trend line overlay.
ichimoku cloud indicator
Ichimoku Cloud overlay configuration.
enabled
Enable the Ichimoku Cloud indicator for comprehensive trend analysis.
rsi
RSI oscillator configuration.
enabled
Enable the Relative Strength Index oscillator in a separate panel.
macd
MACD oscillator configuration.
enabled
Enable the Moving Average Convergence Divergence oscillator.
volumes
Volumes indicator configuration.
enabled
Enable the volume indicator showing trading volume in a separate panel.
price volume trend
Price Volume Trend indicator configuration.
enabled
Enable the Price Volume Trend indicator combining price and volume analysis.
stochastic oscillator
Stochastic Oscillator configuration.
enabled
Enable the Stochastic Oscillator for momentum analysis.
standard deviation indicator
Standard Deviation indicator configuration.
enabled
Enable the Standard Deviation indicator for volatility measurement.
average directional index
Average Directional Index configuration.
enabled
Enable the Average Directional Index (ADX) for trend strength analysis.
chaikin oscillator
Chaikin Oscillator configuration.
enabled
Enable the Chaikin Oscillator for accumulation/distribution analysis.
commodity channel index
Commodity Channel Index configuration.
enabled
Enable the Commodity Channel Index (CCI) oscillator.
trend strength index
Trend Strength Index configuration.
enabled
Enable the Trend Strength Index for measuring trend momentum.
accelerator oscillator
Accelerator Oscillator configuration.
enabled
Enable the Accelerator Oscillator for momentum acceleration analysis.
bollinger bands %b
Bollinger Bands %B indicator configuration.
enabled
Enable the Bollinger Bands %B indicator showing price position within bands.
bollinger bands width
Bollinger Bands Width indicator configuration.
enabled
Enable the Bollinger Bands Width indicator measuring band expansion/contraction.