Angular Chart - argumentAxis.tick

Configures major axis tick appearance.

Type:

Object

Ticks help you align values with their corresponding data points on an axis. The tick object configures major ticks that are placed in relation to value labels.

DevExtreme HTML5 Charts MajorTicks

app.component.html
  • <dx-chart ... >
  • <dxo-chart-common-axis-settings>
  • <dxo-chart-tick
  • [visible]="true"
  • color="blue"
  • [length]="20"
  • [opacity]="0.75"
  • [shift]="0"
  • [width]="2"
  • ></dxo-chart-tick>
  • </dxo-chart-common-axis-settings>
  • </dx-chart>

The commonAxisSettings.tick object specifies common settings for all major ticks in a chart. To configure only those major ticks that belong to a particular axis, use the following objects:

Axis-specific settings override common settings.

See Also
  • argumentAxis.tickInterval - specifies the tick interval of the argument axis.
  • valueAxis.tickInterval - specifies the tick interval of the value axis.
  • commonAxisSettings.minorTick - customizes minor tick appearance.

color

Specifies the color of ticks.

Type:

String

Default Value: '#767676'

This property supports the following colors:

length

Specifies the length of ticks in pixels.

Type:

Number

Default Value: 7

opacity

Specifies how transparent ticks should be.

Type:

Number

| undefined
Default Value: undefined

This property accepts a value from 0 to 1, where 0 makes ticks completely transparent, and 1 makes them opaque.

shift

Shifts ticks from the reference position.

Type:

Number

Default Value: 3

In the reference position, the axis runs through the center of each tick:

DevExtreme Chart - Reference position for tick shift

Positive values shift ticks toward axis labels; negative values shift ticks in the opposite direction.

The following table illustrates this property:

Shift ValueHorizontal AxisVertical Axis
shift: 3DevExtreme Chart - Positive tick shift on the argument axisDevExtreme Chart - Positive tick shift on the value axis
shift: -3DevExtreme Chart - Negative tick shift on the argument axisDevExtreme Chart - Negative tick shift on the value axis

visible

Makes ticks visible.

Type:

Boolean

Default Value: true

width

Specifies the width of ticks in pixels.

Type:

Number

Default Value: 1