altair.theme.ViewBackgroundKwds#
- class altair.theme.ViewBackgroundKwds#
altair.ViewBackground
TypedDict
wrapper.- Parameters:
- cornerRadius
The radius in pixels of rounded rectangles or arcs’ corners.
Default value:
0
- cursor
The mouse cursor used over the view. Any valid CSS cursor type can be used.
- fill
The fill color.
Default value:
undefined
- fillOpacity
The fill opacity (value between [0,1]).
Default value:
1
- opacity
The overall opacity (value between [0,1]).
Default value:
0.7
for non-aggregate plots withpoint
,tick
,circle
, orsquare
marks or layeredbar
charts and1
otherwise.- stroke
The stroke color.
Default value:
"#ddd"
- strokeCap
The stroke cap for line ending style. One of
"butt"
,"round"
, or"square"
.Default value:
"butt"
- strokeDash
An array of alternating stroke, space lengths for creating dashed or dotted lines.
- strokeDashOffset
The offset (in pixels) into which to begin drawing with the stroke dash array.
- strokeJoin
The stroke line join method. One of
"miter"
,"round"
or"bevel"
.Default value:
"miter"
- strokeMiterLimit
The miter limit at which to bevel a line join.
- strokeOpacity
The stroke opacity (value between [0,1]).
Default value:
1
- strokeWidth
The stroke width, in pixels.
- style
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__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)clear
()copy
()fromkeys
(iterable[, value])Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])Return the value for key if key is in the dictionary, else default.
items
()keys
()pop
(key[, default])If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem
(/)Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])Insert key with a value of default if key is not in the dictionary.
update
([E, ]**F)If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
()Attributes
cornerRadius
cursor
fill
fillOpacity
opacity
stroke
strokeCap
strokeDash
strokeDashOffset
strokeJoin
strokeMiterLimit
strokeOpacity
strokeWidth
style