altair.MarkConfigExprOrSignalRef

class altair.MarkConfigExprOrSignalRef(align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, blend=Undefined, color=Undefined, cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, cornerRadiusTopLeft=Undefined, cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, endAngle=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, limit=Undefined, lineBreak=Undefined, lineHeight=Undefined, opacity=Undefined, order=Undefined, orient=Undefined, outerRadius=Undefined, padAngle=Undefined, radius=Undefined, radius2=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, timeUnitBand=Undefined, timeUnitBandPosition=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, **kwds)

MarkConfigExprOrSignalRef schema wrapper

Mapping(required=[])

Attributes
alignanyOf(Align, ExprOrSignalRef)

The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of "left", "right", "center".

Note: Expression reference is not supported for range marks.

angleanyOf(float, ExprOrSignalRef)
ariaanyOf(boolean, ExprOrSignalRef)
ariaRoleanyOf(string, ExprOrSignalRef)
ariaRoleDescriptionanyOf(string, ExprOrSignalRef)
aspectanyOf(boolean, ExprOrSignalRef)
baselineanyOf(TextBaseline, ExprOrSignalRef)

For text marks, the vertical text baseline. One of "alphabetic" (default), "top", "middle", "bottom", "line-top", "line-bottom", or an expression reference that provides one of the valid values. The "line-top" and "line-bottom" values operate similarly to "top" and "bottom", but are calculated relative to the lineHeight rather than fontSize alone.

For range marks, the vertical alignment of the marks. One of "top", "middle", "bottom".

Note: Expression reference is not supported for range marks.

blendanyOf(Blend, ExprOrSignalRef)
coloranyOf(Color, Gradient, ExprOrSignalRef)

Default color.

Default value: "#4682b4"

Note: - This property cannot be used in a style config. - The fill and stroke properties have higher precedence than color and will override color.

cornerRadiusanyOf(float, ExprOrSignalRef)
cornerRadiusBottomLeftanyOf(float, ExprOrSignalRef)
cornerRadiusBottomRightanyOf(float, ExprOrSignalRef)
cornerRadiusTopLeftanyOf(float, ExprOrSignalRef)
cornerRadiusTopRightanyOf(float, ExprOrSignalRef)
cursoranyOf(Cursor, ExprOrSignalRef)
descriptionanyOf(string, ExprOrSignalRef)
diranyOf(TextDirection, ExprOrSignalRef)
dxanyOf(float, ExprOrSignalRef)
dyanyOf(float, ExprOrSignalRef)
ellipsisanyOf(string, ExprOrSignalRef)
endAngleanyOf(float, ExprOrSignalRef)
fillanyOf(Color, Gradient, None, ExprOrSignalRef)

Default fill color. This property has higher precedence than config.color. Set to null to remove fill.

Default value: (None)

fillOpacityanyOf(float, ExprOrSignalRef)
filledboolean

Whether the mark’s color should be used as fill color instead of stroke color.

Default value: false for all point, line, and rule marks as well as geoshape marks for graticule data sources; otherwise, true.

Note: This property cannot be used in a style config.

fontanyOf(string, ExprOrSignalRef)
fontSizeanyOf(float, ExprOrSignalRef)
fontStyleanyOf(FontStyle, ExprOrSignalRef)
fontWeightanyOf(FontWeight, ExprOrSignalRef)
heightanyOf(float, ExprOrSignalRef)
hrefanyOf(URI, ExprOrSignalRef)
innerRadiusanyOf(float, ExprOrSignalRef)

The inner radius in pixels of arc marks. innerRadius is an alias for radius2.

interpolateanyOf(Interpolate, ExprOrSignalRef)
invalidenum(‘filter’, None)

Defines how Vega-Lite should handle marks for invalid values ( null and NaN ). - If set to "filter" (default), all data items with null values will be skipped (for line, trail, and area marks) or filtered (for other marks). - If null, all data items are included. In this case, invalid values will be interpreted as zeroes.

limitanyOf(float, ExprOrSignalRef)
lineBreakanyOf(string, ExprOrSignalRef)
lineHeightanyOf(float, ExprOrSignalRef)
opacityanyOf(float, ExprOrSignalRef)

The overall opacity (value between [0,1]).

Default value: 0.7 for non-aggregate plots with point, tick, circle, or square marks or layered bar charts and 1 otherwise.

orderanyOf(None, boolean)

For line and trail marks, this order property can be set to null or false to make the lines use the original order in the data sources.

orientOrientation

The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. - For bar, rule and tick, this determines whether the size of the bar and tick should be applied to x or y dimension. - For area, this property determines the orient property of the Vega output. - For line and trail marks, this property determines the sort order of the points in the line if config.sortLineBy is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored.

outerRadiusanyOf(float, ExprOrSignalRef)

The outer radius in pixels of arc marks. outerRadius is an alias for radius.

padAngleanyOf(float, ExprOrSignalRef)
radiusanyOf(float, ExprOrSignalRef)

For arc mark, the primary (outer) radius in pixels.

For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the x and y properties.

radius2anyOf(float, ExprOrSignalRef)

The secondary (inner) radius in pixels of arc marks.

shapeanyOf(anyOf(SymbolShape, string), ExprOrSignalRef)
sizeanyOf(float, ExprOrSignalRef)

Default size for marks. - For point / circle / square, this represents the pixel area of the marks. Note that this value sets the area of the symbol; the side lengths will increase with the square root of this value. - For bar, this represents the band size of the bar, in pixels. - For text, this represents the font size, in pixels.

Default value: - 30 for point, circle, square marks; width/height’s step - 2 for bar marks with discrete dimensions; - 5 for bar marks with continuous dimensions; - 11 for text marks.

smoothanyOf(boolean, ExprOrSignalRef)
startAngleanyOf(float, ExprOrSignalRef)
strokeanyOf(Color, Gradient, None, ExprOrSignalRef)

Default stroke color. This property has higher precedence than config.color. Set to null to remove stroke.

Default value: (None)

strokeCapanyOf(StrokeCap, ExprOrSignalRef)
strokeDashanyOf(List(float), ExprOrSignalRef)
strokeDashOffsetanyOf(float, ExprOrSignalRef)
strokeJoinanyOf(StrokeJoin, ExprOrSignalRef)
strokeMiterLimitanyOf(float, ExprOrSignalRef)
strokeOffsetanyOf(float, ExprOrSignalRef)
strokeOpacityanyOf(float, ExprOrSignalRef)
strokeWidthanyOf(float, ExprOrSignalRef)
tensionanyOf(float, ExprOrSignalRef)
textanyOf(Text, ExprOrSignalRef)
thetaanyOf(float, ExprOrSignalRef)

For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.)

For text marks, polar coordinate angle in radians.

theta2anyOf(float, ExprOrSignalRef)

The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise.

timeUnitBandfloat

Default relative band size for a time unit. If set to 1, the bandwidth of the marks will be equal to the time unit band step. If set to 0.5, bandwidth of the marks will be half of the time unit band step.

timeUnitBandPositionfloat

Default relative band position for a time unit. If set to 0, the marks will be positioned at the beginning of the time unit band step. If set to 0.5, the marks will be positioned in the middle of the time unit band step.

tooltipanyOf(float, string, boolean, TooltipContent, ExprOrSignalRef,
None)

The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from.

  • If tooltip is true or {"content": "encoding"}, then all fields from encoding will be used. - If tooltip is {"content": "data"}, then all fields that appear in the highlighted data point will be used. - If set to null or false, then no tooltip will be used.

See the tooltip documentation for a detailed discussion about tooltip in Vega-Lite.

Default value: null

urlanyOf(URI, ExprOrSignalRef)
widthanyOf(float, ExprOrSignalRef)
xanyOf(float, string, ExprOrSignalRef)

X coordinates of the marks, or width of horizontal "bar" and "area" without specified x2 or width.

The value of this channel can be a number or a string "width" for the width of the plot.

x2anyOf(float, string, ExprOrSignalRef)

X2 coordinates for ranged "area", "bar", "rect", and "rule".

The value of this channel can be a number or a string "width" for the width of the plot.

yanyOf(float, string, ExprOrSignalRef)

Y coordinates of the marks, or height of vertical "bar" and "area" without specified y2 or height.

The value of this channel can be a number or a string "height" for the height of the plot.

y2anyOf(float, string, ExprOrSignalRef)

Y2 coordinates for ranged "area", "bar", "rect", and "rule".

The value of this channel can be a number or a string "height" for the height of the plot.

__init__(align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, blend=Undefined, color=Undefined, cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, cornerRadiusTopLeft=Undefined, cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, endAngle=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, limit=Undefined, lineBreak=Undefined, lineHeight=Undefined, opacity=Undefined, order=Undefined, orient=Undefined, outerRadius=Undefined, padAngle=Undefined, radius=Undefined, radius2=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, timeUnitBand=Undefined, timeUnitBandPosition=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, **kwds)

Methods

__init__([align, angle, aria, ariaRole, ...])

copy([deep, ignore])

Return a copy of the object

from_dict(dct[, validate, _wrapper_classes])

Construct class from a dictionary representation

from_json(json_string[, validate])

Instantiate the object from a valid JSON string

resolve_references([schema])

Resolve references in the context of this object's schema or root schema.

to_dict([validate, ignore, context])

Return a dictionary representation of the object

to_json([validate, ignore, context, indent, ...])

Emit the JSON representation for this object as a string.

validate(instance[, schema])

Validate the instance against the class schema in the context of the rootschema.

validate_property(name, value[, schema])

Validate a property against property schema in the context of the rootschema