-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
layout: docs | ||
title: Band Position | ||
permalink: /docs/bandPosition.html | ||
--- | ||
|
||
Band properties can be used to adjust mark bandwidth or position for band scales, bin intervals, or time unit intervals. | ||
|
||
{% include table.html props="bandPosition" source="DatumDef" %} | ||
|
||
## Examples | ||
|
||
### Line Position | ||
|
||
By default, points in line marks are placed at the beginning of a time interval (e.g., "month"): | ||
|
||
<div class="vl-example" data-name="line_month"></div> | ||
|
||
Setting `bandPosition` to `0.5` moves the points to the middle of the time interval. | ||
|
||
<div class="vl-example" data-name="line_month_center_band"></div> | ||
|
||
### Bar Position | ||
|
||
By default, bar marks are placed from the beginning of a time interval (e.g., "month") to the end of the interval: | ||
|
||
<div class="vl-example" data-name="bar_month_temporal"></div> | ||
|
||
Setting `bandPosition` to `0` moves the bar to center-align with ticks. | ||
|
||
<div class="vl-example" data-name="bar_month_temporal_band_center"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters