Candlestick & OHLC

Basic Options

chevron-rightNamehashtag

Type: string

Documentation: Sets the trace name. The trace name appears as the legend item and on hover.

Path: data.index.name

chevron-rightOpacityhashtag

Default Value: 1

Type: number

Min: 0

Max: 1

Documentation: Sets the opacity of the trace.

Path: data.index.opacity


Data Source

chevron-rightClosehashtag

Type: any

Accept List: true

Documentation: Sets the close values.

Path: data.index.close

chevron-rightHighhashtag

Type: any

Accept List: true

Documentation: Sets the high values.

Path: data.index.high

chevron-rightLowhashtag

Type: any

Accept List: true

Documentation: Sets the low values.

Path: data.index.low

chevron-rightOpenhashtag

Type: any

Accept List: true

Documentation: Sets the open values.

Path: data.index.open

chevron-rightTexthashtag

Default Value:

Type: string

Accept List: true

Documentation: Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points.

Path: data.index.text

chevron-rightXhashtag

Type: any

Accept List: true

Documentation: Sets the x coordinates. If absent, linear coordinate will be generated.

Path: data.index.x


Decreasing Items Styling

chevron-rightLine Colorhashtag

Default Value: #FF4136

Type: color

Documentation: Sets the color of line bounding the box(es).

Path: data.index.decreasing.line.color

chevron-rightLine Widthhashtag

Default Value: 2

Type: number

Min: 0

Documentation: Sets the width (in px) of line bounding the box(es).

Path: data.index.decreasing.line.width


Increasing Items Styling

chevron-rightLine Colorhashtag

Default Value: #3D9970

Type: color

Documentation: Sets the color of line bounding the box(es).

Path: data.index.increasing.line.color

chevron-rightLine Widthhashtag

Default Value: 2

Type: number

Min: 0

Documentation: Sets the width (in px) of line bounding the box(es).

Path: data.index.increasing.line.width


Lines Styling

chevron-rightWidthhashtag

Default Value: 2

Type: number

Min: 0

Documentation: Sets the width (in px) of line bounding the box(es). Note that this style setting can also be set per direction via increasing.line.width and decreasing.line.width.

Path: data.index.line.width


Exclusive Options

chevron-rightWhisker Widthhashtag

Default Value: 0

Type: number

Min: 0

Max: 1

Documentation: Sets the width of the whiskers relative to the box' width. For example, with 1, the whiskers are as wide as the box(es).

Path: data.index.whiskerwidth


Calendar Options

chevron-rightX Calendarhashtag

Default Value: gregorian

Type: enumerated

Enum Options: chinese,coptic,discworld,ethiopian,gregorian,hebrew,islamic,jalali,julian,mayan,nanakshahi,nepali,persian,taiwan,thai,ummalqura

Documentation: Sets the calendar system to use with x date data.

Path: data.index.xcalendar

chevron-rightX Periodhashtag

Default Value: 0

Type: any

Documentation: Only relevant when the axis type is date. Sets the period positioning in milliseconds or M on the x axis. Special values in the form of M could be used to declare the number of months. In this case n must be a positive integer.

Path: data.index.xperiod

chevron-rightX Period Alignmenthashtag

Default Value: middle

Type: enumerated

Enum Options: start,middle,end

Documentation: Only relevant when the axis type is date. Sets the alignment of data points on the x axis.

Path: data.index.xperiodalignment


Hover Formatting

chevron-rightHover Infohashtag

Default Value: all

Type: flaglist

Accept List: true

Flag Options: x,y,z,text,name

Flag Single: all,none,skip

Documentation: Determines which trace information appear on hover. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.

Path: data.index.hoverinfo

Last updated