Types Used in the Grammar¶
Note
The list is still incomplete.
CompareParams¶
fieldRequired-
Type: string (field name)[] | string (field name)
The field(s) to sort by
order-
Type: (
"ascending"|"descending")[] |"ascending"|"descending"The order(s) to use:
"ascending"(default),"descending".
DynamicOpacity¶
channel-
Type:
"x"|"y"|"auto"The positional channel whose scale domain controls the opacity. If set to
"auto", bothxandyscales may contribute.If omitted,
xis used when available andyis used as a fallback. unitsPerPixelRequired-
Type: array
Opacity stops expressed as units (base pairs, for example) per pixel. The values must be positive.
Each stop is paired with an opacity in
valuesat the same index. Stops can be constants or expression references. valuesRequired-
Type: array
Opacity values that match the given
unitsPerPixelstops.Values outside the stop range are clamped to the nearest stop.
ExprRef¶
exprRequired-
Type: string
The expression string.
Paddings¶
bottom-
Type: number
TODO
left-
Type: number
TODO
right-
Type: number
TODO
top-
Type: number
TODO
Step¶
stepRequired-
Type: number
TODO
SizeDef¶
grow-
Type: number
Share of the remaining space. See child sizing for details.
px-
Type: number
Size in pixels
Title¶
align-
Type:
"left"|"center"|"right"Horizontal text alignment for title text. One of
"left","center", or"right". anchor-
Type:
None|start|middle|endThe anchor position for placing the title and subtitle text. One of
"start","middle", or"end". For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title. angle-
Type: number | ExprRef
Angle in degrees of title and subtitle text.
baseline-
Type:
"top"|"middle"|"bottom"|"alphabetic"Vertical text baseline for title and subtitle text. One of
"alphabetic"(default),"top","middle", or"bottom". color-
Type: string | ExprRef
Text color for title text.
dx-
Type: number
Delta offset for title and subtitle text x-coordinate.
dy-
Type: number
Delta offset for title and subtitle text y-coordinate.
font-
Type: string
Font name for title text.
fontSize-
Type: number | ExprRef
Font size in pixels for title text.
fontStyle-
Type:
"normal"|"italic"Font style for title text.
fontWeight-
Type: number |
"thin"|"light"|"regular"|"normal"|"medium"|"bold"|"black"Font weight for title text. This can be either a string (e.g
"bold","normal") or a number (100,200,300, ...,900where"normal"=400and"bold"=700). frame-
Type:
"bounds"|"group"The reference frame for the anchor position, one of
"bounds"(to anchor relative to the full bounding box) or"group"(to anchor relative to the group width or height). offset-
Type: number
The orthogonal offset in pixels by which to displace the title group from its position along the edge of the chart.
orient-
Type:
"none"|"left"|"right"|"top"|"bottom"Default title orientation (
"none","top","bottom","left", or"right") style-
Type: string
A mark style property to apply to the title text mark. If not specified, a default style of
"group-title"is applied. textRequired-
Type: string | ExprRef
The title text.
ViewBackground¶
fill-
Type: string | ExprRef
The fill color.
fillOpacity-
Type: number | ExprRef
The fill opacity. Value between
0and1. shadowBlur-
Type: number | ExprRef
The blur radius of the drop shadow in pixels. Higher values produce a more diffuse shadow.
Default value:
0 shadowColor-
Type: string | ExprRef
The color of the drop shadow. Any valid CSS color string is allowed.
Default value:
"black" shadowOffsetX-
Type: number | ExprRef
The horizontal offset of the drop shadow in pixels. Positive values move the shadow to the right.
Default value:
0 shadowOffsetY-
Type: number | ExprRef
The vertical offset of the drop shadow in pixels. Positive values move the shadow downward.
Default value:
0 shadowOpacity-
Type: number | ExprRef
The opacity of the drop shadow. Value between
0(fully transparent) and1(fully opaque).Default value:
0(disabled) stroke-
Type: string | ExprRef
The stroke color
strokeOpacity-
Type: number | ExprRef
The stroke opacity. Value between
0and1. strokeWidth-
Type: number
The stroke width in pixels.
ViewOpacityDef¶
Type: number | DynamicOpacity | ExprRef