Tick
Edit this page// Single View Specification
{
"data": ... ,
"mark": "tick",
"encoding": ... ,
...
}
The tick
mark represents each data point as a short line. This is a useful mark for displaying the distribution of values in a field.
Documentation Overview
Tick Mark Properties
A tick mark definition can contain any standard mark properties and the following special properties:
Property | Type | Description |
---|---|---|
cornerRadius | Number | ExprRef |
The radius in pixels of rounded rectangles or arcs’ corners. Default value: |
orient | String |
The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical.
|
Examples
Dot Plot
For example, the following dot plot uses tick marks to show the distribution of rainfall over time.
Strip Plot
The following strip-plot use tick
mark to show the distribution of horsepower.
Tick Config
// Top-level View Specification
{
...
"config": {
"tick": ...,
...
}
}
The tick
property of the top-level config
object sets the default properties for all tick marks. If mark property encoding channels are specified for marks, these config values will be overridden.
Besides standard mark config properties, tick config can contain the following additional properties:
Property | Type | Description |
---|---|---|
bandSize | Number |
The width of the ticks. Default value: 3/4 of step (width step for horizontal ticks and height step for vertical ticks). |
thickness | Number |
Thickness of the tick mark. Default value: |
Example Customizing Tick’s Size and Thickness