Vega-Lite
Vega Altair Vega-Lite API
Examples Tutorials Documentation Usage Ecosystem
GitHub Try Online
  • Overview
  • View Specification
    • Title
    • Width / Height
  • Data / Datasets
  • Transform
    • Aggregate
    • Bin
    • Calculate
    • Density
    • Filter
    • Flatten
    • Fold
    • Impute
    • Join Aggregate
    • Loess
    • Lookup
    • Pivot
    • Quantile
    • Regression
    • Sample
    • Stack
    • Time Unit
    • Window
  • Mark
    • Arc
    • Area
    • Bar
    • Box Plot
    • Circle
    • Error Band
    • Error Bar
    • Geoshape
    • Image
    • Line
    • Point
    • Rect
    • Rule
    • Square
    • Text
    • Tick
    • Trail
  • Encoding
    • Aggregate
    • Axis
    • Band
    • Bin
    • Condition
    • Datum
    • Field
    • Format
    • Header
    • Impute
    • Legend
    • Scale
    • Stack
    • Sort
    • Time Unit
    • Type
    • Value
  • Projection
  • View Composition
    • Facet
    • Layer
    • Concat
    • Repeat
    • Resolve
  • Parameter
    • Value
    • Expr
    • Bind
    • Select
  • Config

  • Property Types
    • Date Time
    • Gradient
    • Predicate
  • Tooltip

Band

Edit this page

Band properties can be used to adjust mark bandwidth or position for band scales, bin intervals, or time unit intervals.

Property Type Description
band Any

Examples

Line Position

By default, points in line marks are placed at the beginning of a time interval (e.g., “month”):

Setting band to 0.5 moves the points to the middle of the time interval.

Edit this page and submit a pull request!