TickModel

23 Sep 20251 minute to read

Interface for a class Tick

Properties

color string

Sets and gets the color for the major or minor tick line. This property accepts value in hex code,
rgba string as a valid CSS color string.

height number

Sets and gets the height of the tick line in the axis. The default value is 20 for major ticks and 10 for minor ticks.

interval number

Sets and gets the gap between the ticks in the axis.

offset number

Sets and gets the offset value from where the ticks must be placed from the axis in linear gauge.

position Position

Sets and gets the value to place the ticks in the axis.

width number

Sets and gets the width of the tick line in the axis. The default value is 2 for major ticks and 1 for minor ticks.