# The contents of this file are automatically written by
# tools/generate_schema_wrapper.py. Do not modify directly.
import sys
from . import core
from altair.utils import use_signature
from altair.utils.schemapi import Undefined, UndefinedType
from typing import Any, Sequence, List, Literal, Union
if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self
class MarkMethodMixin:
"""A mixin class that defines mark methods"""
def mark_arc(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'arc' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="arc", **kwds)
else:
copy.mark = "arc"
return copy
def mark_area(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'area' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="area", **kwds)
else:
copy.mark = "area"
return copy
def mark_bar(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'bar' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="bar", **kwds)
else:
copy.mark = "bar"
return copy
def mark_image(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'image' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="image", **kwds)
else:
copy.mark = "image"
return copy
def mark_line(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'line' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="line", **kwds)
else:
copy.mark = "line"
return copy
def mark_point(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'point' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="point", **kwds)
else:
copy.mark = "point"
return copy
def mark_rect(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'rect' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="rect", **kwds)
else:
copy.mark = "rect"
return copy
def mark_rule(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'rule' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="rule", **kwds)
else:
copy.mark = "rule"
return copy
def mark_text(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'text' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="text", **kwds)
else:
copy.mark = "text"
return copy
def mark_tick(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'tick' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="tick", **kwds)
else:
copy.mark = "tick"
return copy
def mark_trail(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'trail' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="trail", **kwds)
else:
copy.mark = "trail"
return copy
def mark_circle(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'circle' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="circle", **kwds)
else:
copy.mark = "circle"
return copy
def mark_square(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'square' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="square", **kwds)
else:
copy.mark = "square"
return copy
def mark_geoshape(
self,
align: Union[
Union[
Union[Literal["left", "center", "right"], core.Align],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
angle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
aria: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
ariaRole: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
ariaRoleDescription: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
aspect: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
bandSize: Union[float, UndefinedType] = Undefined,
baseline: Union[
Union[
Union[
Union[Literal["top", "middle", "bottom"], core.Baseline],
core.TextBaseline,
str,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
binSpacing: Union[float, UndefinedType] = Undefined,
blend: Union[
Union[
Union[
Literal[
None,
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity",
],
core.Blend,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
continuousBandSize: Union[float, UndefinedType] = Undefined,
cornerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusBottomRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusEnd: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopLeft: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cornerRadiusTopRight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
cursor: Union[
Union[
Union[
Literal[
"auto",
"default",
"none",
"context-menu",
"help",
"pointer",
"progress",
"wait",
"cell",
"crosshair",
"text",
"vertical-text",
"alias",
"copy",
"move",
"no-drop",
"not-allowed",
"e-resize",
"n-resize",
"ne-resize",
"nw-resize",
"s-resize",
"se-resize",
"sw-resize",
"w-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"col-resize",
"row-resize",
"all-scroll",
"zoom-in",
"zoom-out",
"grab",
"grabbing",
],
core.Cursor,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
description: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
dir: Union[
Union[
Union[Literal["ltr", "rtl"], core.TextDirection],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
discreteBandSize: Union[
Union[Union[core.RelativeBandSize, dict], float], UndefinedType
] = Undefined,
dx: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
dy: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
ellipsis: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fill: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
fillOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
filled: Union[bool, UndefinedType] = Undefined,
font: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
fontSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
fontStyle: Union[
Union[
Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str]
],
UndefinedType,
] = Undefined,
fontWeight: Union[
Union[
Union[
Literal[
"normal",
"bold",
"lighter",
"bolder",
100,
200,
300,
400,
500,
600,
700,
800,
900,
],
core.FontWeight,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
height: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
href: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
innerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
interpolate: Union[
Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
limit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
line: Union[
Union[Union[core.OverlayMarkDef, dict], bool], UndefinedType
] = Undefined,
lineBreak: Union[
Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType
] = Undefined,
lineHeight: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
minBandSize: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
opacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
order: Union[Union[None, bool], UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outerRadius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
padAngle: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
point: Union[
Union[Union[core.OverlayMarkDef, dict], bool, str], UndefinedType
] = Undefined,
radius: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radius2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
radiusOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
shape: Union[
Union[
Union[Union[core.SymbolShape, str], str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
size: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
smooth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType
] = Undefined,
stroke: Union[
Union[
None,
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeCap: Union[
Union[
Union[Literal["butt", "round", "square"], core.StrokeCap],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeDash: Union[
Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]],
UndefinedType,
] = Undefined,
strokeDashOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeJoin: Union[
Union[
Union[Literal["miter", "round", "bevel"], core.StrokeJoin],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
strokeMiterLimit: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeOpacity: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
strokeWidth: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
style: Union[Union[Sequence[str], str], UndefinedType] = Undefined,
tension: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
text: Union[
Union[
Union[Sequence[str], core.Text, str],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
theta: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
theta2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thetaOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
timeUnitBandPosition: Union[float, UndefinedType] = Undefined,
timeUnitBandSize: Union[float, UndefinedType] = Undefined,
tooltip: Union[
Union[
None,
Union[core.ExprRef, core._Parameter, dict],
Union[core.TooltipContent, dict],
bool,
float,
str,
],
UndefinedType,
] = Undefined,
url: Union[
Union[Union[core.ExprRef, core._Parameter, dict], Union[core.URI, str]],
UndefinedType,
] = Undefined,
width: Union[
Union[
Union[core.ExprRef, core._Parameter, dict],
Union[core.RelativeBandSize, dict],
float,
],
UndefinedType,
] = Undefined,
x: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
x2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
xOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
y: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType
] = Undefined,
y2Offset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
yOffset: Union[
Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'geoshape' (see :class:`MarkDef`)"""
kwds = dict(
align=align,
angle=angle,
aria=aria,
ariaRole=ariaRole,
ariaRoleDescription=ariaRoleDescription,
aspect=aspect,
bandSize=bandSize,
baseline=baseline,
binSpacing=binSpacing,
blend=blend,
clip=clip,
color=color,
continuousBandSize=continuousBandSize,
cornerRadius=cornerRadius,
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
cornerRadiusBottomRight=cornerRadiusBottomRight,
cornerRadiusEnd=cornerRadiusEnd,
cornerRadiusTopLeft=cornerRadiusTopLeft,
cornerRadiusTopRight=cornerRadiusTopRight,
cursor=cursor,
description=description,
dir=dir,
discreteBandSize=discreteBandSize,
dx=dx,
dy=dy,
ellipsis=ellipsis,
fill=fill,
fillOpacity=fillOpacity,
filled=filled,
font=font,
fontSize=fontSize,
fontStyle=fontStyle,
fontWeight=fontWeight,
height=height,
href=href,
innerRadius=innerRadius,
interpolate=interpolate,
invalid=invalid,
limit=limit,
line=line,
lineBreak=lineBreak,
lineHeight=lineHeight,
minBandSize=minBandSize,
opacity=opacity,
order=order,
orient=orient,
outerRadius=outerRadius,
padAngle=padAngle,
point=point,
radius=radius,
radius2=radius2,
radius2Offset=radius2Offset,
radiusOffset=radiusOffset,
shape=shape,
size=size,
smooth=smooth,
stroke=stroke,
strokeCap=strokeCap,
strokeDash=strokeDash,
strokeDashOffset=strokeDashOffset,
strokeJoin=strokeJoin,
strokeMiterLimit=strokeMiterLimit,
strokeOffset=strokeOffset,
strokeOpacity=strokeOpacity,
strokeWidth=strokeWidth,
style=style,
tension=tension,
text=text,
theta=theta,
theta2=theta2,
theta2Offset=theta2Offset,
thetaOffset=thetaOffset,
thickness=thickness,
timeUnitBandPosition=timeUnitBandPosition,
timeUnitBandSize=timeUnitBandSize,
tooltip=tooltip,
url=url,
width=width,
x=x,
x2=x2,
x2Offset=x2Offset,
xOffset=xOffset,
y=y,
y2=y2,
y2Offset=y2Offset,
yOffset=yOffset,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.MarkDef(type="geoshape", **kwds)
else:
copy.mark = "geoshape"
return copy
def mark_boxplot(
self,
box: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
extent: Union[Union[float, str], UndefinedType] = Undefined,
invalid: Union[Literal["filter", None], UndefinedType] = Undefined,
median: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
opacity: Union[float, UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
outliers: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
rule: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
size: Union[float, UndefinedType] = Undefined,
ticks: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'boxplot' (see :class:`BoxPlotDef`)"""
kwds = dict(
box=box,
clip=clip,
color=color,
extent=extent,
invalid=invalid,
median=median,
opacity=opacity,
orient=orient,
outliers=outliers,
rule=rule,
size=size,
ticks=ticks,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.BoxPlotDef(type="boxplot", **kwds)
else:
copy.mark = "boxplot"
return copy
def mark_errorbar(
self,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
extent: Union[
Union[Literal["ci", "iqr", "stderr", "stdev"], core.ErrorBarExtent],
UndefinedType,
] = Undefined,
opacity: Union[float, UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
rule: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
size: Union[float, UndefinedType] = Undefined,
thickness: Union[float, UndefinedType] = Undefined,
ticks: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'errorbar' (see :class:`ErrorBarDef`)"""
kwds = dict(
clip=clip,
color=color,
extent=extent,
opacity=opacity,
orient=orient,
rule=rule,
size=size,
thickness=thickness,
ticks=ticks,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.ErrorBarDef(type="errorbar", **kwds)
else:
copy.mark = "errorbar"
return copy
def mark_errorband(
self,
band: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
borders: Union[
Union[
Union[
Union[core.AreaConfig, dict],
Union[core.BarConfig, dict],
Union[core.LineConfig, dict],
Union[core.MarkConfig, dict],
Union[core.RectConfig, dict],
Union[core.TickConfig, dict],
core.AnyMarkConfig,
],
bool,
],
UndefinedType,
] = Undefined,
clip: Union[bool, UndefinedType] = Undefined,
color: Union[
Union[
Union[
Union[
Literal[
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"orange",
"aliceblue",
"antiquewhite",
"aquamarine",
"azure",
"beige",
"bisque",
"blanchedalmond",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"limegreen",
"linen",
"magenta",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"oldlace",
"olivedrab",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"rebeccapurple",
],
core.ColorName,
],
Union[core.HexColor, str],
core.Color,
str,
],
Union[
Union[core.LinearGradient, dict],
Union[core.RadialGradient, dict],
core.Gradient,
],
Union[core.ExprRef, core._Parameter, dict],
],
UndefinedType,
] = Undefined,
extent: Union[
Union[Literal["ci", "iqr", "stderr", "stdev"], core.ErrorBarExtent],
UndefinedType,
] = Undefined,
interpolate: Union[
Union[
Literal[
"basis",
"basis-open",
"basis-closed",
"bundle",
"cardinal",
"cardinal-open",
"cardinal-closed",
"catmull-rom",
"linear",
"linear-closed",
"monotone",
"natural",
"step",
"step-before",
"step-after",
],
core.Interpolate,
],
UndefinedType,
] = Undefined,
opacity: Union[float, UndefinedType] = Undefined,
orient: Union[
Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType
] = Undefined,
tension: Union[float, UndefinedType] = Undefined,
**kwds,
) -> Self:
"""Set the chart's mark to 'errorband' (see :class:`ErrorBandDef`)"""
kwds = dict(
band=band,
borders=borders,
clip=clip,
color=color,
extent=extent,
interpolate=interpolate,
opacity=opacity,
orient=orient,
tension=tension,
**kwds,
)
copy = self.copy(deep=False) # type: ignore[attr-defined]
if any(val is not Undefined for val in kwds.values()):
copy.mark = core.ErrorBandDef(type="errorband", **kwds)
else:
copy.mark = "errorband"
return copy
class ConfigMethodMixin:
"""A mixin class that defines config methods"""
@use_signature(core.Config)
def configure(self, *args, **kwargs) -> Self:
copy = self.copy(deep=False) # type: ignore[attr-defined]
copy.config = core.Config(*args, **kwargs)
return copy
@use_signature(core.RectConfig)
def configure_arc(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["arc"] = core.RectConfig(*args, **kwargs)
return copy
@use_signature(core.AreaConfig)
def configure_area(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["area"] = core.AreaConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axis(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axis"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisBand(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisBand"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisBottom(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisBottom"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisDiscrete(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisDiscrete"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisLeft(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisLeft"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisPoint(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisPoint"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisQuantitative(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisQuantitative"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisRight(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisRight"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisTemporal(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisTemporal"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisTop(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisTop"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisX(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisX"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisXBand(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisXBand"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisXDiscrete(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisXDiscrete"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisXPoint(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisXPoint"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisXQuantitative(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisXQuantitative"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisXTemporal(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisXTemporal"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisY(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisY"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisYBand(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisYBand"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisYDiscrete(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisYDiscrete"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisYPoint(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisYPoint"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisYQuantitative(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisYQuantitative"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.AxisConfig)
def configure_axisYTemporal(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["axisYTemporal"] = core.AxisConfig(*args, **kwargs)
return copy
@use_signature(core.BarConfig)
def configure_bar(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["bar"] = core.BarConfig(*args, **kwargs)
return copy
@use_signature(core.BoxPlotConfig)
def configure_boxplot(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["boxplot"] = core.BoxPlotConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_circle(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["circle"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.CompositionConfig)
def configure_concat(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["concat"] = core.CompositionConfig(*args, **kwargs)
return copy
@use_signature(core.ErrorBandConfig)
def configure_errorband(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["errorband"] = core.ErrorBandConfig(*args, **kwargs)
return copy
@use_signature(core.ErrorBarConfig)
def configure_errorbar(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["errorbar"] = core.ErrorBarConfig(*args, **kwargs)
return copy
@use_signature(core.CompositionConfig)
def configure_facet(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["facet"] = core.CompositionConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_geoshape(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["geoshape"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.HeaderConfig)
def configure_header(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["header"] = core.HeaderConfig(*args, **kwargs)
return copy
@use_signature(core.HeaderConfig)
def configure_headerColumn(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["headerColumn"] = core.HeaderConfig(*args, **kwargs)
return copy
@use_signature(core.HeaderConfig)
def configure_headerFacet(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["headerFacet"] = core.HeaderConfig(*args, **kwargs)
return copy
@use_signature(core.HeaderConfig)
def configure_headerRow(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["headerRow"] = core.HeaderConfig(*args, **kwargs)
return copy
@use_signature(core.RectConfig)
def configure_image(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["image"] = core.RectConfig(*args, **kwargs)
return copy
@use_signature(core.LegendConfig)
def configure_legend(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["legend"] = core.LegendConfig(*args, **kwargs)
return copy
@use_signature(core.LineConfig)
def configure_line(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["line"] = core.LineConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_mark(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["mark"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_point(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["point"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.ProjectionConfig)
def configure_projection(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["projection"] = core.ProjectionConfig(*args, **kwargs)
return copy
@use_signature(core.RangeConfig)
def configure_range(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["range"] = core.RangeConfig(*args, **kwargs)
return copy
@use_signature(core.RectConfig)
def configure_rect(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["rect"] = core.RectConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_rule(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["rule"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.ScaleConfig)
def configure_scale(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["scale"] = core.ScaleConfig(*args, **kwargs)
return copy
@use_signature(core.SelectionConfig)
def configure_selection(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["selection"] = core.SelectionConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_square(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["square"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.MarkConfig)
def configure_text(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["text"] = core.MarkConfig(*args, **kwargs)
return copy
@use_signature(core.TickConfig)
def configure_tick(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["tick"] = core.TickConfig(*args, **kwargs)
return copy
@use_signature(core.TitleConfig)
def configure_title(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["title"] = core.TitleConfig(*args, **kwargs)
return copy
@use_signature(core.FormatConfig)
def configure_tooltipFormat(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["tooltipFormat"] = core.FormatConfig(*args, **kwargs)
return copy
@use_signature(core.LineConfig)
def configure_trail(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["trail"] = core.LineConfig(*args, **kwargs)
return copy
@use_signature(core.ViewConfig)
def configure_view(self, *args, **kwargs) -> Self:
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
if copy.config is Undefined:
copy.config = core.Config()
copy.config["view"] = core.ViewConfig(*args, **kwargs)
return copy
Back to Directory