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 |
The radius in pixels of rounded rectangle 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 each car’s Horsepower.
Strip Plot
The following strip-plot use tick
mark to represent its data.
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 rangeStep. |
thickness | Number |
Thickness of the tick mark. Default value: |
Example Customizing Tick’s Size and Thickness