altair.ViewBackground

class altair.ViewBackground(cornerRadius=Undefined, cursor=Undefined, fill=Undefined, fillOpacity=Undefined, opacity=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, **kwds)

ViewBackground schema wrapper

Mapping(required=[])

Attributes
cornerRadiusanyOf(float, ExprRef)
cursorCursor

The mouse cursor used over the view. Any valid CSS cursor type can be used.

fillanyOf(Color, None, ExprRef)

The fill color.

Default value: undefined

fillOpacityanyOf(float, ExprRef)
opacityanyOf(float, ExprRef)

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.

strokeanyOf(Color, None, ExprRef)

The stroke color.

Default value: "#ddd"

strokeCapanyOf(StrokeCap, ExprRef)
strokeDashanyOf(List(float), ExprRef)
strokeDashOffsetanyOf(float, ExprRef)
strokeJoinanyOf(StrokeJoin, ExprRef)
strokeMiterLimitanyOf(float, ExprRef)
strokeOpacityanyOf(float, ExprRef)
strokeWidthanyOf(float, ExprRef)
styleanyOf(string, List(string))

A string or array of strings indicating the name of custom styles to apply to the view background. A style is a named collection of mark property defaults defined within the style configuration. If style is an array, later styles will override earlier styles.

Default value: "cell" Note: Any specified view background properties will augment the default style.

__init__(cornerRadius=Undefined, cursor=Undefined, fill=Undefined, fillOpacity=Undefined, opacity=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, **kwds)

Methods

__init__([cornerRadius, cursor, fill, ...])

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