Skip to main content

Chart configuration

DXcharts is highly customizable. Use the ChartConfig object to define the initial chart properties during setup.

FullChartConfig

The main configuration file for chart-core. Includes all components' configurations, global configs like dateFormatter, and colors.

Property
Description
Type

timezone

Timezone to use on chart X axis labels and any other timestamps. Examples: Africa/Accra, Europe/Moscow, Asia/Tehran.
string

fixedSize

If set - chart canvas will have fixed size always.
{ width: number; height: number; }

rtl

Right to left mode. Used in drawings (like text drawing) calculation.
boolean

drawingOrder

Initial visual order of chart drawers. Reorder to put volumes on top of candles for example.
("MAIN_BACKGROUND" | "MAIN_CLEAR" | "HIT_TEST_CLEAR" | "YAXIS_CLEAR" | "SERIES_CLEAR" | "OVER_SERIES_CLEAR" | "HIT_TEST_DRAWINGS" | "GRID" | "X_AXIS" | "Y_AXIS" | "HIGH_LOW" | ... 11 more ... | "CROSS_TOOL")[]

useUTCTimeOverride

boolean

devexpertsPromoLink

boolean

shortDays

string[]

shortMonths

string[]