// Single View Specification{ "data": ... , "mark": "tick", "encoding": ... , ...}
Thetick
mark represents each data point as a short line. This is a useful mark for displaying the distribution of values in a field.
A tick mark definition can contain anystandard 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.
|
For example, the following dot plot uses tick marks to show the distribution of rainfall over time.
The following strip-plot usetick
mark to show the distribution of horsepower.
// Top-level View Specification{ ... "config": { "tick": ..., ... }}
Thetick
property of the top-levelconfig
object sets the default properties for all tick marks. Ifmark property encoding channels are specified for marks, these config values will be overridden.
Besides standardmark 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: |