Skip to main content

API Reference - Configuration

ChartAppInitials

Property
Description
Type

initialInstrument

Initial instrument when rendering ChartReactApp. Specify null if you want to chart be loaded without default instrument. Example: 'AAPL'
string

initialAggregationPeriods

Initial aggregation periods. Example: [{ duration: 30, durationType: 'm' }, { duration: 1, durationType: 'h' }]
AggregationPeriod[]

initialTimezone

Initial timezone Example: 'Asia/Anadyr', 'UTC'
string

initialStudies

Array of initial studies.
string[]

initialChartTheme

Initial theme.
"dark" | "light" | "cloudDancer" | "oud" | "solar" | "still"

initialChartReactSettings

Initial chart react settings.
DeepPartial<ChartReactSettings>

initialTimeframePresets

Array of Timeframe presets. By default there are few presets: day, week, month, year, and all data. Example: { presets: [{ timeframe: { label: '1D', value: 86400 }, aggregation: { duration: 1, durationType: 'm', }] }
TimeframePresetsList<Timeframe>

initialTimeframePreset

Initial Timeframe preset.
TimeframePreset<Timeframe>

ChartReactAppConfig

The main configuration place for chart-react.

Property
Description
Type

initialLoading

Array of loading state objcts. `dxchart5-react` has some basic loading state objects such as candles data loading, symbols loading etc. These loading state objects are used to render loading bar on top of the chart. With this option you can provide your own loading state objects in addition to default ones.
InitialLoadingItem[]

localization

Object with all textual information in chart - override it to make chart in other language.
DeepPartial<Localization>

colorPalette

Array of colors, that will be used in color picker component. Supports all common color models: hex, rgb/rgba, hsl/hsla, default string color, for example, "yellow".
string[]

iconsPool

Icons set for Icon drawing.
Readonly<Record<string, IconDefinition>>

drawingsConfig

Default drawings configuration. Use the themed config if you want different drawings styles per theme. Override if you need other defaults styles.
DrawingsConfig<"line" | "rectangle" | "horizontal_line" | "horizontal_ray" | "vertical_line" | "extended_line" | "ellipse" | "pitchfork" | "ray" | "curve" | "arc" | "info_line" | "brush" | ... 37 more ... | "risk_reward_short"> | ThemedDrawingsConfig

onApiCreated

Callback which returns you object with useful API that you can call on chart to modify it.
(api: ChartReactAPI) => void

palette

Main object to override colors in chart. Each theme expects an object with colors configuration. Supports all common color nomenclatures: hex, rgb/rgba, hsl/hsla, default string color, for example, "yellow".
DeepPartial<ChartAppPalette>

timezones

List of timezones and your current timezone. Example: ['Europe/Berlin', 'America/Argentina/Buenos_Aires']
Partial<TimezonesConfig>

chartTypesConfig

List of chart types and initial chart type Example: { initialChartType: candle, listOfChartTypes: ['candle', 'line', 'area', 'equivolume', 'heikinAshi']}
Partial<ChartTypesConfig>

containerClassName

string