tick

Specifies options defining the appearance of scale ticks.

Type: Object

Show Example:
jQuery

In this example, the tick appearance options are changed.


                                    

                                    

color

Specifies the color of the scale's ticks (both major and minor ticks).

Type: String
Default Value: 'black'

This option supports the following colors.

  • hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • predefined/cross-browser color names
  • predefined SVG colors (not supported in Internet Explorer 8)
Show Example:
jQuery

In this example, the scale ticks are colored in midnightblue.


                                    

                                    

opacity

Specifies the opacity of the scale's ticks (both major and minor ticks).

Type: Number
Default Value: 0.1

Show Example:
jQuery

In this example, the scale ticks' opacity option is set to 0.5.


                                    

                                    

width

Specifies the width of the scale's ticks (both major and minor ticks).

Type: Number
Default Value: 1

Show Example:
jQuery

In this example, the scale ticks' width option is changed to 2.