diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a7a1e09c4..a9b0920ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,7 +72,7 @@ hatch run test ``` -This also runs the [`black`](https://black.readthedocs.io/) code formatter, [`ruff`](https://ruff.rs/) linter and [`mypy`](https://mypy-lang.org/) as type checker. +This also runs the [`ruff`](https://ruff.rs/) linter and formatter as well as [`mypy`](https://mypy-lang.org/) as type checker. Study the output of any failed tests and try to fix the issues diff --git a/altair/utils/schemapi.py b/altair/utils/schemapi.py index f4b2e6b57..cf2fba2f6 100644 --- a/altair/utils/schemapi.py +++ b/altair/utils/schemapi.py @@ -44,7 +44,7 @@ else: from typing_extensions import Self -_TSchemaBase = TypeVar("_TSchemaBase", bound="SchemaBase") +_TSchemaBase = TypeVar("_TSchemaBase", bound=Type["SchemaBase"]) ValidationErrorList = List[jsonschema.exceptions.ValidationError] GroupedValidationErrors = Dict[str, ValidationErrorList] diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index 259cce0e1..cff3f69e7 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -18,6 +18,7 @@ from .data import data_transformers from ... import utils, expr +from ...expr import core as _expr_core from .display import renderers, VEGALITE_VERSION, VEGAEMBED_VERSION, VEGA_VERSION from .theme import themes from .compiler import vegalite_compilers @@ -186,9 +187,12 @@ def _get_channels_mapping() -> TypingDict[TypingType[core.SchemaBase], str]: # ------------------------------------------------------------------------- # Tools for working with parameters -class Parameter(expr.core.OperatorMixin, object): +class Parameter(_expr_core.OperatorMixin): """A Parameter object""" + # NOTE: If you change this class, make sure that the protocol in + # altair/vegalite/v5/schema/core.py is updated accordingly if needed. + _counter: int = 0 @classmethod @@ -238,7 +242,7 @@ def __invert__(self): if self.param_type == "selection": return SelectionPredicateComposition({"not": {"param": self.name}}) else: - return expr.core.OperatorMixin.__invert__(self) + return _expr_core.OperatorMixin.__invert__(self) def __and__(self, other): if self.param_type == "selection": @@ -246,7 +250,7 @@ def __and__(self, other): other = {"param": other.name} return SelectionPredicateComposition({"and": [{"param": self.name}, other]}) else: - return expr.core.OperatorMixin.__and__(self, other) + return _expr_core.OperatorMixin.__and__(self, other) def __or__(self, other): if self.param_type == "selection": @@ -254,7 +258,7 @@ def __or__(self, other): other = {"param": other.name} return SelectionPredicateComposition({"or": [{"param": self.name}, other]}) else: - return expr.core.OperatorMixin.__or__(self, other) + return _expr_core.OperatorMixin.__or__(self, other) def __repr__(self) -> str: return "Parameter({0!r}, {1})".format(self.name, self.param) @@ -267,20 +271,20 @@ def _from_expr(self, expr) -> "ParameterExpression": def __getattr__( self, field_name: str - ) -> Union[expr.core.GetAttrExpression, "SelectionExpression"]: + ) -> Union[_expr_core.GetAttrExpression, "SelectionExpression"]: if field_name.startswith("__") and field_name.endswith("__"): raise AttributeError(field_name) - _attrexpr = expr.core.GetAttrExpression(self.name, field_name) + _attrexpr = _expr_core.GetAttrExpression(self.name, field_name) # If self is a SelectionParameter and field_name is in its # fields or encodings list, then we want to return an expression. if check_fields_and_encodings(self, field_name): return SelectionExpression(_attrexpr) - return expr.core.GetAttrExpression(self.name, field_name) + return _expr_core.GetAttrExpression(self.name, field_name) # TODO: Are there any special cases to consider for __getitem__? # This was copied from v4. - def __getitem__(self, field_name: str) -> expr.core.GetItemExpression: - return expr.core.GetItemExpression(self.name, field_name) + def __getitem__(self, field_name: str) -> _expr_core.GetItemExpression: + return _expr_core.GetItemExpression(self.name, field_name) # Enables use of ~, &, | with compositions of selection objects. @@ -295,7 +299,7 @@ def __or__(self, other): return SelectionPredicateComposition({"or": [self.to_dict(), other.to_dict()]}) -class ParameterExpression(expr.core.OperatorMixin, object): +class ParameterExpression(_expr_core.OperatorMixin, object): def __init__(self, expr) -> None: self.expr = expr @@ -309,7 +313,7 @@ def _from_expr(self, expr) -> "ParameterExpression": return ParameterExpression(expr=expr) -class SelectionExpression(expr.core.OperatorMixin, object): +class SelectionExpression(_expr_core.OperatorMixin, object): def __init__(self, expr) -> None: self.expr = expr @@ -346,9 +350,9 @@ def value(value, **kwargs) -> dict: def param( name: Optional[str] = None, value: Union[Any, UndefinedType] = Undefined, - bind: Union[core.Binding, str, UndefinedType] = Undefined, + bind: Union[core.Binding, UndefinedType] = Undefined, empty: Union[bool, UndefinedType] = Undefined, - expr: Union[str, core.Expr, expr.core.Expression, UndefinedType] = Undefined, + expr: Union[str, core.Expr, _expr_core.Expression, UndefinedType] = Undefined, **kwds, ) -> Parameter: """Create a named parameter. @@ -365,7 +369,7 @@ def param( value : any (optional) The default value of the parameter. If not specified, the parameter will be created without a default value. - bind : :class:`Binding`, str (optional) + bind : :class:`Binding` (optional) Binds the parameter to an external input element such as a slider, selection list or radio button group. empty : boolean (optional) @@ -421,9 +425,14 @@ def param( # If both 'value' and 'init' are set, we ignore 'init'. kwds.pop("init") + # ignore[arg-type] comment is needed because we can also pass _expr_core.Expression if "select" not in kwds: parameter.param = core.VariableParameter( - name=parameter.name, bind=bind, value=value, expr=expr, **kwds + name=parameter.name, + bind=bind, + value=value, + expr=expr, # type: ignore[arg-type] + **kwds, ) parameter.param_type = "variable" elif "views" in kwds: @@ -503,7 +512,7 @@ def selection_interval( value: Union[Any, UndefinedType] = Undefined, bind: Union[core.Binding, str, UndefinedType] = Undefined, empty: Union[bool, UndefinedType] = Undefined, - expr: Union[str, core.Expr, expr.core.Expression, UndefinedType] = Undefined, + expr: Union[str, core.Expr, _expr_core.Expression, UndefinedType] = Undefined, encodings: Union[List[str], UndefinedType] = Undefined, on: Union[str, UndefinedType] = Undefined, clear: Union[str, bool, UndefinedType] = Undefined, @@ -807,7 +816,7 @@ def condition( test_predicates = (str, expr.Expression, core.PredicateComposition) condition: TypingDict[ - str, Union[bool, str, expr.core.Expression, core.PredicateComposition] + str, Union[bool, str, _expr_core.Expression, core.PredicateComposition] ] if isinstance(predicate, Parameter): if ( @@ -1376,7 +1385,9 @@ def project( spacing=spacing, tilt=tilt, translate=translate, - type=type, + # Ignore as we type here `type` as a str but in core.Projection + # it's a Literal with all options + type=type, # type: ignore[arg-type] **kwds, ) return self.properties(projection=projection) @@ -1537,9 +1548,9 @@ def transform_calculate( self, as_: Union[str, core.FieldName, UndefinedType] = Undefined, calculate: Union[ - str, core.Expr, expr.core.Expression, UndefinedType + str, core.Expr, _expr_core.Expression, UndefinedType ] = Undefined, - **kwargs: Union[str, core.Expr, expr.core.Expression], + **kwargs: Union[str, core.Expr, _expr_core.Expression], ) -> Self: """ Add a :class:`CalculateTransform` to the schema. @@ -1600,10 +1611,10 @@ def transform_calculate( ) if as_ is not Undefined or calculate is not Undefined: dct = {"as": as_, "calculate": calculate} - self = self._add_transform(core.CalculateTransform(**dct)) + self = self._add_transform(core.CalculateTransform(**dct)) # type: ignore[arg-type] for as_, calculate in kwargs.items(): dct = {"as": as_, "calculate": calculate} - self = self._add_transform(core.CalculateTransform(**dct)) + self = self._add_transform(core.CalculateTransform(**dct)) # type: ignore[arg-type] return self def transform_density( @@ -1832,7 +1843,7 @@ def transform_filter( filter: Union[ str, core.Expr, - expr.core.Expression, + _expr_core.Expression, core.Predicate, Parameter, core.PredicateComposition, @@ -1866,7 +1877,7 @@ def transform_filter( elif isinstance(filter.empty, bool): new_filter["empty"] = filter.empty filter = new_filter # type: ignore[assignment] - return self._add_transform(core.FilterTransform(filter=filter, **kwargs)) + return self._add_transform(core.FilterTransform(filter=filter, **kwargs)) # type: ignore[arg-type] def transform_flatten( self, @@ -2068,7 +2079,13 @@ def transform_pivot( """ return self._add_transform( core.PivotTransform( - pivot=pivot, value=value, groupby=groupby, limit=limit, op=op + # Ignore as we type here `op` as a str but in core.PivotTransform + # it's a Literal with all options + pivot=pivot, + value=value, + groupby=groupby, + limit=limit, + op=op, # type: ignore[arg-type] ) ) @@ -2318,7 +2335,7 @@ def transform_timeunit( ) if as_ is not Undefined: dct = {"as": as_, "timeUnit": timeUnit, "field": field} - self = self._add_transform(core.TimeUnitTransform(**dct)) + self = self._add_transform(core.TimeUnitTransform(**dct)) # type: ignore[arg-type] for as_, shorthand in kwargs.items(): dct = utils.parse_shorthand( shorthand, @@ -2330,7 +2347,7 @@ def transform_timeunit( dct["as"] = as_ if "timeUnit" not in dct: raise ValueError("'{}' must include a valid timeUnit".format(shorthand)) - self = self._add_transform(core.TimeUnitTransform(**dct)) + self = self._add_transform(core.TimeUnitTransform(**dct)) # type: ignore[arg-type] return self def transform_window( @@ -2426,7 +2443,8 @@ def transform_window( ) ) assert not isinstance(window, UndefinedType) # For mypy - window.append(core.WindowFieldDef(**kwds)) + # Ignore as core.WindowFieldDef has a Literal type hint with all options + window.append(core.WindowFieldDef(**kwds)) # type: ignore[arg-type] return self._add_transform( core.WindowTransform( @@ -2607,7 +2625,7 @@ def resolve_scale(self, *args, **kwargs) -> Self: class _EncodingMixin: - @utils.use_signature(core.FacetedEncoding) + @utils.use_signature(channels._encode_signature) def encode(self, *args, **kwargs) -> Self: # Convert args to kwargs based on their types. kwargs = utils.infer_encoding_types(args, kwargs, channels) @@ -2760,7 +2778,10 @@ def __init__( **kwargs, ) -> None: super(Chart, self).__init__( - data=data, + # Data type hints won't match with what TopLevelUnitSpec expects + # as there is some data processing happening when converting to + # a VL spec + data=data, # type: ignore[arg-type] encoding=encoding, mark=mark, width=width, diff --git a/altair/vegalite/v5/schema/__init__.py b/altair/vegalite/v5/schema/__init__.py index 92072a1f1..7d34e1bc6 100644 --- a/altair/vegalite/v5/schema/__init__.py +++ b/altair/vegalite/v5/schema/__init__.py @@ -1,5 +1,8 @@ # ruff: noqa + from .core import * -from .channels import * -SCHEMA_VERSION = 'v5.15.1' -SCHEMA_URL = 'https://vega.github.io/schema/vega-lite/v5.15.1.json' +from .channels import * # type: ignore[assignment] + +SCHEMA_VERSION = "v5.15.1" + +SCHEMA_URL = "https://vega.github.io/schema/vega-lite/v5.15.1.json" diff --git a/altair/vegalite/v5/schema/channels.py b/altair/vegalite/v5/schema/channels.py index 67d7fe1c0..4f220b2f2 100644 --- a/altair/vegalite/v5/schema/channels.py +++ b/altair/vegalite/v5/schema/channels.py @@ -1,112 +1,146 @@ # The contents of this file are automatically written by # tools/generate_schema_wrapper.py. Do not modify directly. +# These errors need to be ignored as they come from the overload methods +# which trigger two kind of errors in mypy: +# * all of them do not have an implementation in this file +# * some of them are the only overload methods -> overloads usually only make +# sense if there are multiple ones +# However, we need these overloads due to how the propertysetter works +# mypy: disable-error-code="no-overload-impl, empty-body, misc" + import sys from . import core import pandas as pd -from altair.utils.schemapi import Undefined, with_property_setters +from altair.utils.schemapi import Undefined, UndefinedType, with_property_setters from altair.utils import parse_shorthand -from typing import overload, List - -from typing import Literal +from typing import Any, overload, Sequence, List, Literal, Union, Optional +from typing import Dict as TypingDict class FieldChannelMixin: - def to_dict(self, validate=True, ignore=(), context=None): + def to_dict( + self, + validate: bool = True, + ignore: Optional[List[str]] = None, + context: Optional[TypingDict[str, Any]] = None, + ) -> Union[dict, List[dict]]: context = context or {} - shorthand = self._get('shorthand') - field = self._get('field') + ignore = ignore or [] + shorthand = self._get("shorthand") # type: ignore[attr-defined] + field = self._get("field") # type: ignore[attr-defined] if shorthand is not Undefined and field is not Undefined: - raise ValueError("{} specifies both shorthand={} and field={}. " - "".format(self.__class__.__name__, shorthand, field)) + raise ValueError( + "{} specifies both shorthand={} and field={}. " "".format( + self.__class__.__name__, shorthand, field + ) + ) if isinstance(shorthand, (tuple, list)): # If given a list of shorthands, then transform it to a list of classes - kwds = self._kwds.copy() - kwds.pop('shorthand') - return [self.__class__(sh, **kwds).to_dict(validate=validate, ignore=ignore, context=context) - for sh in shorthand] + kwds = self._kwds.copy() # type: ignore[attr-defined] + kwds.pop("shorthand") + return [ + self.__class__(sh, **kwds).to_dict( # type: ignore[call-arg] + validate=validate, ignore=ignore, context=context + ) + for sh in shorthand + ] if shorthand is Undefined: parsed = {} elif isinstance(shorthand, str): - parsed = parse_shorthand(shorthand, data=context.get('data', None)) - type_required = 'type' in self._kwds - type_in_shorthand = 'type' in parsed - type_defined_explicitly = self._get('type') is not Undefined + parsed = parse_shorthand(shorthand, data=context.get("data", None)) + type_required = "type" in self._kwds # type: ignore[attr-defined] + type_in_shorthand = "type" in parsed + type_defined_explicitly = self._get("type") is not Undefined # type: ignore[attr-defined] if not type_required: # Secondary field names don't require a type argument in VegaLite 3+. # We still parse it out of the shorthand, but drop it here. - parsed.pop('type', None) + parsed.pop("type", None) elif not (type_in_shorthand or type_defined_explicitly): - if isinstance(context.get('data', None), pd.DataFrame): + if isinstance(context.get("data", None), pd.DataFrame): raise ValueError( 'Unable to determine data type for the field "{}";' " verify that the field name is not misspelled." " If you are referencing a field from a transform," - " also confirm that the data type is specified correctly.".format(shorthand) + " also confirm that the data type is specified correctly.".format( + shorthand + ) ) else: - raise ValueError("{} encoding field is specified without a type; " - "the type cannot be automatically inferred because " - "the data is not specified as a pandas.DataFrame." - "".format(shorthand)) + raise ValueError( + "{} encoding field is specified without a type; " + "the type cannot be automatically inferred because " + "the data is not specified as a pandas.DataFrame." + "".format(shorthand) + ) else: # Shorthand is not a string; we pass the definition to field, # and do not do any parsing. - parsed = {'field': shorthand} + parsed = {"field": shorthand} context["parsed_shorthand"] = parsed return super(FieldChannelMixin, self).to_dict( - validate=validate, - ignore=ignore, - context=context + validate=validate, ignore=ignore, context=context ) class ValueChannelMixin: - def to_dict(self, validate=True, ignore=(), context=None): + def to_dict( + self, + validate: bool = True, + ignore: Optional[List[str]] = None, + context: Optional[TypingDict[str, Any]] = None, + ) -> dict: context = context or {} - condition = self._get('condition', Undefined) + ignore = ignore or [] + condition = self._get("condition", Undefined) # type: ignore[attr-defined] copy = self # don't copy unless we need to if condition is not Undefined: if isinstance(condition, core.SchemaBase): pass - elif 'field' in condition and 'type' not in condition: - kwds = parse_shorthand(condition['field'], context.get('data', None)) - copy = self.copy(deep=['condition']) - copy['condition'].update(kwds) - return super(ValueChannelMixin, copy).to_dict(validate=validate, - ignore=ignore, - context=context) + elif "field" in condition and "type" not in condition: + kwds = parse_shorthand(condition["field"], context.get("data", None)) + copy = self.copy(deep=["condition"]) # type: ignore[attr-defined] + copy["condition"].update(kwds) # type: ignore[index] + return super(ValueChannelMixin, copy).to_dict( + validate=validate, ignore=ignore, context=context + ) class DatumChannelMixin: - def to_dict(self, validate=True, ignore=(), context=None): + def to_dict( + self, + validate: bool = True, + ignore: Optional[List[str]] = None, + context: Optional[TypingDict[str, Any]] = None, + ) -> dict: context = context or {} - datum = self._get('datum', Undefined) + ignore = ignore or [] + datum = self._get("datum", Undefined) # type: ignore[attr-defined] copy = self # don't copy unless we need to if datum is not Undefined: if isinstance(datum, core.SchemaBase): pass - return super(DatumChannelMixin, copy).to_dict(validate=validate, - ignore=ignore, - context=context) + return super(DatumChannelMixin, copy).to_dict( + validate=validate, ignore=ignore, context=context + ) @with_property_setters class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber): """Angle schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -118,7 +152,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -139,14 +173,14 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -161,7 +195,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -170,7 +204,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -183,7 +217,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -222,7 +256,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -231,7 +265,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -251,7 +285,7 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -321,170 +355,2934 @@ class Angle(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "angle" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Angle': - ... - - def bandPosition(self, _: float, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Angle': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Angle': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Angle': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Angle, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, legend=legend, - scale=scale, sort=sort, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Angle": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Angle": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def bin(self, _: None, **kwds) -> "Angle": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "Angle": + ... + + @overload + def field(self, _: str, **kwds) -> "Angle": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def legend(self, _: None, **kwds) -> "Angle": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def scale(self, _: None, **kwds) -> "Angle": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Angle": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Angle": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Angle": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Angle": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Angle": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def sort(self, _: None, **kwds) -> "Angle": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Angle": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Angle": + ... + + @overload + def title(self, _: str, **kwds) -> "Angle": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Angle": + ... + + @overload + def title(self, _: None, **kwds) -> "Angle": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Angle": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Angle, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class AngleDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber): """AngleDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -493,16 +3291,16 @@ class AngleDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnum Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -522,7 +3320,7 @@ class AngleDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnum 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -592,110 +3390,881 @@ class AngleDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnum **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "angle" - def bandPosition(self, _: float, **kwds) -> 'AngleDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'AngleDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'AngleDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'AngleDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'AngleDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'AngleDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'AngleDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'AngleDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(AngleDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "AngleDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "AngleDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "AngleDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "AngleDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "AngleDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "AngleDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "AngleDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "AngleDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(AngleDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class AngleValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber): +class AngleValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber +): """AngleValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "angle" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'AngleValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'AngleValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'AngleValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'AngleValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'AngleValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'AngleValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'AngleValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "AngleValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "AngleValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "AngleValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "AngleValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "AngleValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "AngleValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "AngleValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(AngleValue, self).__init__(value=value, condition=condition, **kwds) @with_property_setters -class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull): +class Color( + FieldChannelMixin, + core.FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull, +): """Color schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, + Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -707,7 +4276,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -728,14 +4297,14 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -750,7 +4319,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -759,7 +4328,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -772,7 +4341,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -811,7 +4380,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -820,7 +4389,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -840,7 +4409,7 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -910,170 +4479,2966 @@ class Color(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "color" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Color': - ... - - def bandPosition(self, _: float, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Color': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Color': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Color': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Color, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, legend=legend, - scale=scale, sort=sort, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Color": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Color": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Color": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def bin(self, _: None, **kwds) -> "Color": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "Color": + ... + + @overload + def field(self, _: str, **kwds) -> "Color": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def legend(self, _: None, **kwds) -> "Color": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def scale(self, _: None, **kwds) -> "Color": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Color": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Color": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Color": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Color": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Color": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Color": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Color": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def sort(self, _: None, **kwds) -> "Color": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Color": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Color": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Color": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Color": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Color": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Color": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Color": + ... + + @overload + def title(self, _: str, **kwds) -> "Color": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Color": + ... + + @overload + def title(self, _: None, **kwds) -> "Color": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Color": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Color, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class ColorDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGradientstringnull): +class ColorDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGradientstringnull +): """ColorDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict Parameters ---------- @@ -1082,16 +7447,16 @@ class ColorDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGra Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -1111,7 +7476,7 @@ class ColorDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGra 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -1181,95 +7546,923 @@ class ColorDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGra **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "color" - def bandPosition(self, _: float, **kwds) -> 'ColorDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'ColorDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'ColorDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'ColorDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'ColorDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'ColorDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'ColorDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'ColorDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(ColorDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "ColorDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "ColorDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "ColorDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "ColorDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "ColorDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "ColorDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ColorDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class ColorValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull): +class ColorValue( + ValueChannelMixin, + core.ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull, +): """ColorValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "color" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ColorValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ColorValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ColorValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ColorValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'ColorValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'ColorValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'ColorValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ColorValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "ColorValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(ColorValue, self).__init__(value=value, condition=condition, **kwds) @@ -1277,14 +8470,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): """Column schema wrapper - Mapping(required=[shorthand]) + :class:`RowColumnEncodingFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -1292,7 +8485,7 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `aggregate `__ documentation. - align : :class:`LayoutAlign` + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'] The alignment to apply to row/column facet's subplot. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -1310,7 +8503,7 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -1331,12 +8524,12 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `bin `__ documentation. - center : boolean + center : bool Boolean flag indicating if facet's subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -1351,9 +8544,9 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - header : anyOf(:class:`Header`, None) + header : :class:`Header`, Dict, None An object defining properties of a facet's header. - sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None) + sort : :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortOrder`, Literal['ascending', 'descending'], None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -1386,7 +8579,7 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -1395,7 +8588,7 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -1415,7 +8608,7 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -1485,159 +8678,1244 @@ class Column(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "column" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Column': - ... - - def align(self, _: Literal["all", "each", "none"], **kwds) -> 'Column': - ... - - def bandPosition(self, _: float, **kwds) -> 'Column': - ... + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Column": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def align(self, _: Literal["all", "each", "none"], **kwds) -> "Column": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Column": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Column": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def bin(self, _: None, **kwds) -> "Column": + ... + + @overload + def center(self, _: bool, **kwds) -> "Column": + ... + + @overload + def field(self, _: str, **kwds) -> "Column": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def header( + self, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAnchor: Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + UndefinedType, + ] = Undefined, + labelAngle: Union[float, UndefinedType] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOrient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + orient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + UndefinedType, + ] = Undefined, + titleAngle: Union[float, UndefinedType] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def header(self, _: None, **kwds) -> "Column": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Column": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Column": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Column": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Column": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Column": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def sort(self, _: None, **kwds) -> "Column": + ... + + @overload + def spacing(self, _: float, **kwds) -> "Column": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Column": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Column": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Column": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Column": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Column": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Column": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Column": + ... + + @overload + def title(self, _: str, **kwds) -> "Column": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Column": + ... + + @overload + def title(self, _: None, **kwds) -> "Column": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Column": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], UndefinedType + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + header: Union[Union[None, Union[core.Header, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[core.EncodingSortField, dict], + ], + UndefinedType, + ] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Column, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + align=align, + bandPosition=bandPosition, + bin=bin, + center=center, + field=field, + header=header, + sort=sort, + spacing=spacing, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Column': - ... - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Column': - ... +@with_property_setters +class Description(FieldChannelMixin, core.StringFieldDefWithCondition): + """Description schema wrapper - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Column': - ... + :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]] - def center(self, _: bool, **kwds) -> 'Column': - ... + Parameters + ---------- - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Column': - ... + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] + Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, + ``"min"``, ``"max"``, ``"count"`` ). - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def header(self, format=Undefined, formatType=Undefined, labelAlign=Undefined, labelAnchor=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOrient=Undefined, labelPadding=Undefined, labels=Undefined, orient=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOrient=Undefined, titlePadding=Undefined, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def header(self, _: None, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Column': - ... - - def spacing(self, _: float, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Column': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Column': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Column': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, align=Undefined, - bandPosition=Undefined, bin=Undefined, center=Undefined, field=Undefined, - header=Undefined, sort=Undefined, spacing=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(Column, self).__init__(shorthand=shorthand, aggregate=aggregate, align=align, - bandPosition=bandPosition, bin=bin, center=center, field=field, - header=header, sort=sort, spacing=spacing, timeUnit=timeUnit, - title=title, type=type, **kwds) - - -@with_property_setters -class Description(FieldChannelMixin, core.StringFieldDefWithCondition): - """Description schema wrapper - - Mapping(required=[shorthand]) - - Parameters - ---------- - - shorthand : string - shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` - Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, - ``"min"``, ``"max"``, ``"count"`` ). - - **Default value:** ``undefined`` (None) + **Default value:** ``undefined`` (None) **See also:** `aggregate `__ documentation. @@ -1645,7 +9923,7 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -1666,14 +9944,14 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`)) + condition : :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`, Sequence[:class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -1688,7 +9966,7 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -1711,7 +9989,7 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -1722,7 +10000,7 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -1731,7 +10009,7 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -1751,7 +10029,7 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -1821,173 +10099,1452 @@ class Description(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "description" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Description': - ... - - def bandPosition(self, _: float, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringExprRef], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: str, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: dict, **kwds) -> 'Description': - ... - - def formatType(self, _: str, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Description': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Description': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Description': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, format=Undefined, formatType=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Description, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, format=format, formatType=formatType, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Description": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Description": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Description": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def bin(self, _: str, **kwds) -> "Description": + ... + + @overload + def bin(self, _: None, **kwds) -> "Description": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringExprRef], **kwds + ) -> "Description": + ... + + @overload + def field(self, _: str, **kwds) -> "Description": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def format(self, _: str, **kwds) -> "Description": + ... + + @overload + def format(self, _: dict, **kwds) -> "Description": + ... + + @overload + def formatType(self, _: str, **kwds) -> "Description": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Description": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Description": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Description": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Description": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Description": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Description": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Description": + ... + + @overload + def title(self, _: str, **kwds) -> "Description": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Description": + ... + + @overload + def title(self, _: None, **kwds) -> "Description": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Description": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Description, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class DescriptionValue(ValueChannelMixin, core.StringValueDefWithCondition): """DescriptionValue schema wrapper - Mapping(required=[]) + :class:`StringValueDefWithCondition`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "description" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'DescriptionValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'DescriptionValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'DescriptionValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'DescriptionValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'DescriptionValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'DescriptionValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'DescriptionValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "DescriptionValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "DescriptionValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "DescriptionValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "DescriptionValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "DescriptionValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "DescriptionValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "DescriptionValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(DescriptionValue, self).__init__(value=value, condition=condition, **kwds) @@ -1995,15 +11552,15 @@ def __init__(self, value, condition=Undefined, **kwds): class Detail(FieldChannelMixin, core.FieldDefWithoutScale): """Detail schema wrapper - Mapping(required=[shorthand]) + :class:`FieldDefWithoutScale`, Dict[required=[shorthand]] Definition object for a data field, its type and transformation of an encoding channel. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -2015,7 +11572,7 @@ class Detail(FieldChannelMixin, core.FieldDefWithoutScale): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -2036,7 +11593,7 @@ class Detail(FieldChannelMixin, core.FieldDefWithoutScale): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -2051,7 +11608,7 @@ class Detail(FieldChannelMixin, core.FieldDefWithoutScale): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -2060,7 +11617,7 @@ class Detail(FieldChannelMixin, core.FieldDefWithoutScale): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -2080,7 +11637,7 @@ class Detail(FieldChannelMixin, core.FieldDefWithoutScale): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -2150,111 +11707,647 @@ class Detail(FieldChannelMixin, core.FieldDefWithoutScale): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "detail" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Detail': - ... - - def bandPosition(self, _: float, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Detail': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Detail': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Detail': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Detail, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, timeUnit=timeUnit, - title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Detail": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Detail": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Detail": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Detail": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Detail": + ... + + @overload + def bin(self, _: str, **kwds) -> "Detail": + ... + + @overload + def bin(self, _: None, **kwds) -> "Detail": + ... + + @overload + def field(self, _: str, **kwds) -> "Detail": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Detail": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Detail": + ... + + @overload + def title(self, _: str, **kwds) -> "Detail": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Detail": + ... + + @overload + def title(self, _: None, **kwds) -> "Detail": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Detail": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Detail, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): """Facet schema wrapper - Mapping(required=[shorthand]) + :class:`FacetEncodingFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -2262,7 +12355,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): **See also:** `aggregate `__ documentation. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -2283,7 +12376,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -2304,7 +12397,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): **See also:** `bin `__ documentation. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -2316,7 +12409,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -2342,7 +12435,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -2357,9 +12450,9 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - header : anyOf(:class:`Header`, None) + header : :class:`Header`, Dict, None An object defining properties of a facet's header. - sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None) + sort : :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortOrder`, Literal['ascending', 'descending'], None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -2386,7 +12479,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): **Default value:** ``"ascending"`` **Note:** ``null`` is not supported for ``row`` and ``column``. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -2394,7 +12487,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -2403,7 +12496,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -2423,7 +12516,7 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -2493,176 +12586,1295 @@ class Facet(FieldChannelMixin, core.FacetEncodingFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "facet" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def align(self, _: Literal["all", "each", "none"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def align(self, column=Undefined, row=Undefined, **kwds) -> 'Facet': - ... - - def bandPosition(self, _: float, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Facet': - ... - - def bounds(self, _: Literal["full", "flush"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def center(self, _: bool, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def center(self, column=Undefined, row=Undefined, **kwds) -> 'Facet': - ... - - def columns(self, _: float, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def header(self, format=Undefined, formatType=Undefined, labelAlign=Undefined, labelAnchor=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOrient=Undefined, labelPadding=Undefined, labels=Undefined, orient=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOrient=Undefined, titlePadding=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def header(self, _: None, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def spacing(self, _: float, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def spacing(self, column=Undefined, row=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Facet': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Facet': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Facet': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, align=Undefined, - bandPosition=Undefined, bin=Undefined, bounds=Undefined, center=Undefined, - columns=Undefined, field=Undefined, header=Undefined, sort=Undefined, - spacing=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Facet, self).__init__(shorthand=shorthand, aggregate=aggregate, align=align, - bandPosition=bandPosition, bin=bin, bounds=bounds, center=center, - columns=columns, field=field, header=header, sort=sort, - spacing=spacing, timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def align(self, _: Literal["all", "each", "none"], **kwds) -> "Facet": + ... + + @overload + def align( + self, + column: Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], UndefinedType + ] = Undefined, + row: Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], UndefinedType + ] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Facet": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Facet": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def bin(self, _: None, **kwds) -> "Facet": + ... + + @overload + def bounds(self, _: Literal["full", "flush"], **kwds) -> "Facet": + ... + + @overload + def center(self, _: bool, **kwds) -> "Facet": + ... + + @overload + def center( + self, + column: Union[bool, UndefinedType] = Undefined, + row: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def columns(self, _: float, **kwds) -> "Facet": + ... + + @overload + def field(self, _: str, **kwds) -> "Facet": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def header( + self, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAnchor: Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + UndefinedType, + ] = Undefined, + labelAngle: Union[float, UndefinedType] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOrient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + orient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + UndefinedType, + ] = Undefined, + titleAngle: Union[float, UndefinedType] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def header(self, _: None, **kwds) -> "Facet": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Facet": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Facet": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Facet": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Facet": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Facet": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def sort(self, _: None, **kwds) -> "Facet": + ... + + @overload + def spacing(self, _: float, **kwds) -> "Facet": + ... + + @overload + def spacing( + self, + column: Union[float, UndefinedType] = Undefined, + row: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Facet": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Facet": + ... + + @overload + def title(self, _: str, **kwds) -> "Facet": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Facet": + ... + + @overload + def title(self, _: None, **kwds) -> "Facet": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Facet": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.RowColLayoutAlign, dict], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union[core.RowColboolean, dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + header: Union[Union[None, Union[core.Header, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[core.EncodingSortField, dict], + ], + UndefinedType, + ] = Undefined, + spacing: Union[ + Union[Union[core.RowColnumber, dict], float], UndefinedType + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Facet, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + align=align, + bandPosition=bandPosition, + bin=bin, + bounds=bounds, + center=center, + columns=columns, + field=field, + header=header, + sort=sort, + spacing=spacing, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull): +class Fill( + FieldChannelMixin, + core.FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull, +): """Fill schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, + Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -2674,7 +13886,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -2695,14 +13907,14 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -2717,7 +13929,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -2726,7 +13938,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -2739,7 +13951,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -2778,7 +13990,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -2787,7 +13999,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -2807,7 +14019,7 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -2877,170 +14089,2966 @@ class Fill(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefG **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "fill" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Fill': - ... - - def bandPosition(self, _: float, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Fill': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Fill': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Fill': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Fill, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, legend=legend, - scale=scale, sort=sort, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Fill": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Fill": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def bin(self, _: None, **kwds) -> "Fill": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "Fill": + ... + + @overload + def field(self, _: str, **kwds) -> "Fill": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def legend(self, _: None, **kwds) -> "Fill": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def scale(self, _: None, **kwds) -> "Fill": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Fill": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Fill": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Fill": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Fill": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Fill": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def sort(self, _: None, **kwds) -> "Fill": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Fill": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Fill": + ... + + @overload + def title(self, _: str, **kwds) -> "Fill": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Fill": + ... + + @overload + def title(self, _: None, **kwds) -> "Fill": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Fill": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Fill, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class FillDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGradientstringnull): +class FillDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGradientstringnull +): """FillDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict Parameters ---------- @@ -3049,16 +17057,16 @@ class FillDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGrad Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -3078,7 +17086,7 @@ class FillDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGrad 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -3148,110 +17156,940 @@ class FillDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGrad **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "fill" - def bandPosition(self, _: float, **kwds) -> 'FillDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'FillDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'FillDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'FillDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'FillDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'FillDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'FillDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'FillDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(FillDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "FillDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "FillDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "FillDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "FillDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "FillDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "FillDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FillDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class FillValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull): +class FillValue( + ValueChannelMixin, + core.ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull, +): """FillValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "fill" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'FillValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'FillValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'FillValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "FillValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(FillValue, self).__init__(value=value, condition=condition, **kwds) @with_property_setters -class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber): +class FillOpacity( + FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber +): """FillOpacity schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -3263,7 +18101,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -3284,14 +18122,14 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -3306,7 +18144,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -3315,7 +18153,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -3328,7 +18166,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -3367,7 +18205,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -3376,7 +18214,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -3396,7 +18234,7 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -3466,170 +18304,2936 @@ class FillOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "fillOpacity" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'FillOpacity': - ... - - def bandPosition(self, _: float, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'FillOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'FillOpacity': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'FillOpacity': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(FillOpacity, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, legend=legend, scale=scale, sort=sort, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "FillOpacity": + ... + + @overload + def bin(self, _: bool, **kwds) -> "FillOpacity": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def bin(self, _: None, **kwds) -> "FillOpacity": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "FillOpacity": + ... + + @overload + def field(self, _: str, **kwds) -> "FillOpacity": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def legend(self, _: None, **kwds) -> "FillOpacity": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def scale(self, _: None, **kwds) -> "FillOpacity": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "FillOpacity": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "FillOpacity": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "FillOpacity": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "FillOpacity": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "FillOpacity": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def sort(self, _: None, **kwds) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "FillOpacity": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "FillOpacity": + ... + + @overload + def title(self, _: str, **kwds) -> "FillOpacity": + ... + + @overload + def title(self, _: List[str], **kwds) -> "FillOpacity": + ... + + @overload + def title(self, _: None, **kwds) -> "FillOpacity": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "FillOpacity": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FillOpacity, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class FillOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber): +class FillOpacityDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber +): """FillOpacityDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -3638,16 +21242,16 @@ class FillOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatum Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -3667,7 +21271,7 @@ class FillOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatum 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -3737,95 +21341,862 @@ class FillOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatum **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "fillOpacity" - def bandPosition(self, _: float, **kwds) -> 'FillOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'FillOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'FillOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'FillOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'FillOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'FillOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'FillOpacityDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'FillOpacityDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(FillOpacityDatum, self).__init__(datum=datum, bandPosition=bandPosition, - condition=condition, title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "FillOpacityDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacityDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacityDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "FillOpacityDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "FillOpacityDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "FillOpacityDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "FillOpacityDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "FillOpacityDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FillOpacityDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class FillOpacityValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber): +class FillOpacityValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber +): """FillOpacityValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "fillOpacity" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'FillOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'FillOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'FillOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'FillOpacityValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillOpacityValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillOpacityValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillOpacityValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "FillOpacityValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacityValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "FillOpacityValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "FillOpacityValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(FillOpacityValue, self).__init__(value=value, condition=condition, **kwds) @@ -3833,14 +22204,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Href(FieldChannelMixin, core.StringFieldDefWithCondition): """Href schema wrapper - Mapping(required=[shorthand]) + :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -3852,7 +22223,7 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -3873,14 +22244,14 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`)) + condition : :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`, Sequence[:class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -3895,7 +22266,7 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -3918,7 +22289,7 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -3929,7 +22300,7 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -3938,7 +22309,7 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -3958,7 +22329,7 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -4028,189 +22399,1468 @@ class Href(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "href" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Href': - ... + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Href": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Href": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Href": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def bin(self, _: str, **kwds) -> "Href": + ... + + @overload + def bin(self, _: None, **kwds) -> "Href": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringExprRef], **kwds + ) -> "Href": + ... + + @overload + def field(self, _: str, **kwds) -> "Href": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def format(self, _: str, **kwds) -> "Href": + ... + + @overload + def format(self, _: dict, **kwds) -> "Href": + ... + + @overload + def formatType(self, _: str, **kwds) -> "Href": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Href": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Href": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Href": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Href": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Href": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Href": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Href": + ... + + @overload + def title(self, _: str, **kwds) -> "Href": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Href": + ... + + @overload + def title(self, _: None, **kwds) -> "Href": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Href": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Href, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Href': - ... - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Href': - ... +@with_property_setters +class HrefValue(ValueChannelMixin, core.StringValueDefWithCondition): + """HrefValue schema wrapper - def bandPosition(self, _: float, **kwds) -> 'Href': - ... + :class:`StringValueDefWithCondition`, Dict - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Href': - ... + Parameters + ---------- - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Href': - ... + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] + A field definition or one or more value definition(s) with a parameter predicate. + value : :class:`ExprRef`, Dict[required=[expr]], None, str + A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient + definition `__ for color, + values between ``0`` to ``1`` for opacity). + """ - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Href': - ... + _class_is_valid_at_instantiation = False + _encoding_name = "href" - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Href': - ... + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "HrefValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "HrefValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "HrefValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "HrefValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "HrefValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "HrefValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "HrefValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(HrefValue, self).__init__(value=value, condition=condition, **kwds) - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Href': - ... - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Href': - ... +@with_property_setters +class Key(FieldChannelMixin, core.FieldDefWithoutScale): + """Key schema wrapper - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringExprRef], **kwds) -> 'Href': - ... + :class:`FieldDefWithoutScale`, Dict[required=[shorthand]] + Definition object for a data field, its type and transformation of an encoding channel. - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Href': - ... + Parameters + ---------- - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: str, **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: dict, **kwds) -> 'Href': - ... - - def formatType(self, _: str, **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Href': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Href': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Href': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, format=Undefined, formatType=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Href, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, format=format, - formatType=formatType, timeUnit=timeUnit, title=title, type=type, - **kwds) - - -@with_property_setters -class HrefValue(ValueChannelMixin, core.StringValueDefWithCondition): - """HrefValue schema wrapper - - Mapping(required=[]) - - Parameters - ---------- - - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) - A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) - A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient - definition `__ for color, - values between ``0`` to ``1`` for opacity). - """ - _class_is_valid_at_instantiation = False - _encoding_name = "href" - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'HrefValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'HrefValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'HrefValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'HrefValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'HrefValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'HrefValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'HrefValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): - super(HrefValue, self).__init__(value=value, condition=condition, **kwds) - - -@with_property_setters -class Key(FieldChannelMixin, core.FieldDefWithoutScale): - """Key schema wrapper - - Mapping(required=[shorthand]) - Definition object for a data field, its type and transformation of an encoding channel. - - Parameters - ---------- - - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -4222,7 +23872,7 @@ class Key(FieldChannelMixin, core.FieldDefWithoutScale): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -4243,7 +23893,7 @@ class Key(FieldChannelMixin, core.FieldDefWithoutScale): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -4258,7 +23908,7 @@ class Key(FieldChannelMixin, core.FieldDefWithoutScale): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -4267,7 +23917,7 @@ class Key(FieldChannelMixin, core.FieldDefWithoutScale): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -4287,7 +23937,7 @@ class Key(FieldChannelMixin, core.FieldDefWithoutScale): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -4357,111 +24007,647 @@ class Key(FieldChannelMixin, core.FieldDefWithoutScale): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "key" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Key': - ... - - def bandPosition(self, _: float, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Key': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Key': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Key': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Key, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Key": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Key": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Key": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Key": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Key": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Key": + ... + + @overload + def bin(self, _: str, **kwds) -> "Key": + ... + + @overload + def bin(self, _: None, **kwds) -> "Key": + ... + + @overload + def field(self, _: str, **kwds) -> "Key": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Key": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Key": + ... + + @overload + def title(self, _: str, **kwds) -> "Key": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Key": + ... + + @overload + def title(self, _: None, **kwds) -> "Key": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Key": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Key, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class Latitude(FieldChannelMixin, core.LatLongFieldDef): """Latitude schema wrapper - Mapping(required=[shorthand]) + :class:`LatLongFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -4494,7 +24680,7 @@ class Latitude(FieldChannelMixin, core.LatLongFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -4509,7 +24695,7 @@ class Latitude(FieldChannelMixin, core.LatLongFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -4518,7 +24704,7 @@ class Latitude(FieldChannelMixin, core.LatLongFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -4538,7 +24724,7 @@ class Latitude(FieldChannelMixin, core.LatLongFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : string + type : str The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -4608,91 +24794,598 @@ class Latitude(FieldChannelMixin, core.LatLongFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "latitude" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Latitude': - ... - - def bandPosition(self, _: float, **kwds) -> 'Latitude': - ... - - def bin(self, _: None, **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Latitude': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Latitude': - ... - - def type(self, _: str, **kwds) -> 'Latitude': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Latitude, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Latitude": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Latitude": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Latitude": + ... + + @overload + def bin(self, _: None, **kwds) -> "Latitude": + ... + + @overload + def field(self, _: str, **kwds) -> "Latitude": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Latitude": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Latitude": + ... + + @overload + def title(self, _: str, **kwds) -> "Latitude": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Latitude": + ... + + @overload + def title(self, _: None, **kwds) -> "Latitude": + ... + + @overload + def type(self, _: str, **kwds) -> "Latitude": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(Latitude, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class LatitudeDatum(DatumChannelMixin, core.DatumDef): """LatitudeDatum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -4701,9 +25394,9 @@ class LatitudeDatum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -4723,7 +25416,7 @@ class LatitudeDatum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -4793,47 +25486,69 @@ class LatitudeDatum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "latitude" - def bandPosition(self, _: float, **kwds) -> 'LatitudeDatum': + @overload + def bandPosition(self, _: float, **kwds) -> "LatitudeDatum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'LatitudeDatum': + @overload + def title(self, _: str, **kwds) -> "LatitudeDatum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'LatitudeDatum': + @overload + def title(self, _: List[str], **kwds) -> "LatitudeDatum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'LatitudeDatum': + @overload + def title(self, _: None, **kwds) -> "LatitudeDatum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'LatitudeDatum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "LatitudeDatum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(LatitudeDatum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, - type=type, **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(LatitudeDatum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Latitude2(FieldChannelMixin, core.SecondaryFieldDef): """Latitude2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -4866,7 +25581,7 @@ class Latitude2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -4881,7 +25596,7 @@ class Latitude2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -4890,7 +25605,7 @@ class Latitude2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -4911,88 +25626,592 @@ class Latitude2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "latitude2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Latitude2': - ... - - def bandPosition(self, _: float, **kwds) -> 'Latitude2': - ... - - def bin(self, _: None, **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Latitude2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Latitude2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(Latitude2, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Latitude2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Latitude2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Latitude2": + ... + + @overload + def bin(self, _: None, **kwds) -> "Latitude2": + ... + + @overload + def field(self, _: str, **kwds) -> "Latitude2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Latitude2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Latitude2": + ... + + @overload + def title(self, _: str, **kwds) -> "Latitude2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Latitude2": + ... + + @overload + def title(self, _: None, **kwds) -> "Latitude2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(Latitude2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class Latitude2Datum(DatumChannelMixin, core.DatumDef): """Latitude2Datum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -5001,9 +26220,9 @@ class Latitude2Datum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5023,7 +26242,7 @@ class Latitude2Datum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5093,54 +26312,75 @@ class Latitude2Datum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "latitude2" - def bandPosition(self, _: float, **kwds) -> 'Latitude2Datum': + @overload + def bandPosition(self, _: float, **kwds) -> "Latitude2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Latitude2Datum': + @overload + def title(self, _: str, **kwds) -> "Latitude2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Latitude2Datum': + @overload + def title(self, _: List[str], **kwds) -> "Latitude2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Latitude2Datum': + @overload + def title(self, _: None, **kwds) -> "Latitude2Datum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'Latitude2Datum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "Latitude2Datum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(Latitude2Datum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, - type=type, **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Latitude2Datum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Latitude2Value(ValueChannelMixin, core.PositionValueDef): """Latitude2Value schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "latitude2" - - def __init__(self, value, **kwds): super(Latitude2Value, self).__init__(value=value, **kwds) @@ -5149,14 +26389,14 @@ def __init__(self, value, **kwds): class Longitude(FieldChannelMixin, core.LatLongFieldDef): """Longitude schema wrapper - Mapping(required=[shorthand]) + :class:`LatLongFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -5189,7 +26429,7 @@ class Longitude(FieldChannelMixin, core.LatLongFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -5204,7 +26444,7 @@ class Longitude(FieldChannelMixin, core.LatLongFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -5213,7 +26453,7 @@ class Longitude(FieldChannelMixin, core.LatLongFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5233,7 +26473,7 @@ class Longitude(FieldChannelMixin, core.LatLongFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : string + type : str The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5303,91 +26543,598 @@ class Longitude(FieldChannelMixin, core.LatLongFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "longitude" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Longitude': - ... - - def bandPosition(self, _: float, **kwds) -> 'Longitude': - ... - - def bin(self, _: None, **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Longitude': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Longitude': - ... - - def type(self, _: str, **kwds) -> 'Longitude': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Longitude, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Longitude": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Longitude": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Longitude": + ... + + @overload + def bin(self, _: None, **kwds) -> "Longitude": + ... + + @overload + def field(self, _: str, **kwds) -> "Longitude": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Longitude": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Longitude": + ... + + @overload + def title(self, _: str, **kwds) -> "Longitude": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Longitude": + ... + + @overload + def title(self, _: None, **kwds) -> "Longitude": + ... + + @overload + def type(self, _: str, **kwds) -> "Longitude": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(Longitude, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class LongitudeDatum(DatumChannelMixin, core.DatumDef): """LongitudeDatum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -5396,9 +27143,9 @@ class LongitudeDatum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5418,7 +27165,7 @@ class LongitudeDatum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5488,47 +27235,69 @@ class LongitudeDatum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "longitude" - def bandPosition(self, _: float, **kwds) -> 'LongitudeDatum': + @overload + def bandPosition(self, _: float, **kwds) -> "LongitudeDatum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'LongitudeDatum': + @overload + def title(self, _: str, **kwds) -> "LongitudeDatum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'LongitudeDatum': + @overload + def title(self, _: List[str], **kwds) -> "LongitudeDatum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'LongitudeDatum': + @overload + def title(self, _: None, **kwds) -> "LongitudeDatum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'LongitudeDatum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "LongitudeDatum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(LongitudeDatum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, - type=type, **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(LongitudeDatum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Longitude2(FieldChannelMixin, core.SecondaryFieldDef): """Longitude2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -5561,7 +27330,7 @@ class Longitude2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -5576,7 +27345,7 @@ class Longitude2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -5585,7 +27354,7 @@ class Longitude2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5606,88 +27375,592 @@ class Longitude2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "longitude2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Longitude2': - ... + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Longitude2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Longitude2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Longitude2": + ... + + @overload + def bin(self, _: None, **kwds) -> "Longitude2": + ... + + @overload + def field(self, _: str, **kwds) -> "Longitude2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Longitude2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Longitude2": + ... + + @overload + def title(self, _: str, **kwds) -> "Longitude2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Longitude2": + ... + + @overload + def title(self, _: None, **kwds) -> "Longitude2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(Longitude2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Longitude2': - ... - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Longitude2': - ... +@with_property_setters +class Longitude2Datum(DatumChannelMixin, core.DatumDef): + """Longitude2Datum schema wrapper - def bandPosition(self, _: float, **kwds) -> 'Longitude2': - ... - - def bin(self, _: None, **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Longitude2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Longitude2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(Longitude2, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, **kwds) - - -@with_property_setters -class Longitude2Datum(DatumChannelMixin, core.DatumDef): - """Longitude2Datum schema wrapper - - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -5696,9 +27969,9 @@ class Longitude2Datum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5718,7 +27991,7 @@ class Longitude2Datum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5788,70 +28061,93 @@ class Longitude2Datum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "longitude2" - def bandPosition(self, _: float, **kwds) -> 'Longitude2Datum': + @overload + def bandPosition(self, _: float, **kwds) -> "Longitude2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Longitude2Datum': + @overload + def title(self, _: str, **kwds) -> "Longitude2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Longitude2Datum': + @overload + def title(self, _: List[str], **kwds) -> "Longitude2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Longitude2Datum': + @overload + def title(self, _: None, **kwds) -> "Longitude2Datum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'Longitude2Datum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "Longitude2Datum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(Longitude2Datum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, - type=type, **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Longitude2Datum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Longitude2Value(ValueChannelMixin, core.PositionValueDef): """Longitude2Value schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "longitude2" - - def __init__(self, value, **kwds): super(Longitude2Value, self).__init__(value=value, **kwds) @with_property_setters -class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber): +class Opacity( + FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber +): """Opacity schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -5863,7 +28159,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -5884,14 +28180,14 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -5906,7 +28202,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -5915,7 +28211,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -5928,7 +28224,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -5967,7 +28263,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -5976,7 +28272,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5996,7 +28292,7 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -6066,170 +28362,2934 @@ class Opacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldD **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "opacity" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Opacity': - ... - - def bandPosition(self, _: float, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Opacity': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Opacity': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Opacity': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Opacity, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, legend=legend, scale=scale, sort=sort, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Opacity": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Opacity": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def bin(self, _: None, **kwds) -> "Opacity": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "Opacity": + ... + + @overload + def field(self, _: str, **kwds) -> "Opacity": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def legend(self, _: None, **kwds) -> "Opacity": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def scale(self, _: None, **kwds) -> "Opacity": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Opacity": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Opacity": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Opacity": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Opacity": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Opacity": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def sort(self, _: None, **kwds) -> "Opacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Opacity": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Opacity": + ... + + @overload + def title(self, _: str, **kwds) -> "Opacity": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Opacity": + ... + + @overload + def title(self, _: None, **kwds) -> "Opacity": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Opacity": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Opacity, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class OpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber): """OpacityDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -6238,16 +31298,16 @@ class OpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefn Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -6267,7 +31327,7 @@ class OpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefn 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -6337,95 +31397,862 @@ class OpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefn **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "opacity" - def bandPosition(self, _: float, **kwds) -> 'OpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'OpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'OpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'OpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'OpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'OpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'OpacityDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'OpacityDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(OpacityDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "OpacityDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "OpacityDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "OpacityDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "OpacityDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "OpacityDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "OpacityDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "OpacityDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "OpacityDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(OpacityDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class OpacityValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber): +class OpacityValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber +): """OpacityValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "opacity" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'OpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'OpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'OpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'OpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'OpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'OpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'OpacityValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "OpacityValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "OpacityValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "OpacityValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "OpacityValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "OpacityValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "OpacityValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "OpacityValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(OpacityValue, self).__init__(value=value, condition=condition, **kwds) @@ -6433,14 +32260,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Order(FieldChannelMixin, core.OrderFieldDef): """Order schema wrapper - Mapping(required=[shorthand]) + :class:`OrderFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -6452,7 +32279,7 @@ class Order(FieldChannelMixin, core.OrderFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -6473,7 +32300,7 @@ class Order(FieldChannelMixin, core.OrderFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -6488,9 +32315,9 @@ class Order(FieldChannelMixin, core.OrderFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - sort : :class:`SortOrder` + sort : :class:`SortOrder`, Literal['ascending', 'descending'] The sort order. One of ``"ascending"`` (default) or ``"descending"``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -6499,7 +32326,7 @@ class Order(FieldChannelMixin, core.OrderFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -6519,7 +32346,7 @@ class Order(FieldChannelMixin, core.OrderFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -6589,117 +32416,657 @@ class Order(FieldChannelMixin, core.OrderFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "order" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Order': - ... - - def bandPosition(self, _: float, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Order': - ... - - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Order': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Order': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Order': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, - **kwds): - super(Order, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, sort=sort, timeUnit=timeUnit, title=title, - type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Order": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Order": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Order": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Order": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Order": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Order": + ... + + @overload + def bin(self, _: str, **kwds) -> "Order": + ... + + @overload + def bin(self, _: None, **kwds) -> "Order": + ... + + @overload + def field(self, _: str, **kwds) -> "Order": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Order": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Order": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Order": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Order": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Order": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Order": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Order": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Order": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Order": + ... + + @overload + def title(self, _: str, **kwds) -> "Order": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Order": + ... + + @overload + def title(self, _: None, **kwds) -> "Order": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Order": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + sort: Union[ + Union[Literal["ascending", "descending"], core.SortOrder], UndefinedType + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Order, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class OrderValue(ValueChannelMixin, core.OrderValueDef): """OrderValue schema wrapper - Mapping(required=[value]) + :class:`OrderValueDef`, Dict[required=[value]] Parameters ---------- - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - condition : anyOf(:class:`ConditionalValueDefnumber`, List(:class:`ConditionalValueDefnumber`)) + condition : :class:`ConditionalParameterValueDefnumber`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumber`, Dict[required=[test, value]], :class:`ConditionalValueDefnumber`, Sequence[:class:`ConditionalParameterValueDefnumber`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumber`, Dict[required=[test, value]], :class:`ConditionalValueDefnumber`] One or more value definition(s) with `a parameter or a test predicate `__. @@ -6707,23 +33074,78 @@ class OrderValue(ValueChannelMixin, core.OrderValueDef): value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. """ + _class_is_valid_at_instantiation = False _encoding_name = "order" - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'OrderValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'OrderValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumber], **kwds) -> 'OrderValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "OrderValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "OrderValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumber], **kwds + ) -> "OrderValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumber, dict], + Union[core.ConditionalPredicateValueDefnumber, dict], + core.ConditionalValueDefnumber, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumber, dict], + Union[core.ConditionalPredicateValueDefnumber, dict], + core.ConditionalValueDefnumber, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(OrderValue, self).__init__(value=value, condition=condition, **kwds) @@ -6731,14 +33153,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Radius(FieldChannelMixin, core.PositionFieldDefBase): """Radius schema wrapper - Mapping(required=[shorthand]) + :class:`PositionFieldDefBase`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -6750,7 +33172,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -6771,7 +33193,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -6786,7 +33208,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -6799,7 +33221,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -6838,7 +33260,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `sort `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -6869,7 +33291,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `stack `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -6878,7 +33300,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -6898,7 +33320,7 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -6968,196 +33390,1438 @@ class Radius(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "radius" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Radius': - ... - - def bandPosition(self, _: float, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Radius': - ... + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Radius": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Radius": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def bin(self, _: str, **kwds) -> "Radius": + ... + + @overload + def bin(self, _: None, **kwds) -> "Radius": + ... + + @overload + def field(self, _: str, **kwds) -> "Radius": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def scale(self, _: None, **kwds) -> "Radius": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Radius": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Radius": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Radius": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Radius": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Radius": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def sort(self, _: None, **kwds) -> "Radius": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "Radius": + ... + + @overload + def stack(self, _: None, **kwds) -> "Radius": + ... + + @overload + def stack(self, _: bool, **kwds) -> "Radius": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Radius": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Radius": + ... + + @overload + def title(self, _: str, **kwds) -> "Radius": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Radius": + ... + + @overload + def title(self, _: None, **kwds) -> "Radius": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Radius": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Radius, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + scale=scale, + sort=sort, + stack=stack, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Radius': - ... - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Radius': - ... +@with_property_setters +class RadiusDatum(DatumChannelMixin, core.PositionDatumDefBase): + """RadiusDatum schema wrapper - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Radius': - ... + :class:`PositionDatumDefBase`, Dict - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Radius': - ... + Parameters + ---------- - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Radius': - ... + bandPosition : float + Relative position on a band of a stacked, binned, time unit, or band scale. For + example, the marks will be positioned at the beginning of the band if set to ``0``, + and at the middle of the band if set to ``0.5``. + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] + A constant value in data domain. + scale : :class:`Scale`, Dict, None + An object defining properties of the channel's scale, which is the function that + transforms values in the data domain (numbers, dates, strings, etc) to visual values + (pixels, colors, sizes) of the encoding channels. - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Radius': - ... + If ``null``, the scale will be `disabled and the data value will be directly encoded + `__. - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Radius': - ... + **Default value:** If undefined, default `scale properties + `__ are applied. - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Radius': - ... + **See also:** `scale `__ + documentation. + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool + Type of stacking offset if the field should be stacked. ``stack`` is only applicable + for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For + example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar + chart. - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Radius': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Radius': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Radius': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, scale=Undefined, sort=Undefined, stack=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(Radius, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, scale=scale, - sort=sort, stack=stack, timeUnit=timeUnit, title=title, type=type, - **kwds) - - -@with_property_setters -class RadiusDatum(DatumChannelMixin, core.PositionDatumDefBase): - """RadiusDatum schema wrapper - - Mapping(required=[]) - - Parameters - ---------- - - bandPosition : float - Relative position on a band of a stacked, binned, time unit, or band scale. For - example, the marks will be positioned at the beginning of the band if set to ``0``, - and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) - A constant value in data domain. - scale : anyOf(:class:`Scale`, None) - An object defining properties of the channel's scale, which is the function that - transforms values in the data domain (numbers, dates, strings, etc) to visual values - (pixels, colors, sizes) of the encoding channels. - - If ``null``, the scale will be `disabled and the data value will be directly encoded - `__. - - **Default value:** If undefined, default `scale properties - `__ are applied. - - **See also:** `scale `__ - documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) - Type of stacking offset if the field should be stacked. ``stack`` is only applicable - for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For - example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar - chart. - - ``stack`` can be one of the following values: + ``stack`` can be one of the following values: * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale @@ -7182,7 +34846,7 @@ class RadiusDatum(DatumChannelMixin, core.PositionDatumDefBase): **See also:** `stack `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -7202,7 +34866,7 @@ class RadiusDatum(DatumChannelMixin, core.PositionDatumDefBase): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -7272,75 +34936,651 @@ class RadiusDatum(DatumChannelMixin, core.PositionDatumDefBase): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "radius" - def bandPosition(self, _: float, **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'RadiusDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'RadiusDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'RadiusDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, scale=Undefined, stack=Undefined, title=Undefined, - type=Undefined, **kwds): - super(RadiusDatum, self).__init__(datum=datum, bandPosition=bandPosition, scale=scale, - stack=stack, title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "RadiusDatum": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "RadiusDatum": + ... + + @overload + def scale(self, _: None, **kwds) -> "RadiusDatum": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "RadiusDatum": + ... + + @overload + def stack(self, _: None, **kwds) -> "RadiusDatum": + ... + + @overload + def stack(self, _: bool, **kwds) -> "RadiusDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "RadiusDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "RadiusDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "RadiusDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "RadiusDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(RadiusDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + scale=scale, + stack=stack, + title=title, + type=type, + **kwds, + ) @with_property_setters class RadiusValue(ValueChannelMixin, core.PositionValueDef): """RadiusValue schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "radius" - - def __init__(self, value, **kwds): super(RadiusValue, self).__init__(value=value, **kwds) @@ -7349,16 +35589,16 @@ def __init__(self, value, **kwds): class Radius2(FieldChannelMixin, core.SecondaryFieldDef): """Radius2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -7391,7 +35631,7 @@ class Radius2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -7406,7 +35646,7 @@ class Radius2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -7415,7 +35655,7 @@ class Radius2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -7436,88 +35676,592 @@ class Radius2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "radius2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Radius2': - ... - - def bandPosition(self, _: float, **kwds) -> 'Radius2': - ... - - def bin(self, _: None, **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Radius2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Radius2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(Radius2, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Radius2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Radius2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Radius2": + ... + + @overload + def bin(self, _: None, **kwds) -> "Radius2": + ... + + @overload + def field(self, _: str, **kwds) -> "Radius2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Radius2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Radius2": + ... + + @overload + def title(self, _: str, **kwds) -> "Radius2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Radius2": + ... + + @overload + def title(self, _: None, **kwds) -> "Radius2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(Radius2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class Radius2Datum(DatumChannelMixin, core.DatumDef): """Radius2Datum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -7526,9 +36270,9 @@ class Radius2Datum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -7548,7 +36292,7 @@ class Radius2Datum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -7618,54 +36362,75 @@ class Radius2Datum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "radius2" - def bandPosition(self, _: float, **kwds) -> 'Radius2Datum': + @overload + def bandPosition(self, _: float, **kwds) -> "Radius2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Radius2Datum': + @overload + def title(self, _: str, **kwds) -> "Radius2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Radius2Datum': + @overload + def title(self, _: List[str], **kwds) -> "Radius2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Radius2Datum': + @overload + def title(self, _: None, **kwds) -> "Radius2Datum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'Radius2Datum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "Radius2Datum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(Radius2Datum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, - type=type, **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Radius2Datum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Radius2Value(ValueChannelMixin, core.PositionValueDef): """Radius2Value schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "radius2" - - def __init__(self, value, **kwds): super(Radius2Value, self).__init__(value=value, **kwds) @@ -7674,14 +36439,14 @@ def __init__(self, value, **kwds): class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): """Row schema wrapper - Mapping(required=[shorthand]) + :class:`RowColumnEncodingFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -7689,7 +36454,7 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `aggregate `__ documentation. - align : :class:`LayoutAlign` + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'] The alignment to apply to row/column facet's subplot. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -7707,7 +36472,7 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -7728,12 +36493,12 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `bin `__ documentation. - center : boolean + center : bool Boolean flag indicating if facet's subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -7748,9 +36513,9 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - header : anyOf(:class:`Header`, None) + header : :class:`Header`, Dict, None An object defining properties of a facet's header. - sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None) + sort : :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortOrder`, Literal['ascending', 'descending'], None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -7783,7 +36548,7 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -7792,7 +36557,7 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -7812,7 +36577,7 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -7882,155 +36647,1244 @@ class Row(FieldChannelMixin, core.RowColumnEncodingFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "row" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Row': - ... - - def align(self, _: Literal["all", "each", "none"], **kwds) -> 'Row': - ... - - def bandPosition(self, _: float, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Row': - ... - - def center(self, _: bool, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def header(self, format=Undefined, formatType=Undefined, labelAlign=Undefined, labelAnchor=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOrient=Undefined, labelPadding=Undefined, labels=Undefined, orient=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOrient=Undefined, titlePadding=Undefined, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def header(self, _: None, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Row': - ... - - def spacing(self, _: float, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Row': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Row': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Row': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, align=Undefined, - bandPosition=Undefined, bin=Undefined, center=Undefined, field=Undefined, - header=Undefined, sort=Undefined, spacing=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(Row, self).__init__(shorthand=shorthand, aggregate=aggregate, align=align, - bandPosition=bandPosition, bin=bin, center=center, field=field, - header=header, sort=sort, spacing=spacing, timeUnit=timeUnit, - title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Row": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def align(self, _: Literal["all", "each", "none"], **kwds) -> "Row": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Row": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Row": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def bin(self, _: None, **kwds) -> "Row": + ... + + @overload + def center(self, _: bool, **kwds) -> "Row": + ... + + @overload + def field(self, _: str, **kwds) -> "Row": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def header( + self, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAnchor: Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + UndefinedType, + ] = Undefined, + labelAngle: Union[float, UndefinedType] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOrient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + orient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + UndefinedType, + ] = Undefined, + titleAngle: Union[float, UndefinedType] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def header(self, _: None, **kwds) -> "Row": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Row": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Row": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Row": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Row": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Row": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def sort(self, _: None, **kwds) -> "Row": + ... + + @overload + def spacing(self, _: float, **kwds) -> "Row": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Row": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Row": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Row": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Row": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Row": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Row": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Row": + ... + + @overload + def title(self, _: str, **kwds) -> "Row": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Row": + ... + + @overload + def title(self, _: None, **kwds) -> "Row": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Row": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], UndefinedType + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + header: Union[Union[None, Union[core.Header, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[core.EncodingSortField, dict], + ], + UndefinedType, + ] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Row, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + align=align, + bandPosition=bandPosition, + bin=bin, + center=center, + field=field, + header=header, + sort=sort, + spacing=spacing, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull): +class Shape( + FieldChannelMixin, + core.FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull, +): """Shape schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, + Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -8042,7 +37896,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -8063,14 +37917,14 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -8085,7 +37939,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -8094,7 +37948,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -8107,7 +37961,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -8146,7 +38000,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -8155,7 +38009,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -8175,7 +38029,7 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`TypeForShape` + type : :class:`TypeForShape`, Literal['nominal', 'ordinal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -8245,212 +38099,2973 @@ class Shape(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDef **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "shape" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Shape': - ... + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Shape": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Shape": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def bin(self, _: None, **kwds) -> "Shape": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "Shape": + ... + + @overload + def field(self, _: str, **kwds) -> "Shape": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def legend(self, _: None, **kwds) -> "Shape": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def scale(self, _: None, **kwds) -> "Shape": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Shape": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Shape": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Shape": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Shape": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Shape": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def sort(self, _: None, **kwds) -> "Shape": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Shape": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Shape": + ... + + @overload + def title(self, _: str, **kwds) -> "Shape": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Shape": + ... + + @overload + def title(self, _: None, **kwds) -> "Shape": + ... + + @overload + def type(self, _: Literal["nominal", "ordinal", "geojson"], **kwds) -> "Shape": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[Literal["nominal", "ordinal", "geojson"], core.TypeForShape], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Shape, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) - def bandPosition(self, _: float, **kwds) -> 'Shape': - ... - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Shape': - ... +@with_property_setters +class ShapeDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefstringnull +): + """ShapeDatum schema wrapper - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Shape': - ... + :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, Dict - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Shape': - ... + Parameters + ---------- - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Shape': - ... + bandPosition : float + Relative position on a band of a stacked, binned, time unit, or band scale. For + example, the marks will be positioned at the beginning of the band if set to ``0``, + and at the middle of the band if set to ``0.5``. + condition : :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] + One or more value definition(s) with `a parameter or a test predicate + `__. - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Shape': - ... + **Note:** A field definition's ``condition`` property can only contain `conditional + value definitions `__ + since Vega-Lite only allows at most one encoded field per encoding channel. + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] + A constant value in data domain. + title : :class:`Text`, Sequence[str], str, None + A title for the field. If ``null``, the title will be removed. - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'Shape': - ... + **Default value:** derived from the field's name and transformation function ( + ``aggregate``, ``bin`` and ``timeUnit`` ). If the field has an aggregate function, + the function is displayed as part of the title (e.g., ``"Sum of Profit"`` ). If the + field is binned or has a time unit applied, the applied function is shown in + parentheses (e.g., ``"Profit (binned)"``, ``"Transaction Date (year-month)"`` ). + Otherwise, the title is simply the field name. - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Shape': - ... + **Notes** : - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Shape': - ... + 1) You can customize the default field title format by providing the `fieldTitle + `__ property in + the `config `__ or `fieldTitle + function via the compile function's options + `__. - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Shape': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Shape': - ... - - def type(self, _: Literal["nominal", "ordinal", "geojson"], **kwds) -> 'Shape': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Shape, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, legend=legend, - scale=scale, sort=sort, timeUnit=timeUnit, title=title, type=type, - **kwds) - - -@with_property_setters -class ShapeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefstringnull): - """ShapeDatum schema wrapper - - Mapping(required=[]) - - Parameters - ---------- - - bandPosition : float - Relative position on a band of a stacked, binned, time unit, or band scale. For - example, the marks will be positioned at the beginning of the band if set to ``0``, - and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) - One or more value definition(s) with `a parameter or a test predicate - `__. - - **Note:** A field definition's ``condition`` property can only contain `conditional - value definitions `__ - since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) - A constant value in data domain. - title : anyOf(:class:`Text`, None) - A title for the field. If ``null``, the title will be removed. - - **Default value:** derived from the field's name and transformation function ( - ``aggregate``, ``bin`` and ``timeUnit`` ). If the field has an aggregate function, - the function is displayed as part of the title (e.g., ``"Sum of Profit"`` ). If the - field is binned or has a time unit applied, the applied function is shown in - parentheses (e.g., ``"Profit (binned)"``, ``"Transaction Date (year-month)"`` ). - Otherwise, the title is simply the field name. - - **Notes** : - - 1) You can customize the default field title format by providing the `fieldTitle - `__ property in - the `config `__ or `fieldTitle - function via the compile function's options - `__. - - 2) If both field definition's ``title`` and axis, header, or legend ``title`` are - defined, axis/header/legend title will be used. - type : :class:`Type` - The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or - ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also - be a ``"geojson"`` type for encoding `'geoshape' - `__. + 2) If both field definition's ``title`` and axis, header, or legend ``title`` are + defined, axis/header/legend title will be used. + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] + The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or + ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also + be a ``"geojson"`` type for encoding `'geoshape' + `__. Vega-Lite automatically infers data types in many cases as discussed below. However, type is required for a field if: (1) the field is not nominal and the field encoding @@ -8516,95 +41131,863 @@ class ShapeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefstr **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "shape" - def bandPosition(self, _: float, **kwds) -> 'ShapeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'ShapeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'ShapeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'ShapeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'ShapeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'ShapeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'ShapeDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'ShapeDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(ShapeDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "ShapeDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "ShapeDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "ShapeDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "ShapeDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "ShapeDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "ShapeDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "ShapeDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "ShapeDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ShapeDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class ShapeValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull): +class ShapeValue( + ValueChannelMixin, + core.ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull, +): """ShapeValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDefTypeForShape`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDefTypeForShape`, :class:`ConditionalParameterMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "shape" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ShapeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ShapeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ShapeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'ShapeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'ShapeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'ShapeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'ShapeValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[Literal["nominal", "ordinal", "geojson"], core.TypeForShape], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ShapeValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ShapeValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[Literal["nominal", "ordinal", "geojson"], core.TypeForShape], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ShapeValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "ShapeValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "ShapeValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "ShapeValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "ShapeValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterMarkPropFieldOrDatumDefTypeForShape, + dict, + ], + Union[ + core.ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape, + dict, + ], + core.ConditionalMarkPropFieldOrDatumDefTypeForShape, + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(ShapeValue, self).__init__(value=value, condition=condition, **kwds) @@ -8612,14 +41995,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber): """Size schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -8631,7 +42014,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -8652,14 +42035,14 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -8674,7 +42057,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -8683,7 +42066,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -8696,7 +42079,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -8735,7 +42118,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -8744,7 +42127,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -8764,7 +42147,7 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -8834,170 +42217,2934 @@ class Size(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefn **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "size" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Size': - ... - - def bandPosition(self, _: float, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Size': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Size': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Size': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Size, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, legend=legend, - scale=scale, sort=sort, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Size": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Size": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Size": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def bin(self, _: None, **kwds) -> "Size": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "Size": + ... + + @overload + def field(self, _: str, **kwds) -> "Size": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def legend(self, _: None, **kwds) -> "Size": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def scale(self, _: None, **kwds) -> "Size": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Size": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Size": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Size": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Size": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Size": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Size": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Size": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def sort(self, _: None, **kwds) -> "Size": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Size": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Size": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Size": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Size": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Size": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Size": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Size": + ... + + @overload + def title(self, _: str, **kwds) -> "Size": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Size": + ... + + @overload + def title(self, _: None, **kwds) -> "Size": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Size": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Size, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class SizeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber): """SizeDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -9006,16 +45153,16 @@ class SizeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumb Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -9035,7 +45182,7 @@ class SizeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumb 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -9105,110 +45252,881 @@ class SizeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumb **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "size" - def bandPosition(self, _: float, **kwds) -> 'SizeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'SizeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'SizeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'SizeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'SizeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'SizeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'SizeDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'SizeDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(SizeDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "SizeDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "SizeDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "SizeDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "SizeDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "SizeDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "SizeDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "SizeDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "SizeDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(SizeDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class SizeValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber): +class SizeValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber +): """SizeValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "size" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'SizeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'SizeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'SizeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'SizeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'SizeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'SizeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'SizeValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "SizeValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "SizeValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "SizeValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "SizeValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "SizeValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "SizeValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "SizeValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(SizeValue, self).__init__(value=value, condition=condition, **kwds) @with_property_setters -class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull): +class Stroke( + FieldChannelMixin, + core.FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull, +): """Stroke schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, + Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -9220,7 +46138,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -9241,14 +46159,14 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -9263,7 +46181,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -9272,7 +46190,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -9285,7 +46203,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -9324,7 +46242,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -9333,7 +46251,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -9353,7 +46271,7 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -9423,188 +46341,2984 @@ class Stroke(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDe **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "stroke" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Stroke': - ... + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Stroke": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Stroke": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def bin(self, _: None, **kwds) -> "Stroke": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "Stroke": + ... + + @overload + def field(self, _: str, **kwds) -> "Stroke": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def legend(self, _: None, **kwds) -> "Stroke": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def scale(self, _: None, **kwds) -> "Stroke": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Stroke": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Stroke": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Stroke": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Stroke": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Stroke": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def sort(self, _: None, **kwds) -> "Stroke": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Stroke": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Stroke": + ... + + @overload + def title(self, _: str, **kwds) -> "Stroke": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Stroke": + ... + + @overload + def title(self, _: None, **kwds) -> "Stroke": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Stroke": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Stroke, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) - def bandPosition(self, _: float, **kwds) -> 'Stroke': - ... - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Stroke': - ... +@with_property_setters +class StrokeDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGradientstringnull +): + """StrokeDatum schema wrapper - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Stroke': - ... + :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Stroke': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Stroke': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Stroke': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Stroke, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, legend=legend, scale=scale, sort=sort, - timeUnit=timeUnit, title=title, type=type, **kwds) - - -@with_property_setters -class StrokeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGradientstringnull): - """StrokeDatum schema wrapper - - Mapping(required=[]) - - Parameters - ---------- + Parameters + ---------- bandPosition : float Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -9624,7 +49338,7 @@ class StrokeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGr 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -9694,110 +49408,940 @@ class StrokeDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefGr **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "stroke" - def bandPosition(self, _: float, **kwds) -> 'StrokeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'StrokeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'StrokeDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(StrokeDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "StrokeDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "StrokeDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull): +class StrokeValue( + ValueChannelMixin, + core.ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull, +): """StrokeValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "stroke" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds) -> 'StrokeValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union[ + Union[core.LinearGradient, dict], + Union[core.RadialGradient, dict], + core.Gradient, + ], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefGradientstringnullExprRef], **kwds + ) -> "StrokeValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, + dict, + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, + dict, + ], + core.ConditionalValueDefGradientstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[ + core.ConditionalParameterValueDefGradientstringnullExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefGradientstringnullExprRef, dict + ], + core.ConditionalValueDefGradientstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(StrokeValue, self).__init__(value=value, condition=condition, **kwds) @with_property_setters -class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray): +class StrokeDash( + FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray +): """StrokeDash schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -9809,7 +50353,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -9830,14 +50374,14 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -9852,7 +50396,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -9861,7 +50405,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -9874,7 +50418,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -9913,7 +50457,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -9922,7 +50466,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -9942,7 +50486,7 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10012,170 +50556,2942 @@ class StrokeDash(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFie **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeDash" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'StrokeDash': - ... - - def bandPosition(self, _: float, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberArrayExprRef], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeDash': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeDash': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'StrokeDash': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(StrokeDash, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, legend=legend, scale=scale, sort=sort, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeDash": + ... + + @overload + def bin(self, _: bool, **kwds) -> "StrokeDash": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def bin(self, _: None, **kwds) -> "StrokeDash": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberArrayExprRef], **kwds + ) -> "StrokeDash": + ... + + @overload + def field(self, _: str, **kwds) -> "StrokeDash": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def legend(self, _: None, **kwds) -> "StrokeDash": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def scale(self, _: None, **kwds) -> "StrokeDash": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "StrokeDash": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "StrokeDash": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "StrokeDash": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "StrokeDash": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "StrokeDash": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def sort(self, _: None, **kwds) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "StrokeDash": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "StrokeDash": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeDash": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeDash": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeDash": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "StrokeDash": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefnumberArrayExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefnumberArrayExprRef, dict + ], + core.ConditionalValueDefnumberArrayExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberArrayExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberArrayExprRef, dict], + core.ConditionalValueDefnumberArrayExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeDash, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeDashDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumberArray): +class StrokeDashDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumberArray +): """StrokeDashDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, Dict Parameters ---------- @@ -10184,16 +53500,16 @@ class StrokeDashDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumD Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10213,7 +53529,7 @@ class StrokeDashDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumD 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10283,110 +53599,891 @@ class StrokeDashDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumD **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeDash" - def bandPosition(self, _: float, **kwds) -> 'StrokeDashDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeDashDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeDashDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberArrayExprRef], **kwds) -> 'StrokeDashDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeDashDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeDashDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeDashDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'StrokeDashDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(StrokeDashDatum, self).__init__(datum=datum, bandPosition=bandPosition, - condition=condition, title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeDashDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberArrayExprRef], **kwds + ) -> "StrokeDashDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeDashDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeDashDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeDashDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "StrokeDashDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefnumberArrayExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefnumberArrayExprRef, dict + ], + core.ConditionalValueDefnumberArrayExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberArrayExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberArrayExprRef, dict], + core.ConditionalValueDefnumberArrayExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeDashDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeDashValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray): +class StrokeDashValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray +): """StrokeDashValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(List(float), :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeDash" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeDashValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeDashValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeDashValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeDashValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeDashValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeDashValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberArrayExprRef], **kwds) -> 'StrokeDashValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeDashValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberArrayExprRef], **kwds + ) -> "StrokeDashValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[ + core.ConditionalParameterValueDefnumberArrayExprRef, dict + ], + Union[ + core.ConditionalPredicateValueDefnumberArrayExprRef, dict + ], + core.ConditionalValueDefnumberArrayExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberArrayExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberArrayExprRef, dict], + core.ConditionalValueDefnumberArrayExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(StrokeDashValue, self).__init__(value=value, condition=condition, **kwds) @with_property_setters -class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber): +class StrokeOpacity( + FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber +): """StrokeOpacity schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -10398,7 +54495,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -10419,14 +54516,14 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -10441,7 +54538,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -10450,7 +54547,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -10463,7 +54560,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -10502,7 +54599,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -10511,7 +54608,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10531,7 +54628,7 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10562,209 +54659,2975 @@ class StrokeOpacity(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkProp (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is ``order``. - 2) For a constant value in data domain ( ``datum`` ): - - - * ``"quantitative"`` if the datum is a number - * ``"nominal"`` if the datum is a string - * ``"temporal"`` if the datum is `a date time object - `__ - - **Note:** - - - * Data ``type`` describes the semantics of the data rather than the primitive data - types (number, string, etc.). The same primitive data type can have different - types of measurement. For example, numeric data can represent quantitative, - ordinal, or nominal data. - * Data values for a temporal field can be either a date-time string (e.g., - ``"2015-03-07 12:32:17"``, ``"17:01"``, ``"2015-03-16"``. ``"2015"`` ) or a - timestamp number (e.g., ``1552199579097`` ). - * When using with `bin `__, the - ``type`` property can be either ``"quantitative"`` (for using a linear bin scale) - or `"ordinal" (for using an ordinal bin scale) - `__. - * When using with `timeUnit - `__, the ``type`` property - can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal" - (for using an ordinal scale) - `__. - * When using with `aggregate - `__, the ``type`` property - refers to the post-aggregation data type. For example, we can calculate count - ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", - "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. - * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have - ``type`` as they must have exactly the same type as their primary channels (e.g., - ``x``, ``y`` ). - - **See also:** `type `__ - documentation. - """ - _class_is_valid_at_instantiation = False - _encoding_name = "strokeOpacity" - - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'StrokeOpacity': - ... - - def bandPosition(self, _: float, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'StrokeOpacity': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'StrokeOpacity': - ... + 2) For a constant value in data domain ( ``datum`` ): - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'StrokeOpacity': - ... - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'StrokeOpacity': - ... + * ``"quantitative"`` if the datum is a number + * ``"nominal"`` if the datum is a string + * ``"temporal"`` if the datum is `a date time object + `__ - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeOpacity': - ... + **Note:** - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeOpacity': - ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeOpacity': - ... + * Data ``type`` describes the semantics of the data rather than the primitive data + types (number, string, etc.). The same primitive data type can have different + types of measurement. For example, numeric data can represent quantitative, + ordinal, or nominal data. + * Data values for a temporal field can be either a date-time string (e.g., + ``"2015-03-07 12:32:17"``, ``"17:01"``, ``"2015-03-16"``. ``"2015"`` ) or a + timestamp number (e.g., ``1552199579097`` ). + * When using with `bin `__, the + ``type`` property can be either ``"quantitative"`` (for using a linear bin scale) + or `"ordinal" (for using an ordinal bin scale) + `__. + * When using with `timeUnit + `__, the ``type`` property + can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal" + (for using an ordinal scale) + `__. + * When using with `aggregate + `__, the ``type`` property + refers to the post-aggregation data type. For example, we can calculate count + ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", + "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. + * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have + ``type`` as they must have exactly the same type as their primary channels (e.g., + ``x``, ``y`` ). - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'StrokeOpacity': - ... + **See also:** `type `__ + documentation. + """ + _class_is_valid_at_instantiation = False + _encoding_name = "strokeOpacity" - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(StrokeOpacity, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, legend=legend, scale=scale, sort=sort, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeOpacity": + ... + + @overload + def bin(self, _: bool, **kwds) -> "StrokeOpacity": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def bin(self, _: None, **kwds) -> "StrokeOpacity": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "StrokeOpacity": + ... + + @overload + def field(self, _: str, **kwds) -> "StrokeOpacity": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def legend(self, _: None, **kwds) -> "StrokeOpacity": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def scale(self, _: None, **kwds) -> "StrokeOpacity": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "StrokeOpacity": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "StrokeOpacity": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "StrokeOpacity": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "StrokeOpacity": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "StrokeOpacity": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def sort(self, _: None, **kwds) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "StrokeOpacity": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeOpacity": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeOpacity": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeOpacity": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "StrokeOpacity": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeOpacity, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber): +class StrokeOpacityDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber +): """StrokeOpacityDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -10773,16 +57636,16 @@ class StrokeOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDat Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10802,7 +57665,7 @@ class StrokeOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDat 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10872,110 +57735,881 @@ class StrokeOpacityDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDat **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeOpacity" - def bandPosition(self, _: float, **kwds) -> 'StrokeOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'StrokeOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeOpacityDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeOpacityDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'StrokeOpacityDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(StrokeOpacityDatum, self).__init__(datum=datum, bandPosition=bandPosition, - condition=condition, title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeOpacityDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacityDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacityDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "StrokeOpacityDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeOpacityDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeOpacityDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeOpacityDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "StrokeOpacityDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeOpacityDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeOpacityValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber): +class StrokeOpacityValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber +): """StrokeOpacityValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeOpacity" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeOpacityValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'StrokeOpacityValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): - super(StrokeOpacityValue, self).__init__(value=value, condition=condition, **kwds) + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeOpacityValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeOpacityValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeOpacityValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeOpacityValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacityValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeOpacityValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "StrokeOpacityValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeOpacityValue, self).__init__( + value=value, condition=condition, **kwds + ) @with_property_setters -class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber): +class StrokeWidth( + FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFieldDefnumber +): """StrokeWidth schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -10987,7 +58621,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -11008,14 +58642,14 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -11030,7 +58664,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -11039,7 +58673,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -11052,7 +58686,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -11091,7 +58725,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -11100,7 +58734,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -11120,7 +58754,7 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -11190,170 +58824,2936 @@ class StrokeWidth(FieldChannelMixin, core.FieldOrDatumDefWithConditionMarkPropFi **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeWidth" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'StrokeWidth': - ... - - def bandPosition(self, _: float, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, cornerRadius=Undefined, description=Undefined, direction=Undefined, fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, gradientOpacity=Undefined, gradientStrokeColor=Undefined, gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def legend(self, _: None, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeWidth': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeWidth': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'StrokeWidth': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, legend=Undefined, scale=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(StrokeWidth, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, legend=legend, scale=scale, sort=sort, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeWidth": + ... + + @overload + def bin(self, _: bool, **kwds) -> "StrokeWidth": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def bin(self, _: None, **kwds) -> "StrokeWidth": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "StrokeWidth": + ... + + @overload + def field(self, _: str, **kwds) -> "StrokeWidth": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def legend( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union[Literal["horizontal", "vertical"], core.Orientation], UndefinedType + ] = Undefined, + fillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union[Literal["all", "each", "none"], core.LayoutAlign], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + labelFontWeight: 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, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + core.LegendOrient, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + symbolDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.SymbolShape, str] + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.TimeIntervalStep, dict], + core.TickCount, + float, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union[Literal["left", "right", "top", "bottom"], core.Orient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def legend(self, _: None, **kwds) -> "StrokeWidth": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def scale(self, _: None, **kwds) -> "StrokeWidth": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "StrokeWidth": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "StrokeWidth": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "StrokeWidth": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "StrokeWidth": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "StrokeWidth": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def sort(self, _: None, **kwds) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "StrokeWidth": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeWidth": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeWidth": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeWidth": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "StrokeWidth": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeWidth, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeWidthDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber): +class StrokeWidthDatum( + DatumChannelMixin, core.FieldOrDatumDefWithConditionDatumDefnumber +): """StrokeWidthDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -11362,16 +61762,16 @@ class StrokeWidthDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatum Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -11391,7 +61791,7 @@ class StrokeWidthDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatum 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -11461,95 +61861,862 @@ class StrokeWidthDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionDatum **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeWidth" - def bandPosition(self, _: float, **kwds) -> 'StrokeWidthDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeWidthDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeWidthDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'StrokeWidthDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'StrokeWidthDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'StrokeWidthDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'StrokeWidthDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'StrokeWidthDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, title=Undefined, - type=Undefined, **kwds): - super(StrokeWidthDatum, self).__init__(datum=datum, bandPosition=bandPosition, - condition=condition, title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "StrokeWidthDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidthDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidthDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "StrokeWidthDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "StrokeWidthDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "StrokeWidthDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "StrokeWidthDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "StrokeWidthDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StrokeWidthDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + title=title, + type=type, + **kwds, + ) @with_property_setters -class StrokeWidthValue(ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber): +class StrokeWidthValue( + ValueChannelMixin, core.ValueDefWithConditionMarkPropFieldOrDatumDefnumber +): """StrokeWidthValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "strokeWidth" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeWidthValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeWidthValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeWidthValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'StrokeWidthValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'StrokeWidthValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'StrokeWidthValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefnumberExprRef], **kwds) -> 'StrokeWidthValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeWidthValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeWidthValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeWidthValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "StrokeWidthValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidthValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + **kwds, + ) -> "StrokeWidthValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefnumberExprRef], **kwds + ) -> "StrokeWidthValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefnumberExprRef, dict], + Union[core.ConditionalPredicateValueDefnumberExprRef, dict], + core.ConditionalValueDefnumberExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(StrokeWidthValue, self).__init__(value=value, condition=condition, **kwds) @@ -11557,14 +62724,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefText): """Text schema wrapper - Mapping(required=[shorthand]) + :class:`FieldOrDatumDefWithConditionStringFieldDefText`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -11576,7 +62743,7 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -11597,14 +62764,14 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`)) + condition : :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`, Sequence[:class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -11619,7 +62786,7 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -11642,7 +62809,7 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -11653,7 +62820,7 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -11662,7 +62829,7 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -11682,7 +62849,7 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -11741,140 +62908,741 @@ class Text(FieldChannelMixin, core.FieldOrDatumDefWithConditionStringFieldDefTex (for using an ordinal scale) `__. * When using with `aggregate - `__, the ``type`` property - refers to the post-aggregation data type. For example, we can calculate count - ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", - "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. - * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have - ``type`` as they must have exactly the same type as their primary channels (e.g., - ``x``, ``y`` ). - - **See also:** `type `__ - documentation. - """ - _class_is_valid_at_instantiation = False - _encoding_name = "text" - - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Text': - ... - - def bandPosition(self, _: float, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefTextExprRef], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: str, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: dict, **kwds) -> 'Text': - ... - - def formatType(self, _: str, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Text': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Text': - ... + `__, the ``type`` property + refers to the post-aggregation data type. For example, we can calculate count + ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", + "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. + * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have + ``type`` as they must have exactly the same type as their primary channels (e.g., + ``x``, ``y`` ). - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Text': - ... + **See also:** `type `__ + documentation. + """ + _class_is_valid_at_instantiation = False + _encoding_name = "text" - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, format=Undefined, formatType=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Text, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, format=format, - formatType=formatType, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Text": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Text": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Text": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def bin(self, _: str, **kwds) -> "Text": + ... + + @overload + def bin(self, _: None, **kwds) -> "Text": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Union[Sequence[str], core.Text, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + Union[Sequence[str], core.Text, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def condition(self, _: List[core.ConditionalValueDefTextExprRef], **kwds) -> "Text": + ... + + @overload + def field(self, _: str, **kwds) -> "Text": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def format(self, _: str, **kwds) -> "Text": + ... + + @overload + def format(self, _: dict, **kwds) -> "Text": + ... + + @overload + def formatType(self, _: str, **kwds) -> "Text": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Text": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Text": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Text": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Text": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Text": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Text": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Text": + ... + + @overload + def title(self, _: str, **kwds) -> "Text": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Text": + ... + + @overload + def title(self, _: None, **kwds) -> "Text": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Text": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefTextExprRef, dict], + Union[core.ConditionalPredicateValueDefTextExprRef, dict], + core.ConditionalValueDefTextExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefTextExprRef, dict], + Union[core.ConditionalPredicateValueDefTextExprRef, dict], + core.ConditionalValueDefTextExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Text, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class TextDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionStringDatumDefText): """TextDatum schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionStringDatumDefText`, Dict Parameters ---------- @@ -11883,16 +63651,16 @@ class TextDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionStringDatumD Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`)) + condition : :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`, Sequence[:class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -11915,7 +63683,7 @@ class TextDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionStringDatumD format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -11926,7 +63694,7 @@ class TextDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionStringDatumD * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -11946,7 +63714,7 @@ class TextDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionStringDatumD 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12016,99 +63784,702 @@ class TextDatum(DatumChannelMixin, core.FieldOrDatumDefWithConditionStringDatumD **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "text" - def bandPosition(self, _: float, **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefTextExprRef], **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: str, **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: dict, **kwds) -> 'TextDatum': - ... - - def formatType(self, _: str, **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'TextDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'TextDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'TextDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, condition=Undefined, format=Undefined, - formatType=Undefined, title=Undefined, type=Undefined, **kwds): - super(TextDatum, self).__init__(datum=datum, bandPosition=bandPosition, condition=condition, - format=format, formatType=formatType, title=title, type=type, - **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "TextDatum": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Union[Sequence[str], core.Text, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TextDatum": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + Union[Sequence[str], core.Text, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TextDatum": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefTextExprRef], **kwds + ) -> "TextDatum": + ... + + @overload + def format(self, _: str, **kwds) -> "TextDatum": + ... + + @overload + def format(self, _: dict, **kwds) -> "TextDatum": + ... + + @overload + def formatType(self, _: str, **kwds) -> "TextDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "TextDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "TextDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "TextDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "TextDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefTextExprRef, dict], + Union[core.ConditionalPredicateValueDefTextExprRef, dict], + core.ConditionalValueDefTextExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefTextExprRef, dict], + Union[core.ConditionalPredicateValueDefTextExprRef, dict], + core.ConditionalValueDefTextExprRef, + ], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(TextDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + condition=condition, + format=format, + formatType=formatType, + title=title, + type=type, + **kwds, + ) @with_property_setters class TextValue(ValueChannelMixin, core.ValueDefWithConditionStringFieldDefText): """TextValue schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionStringFieldDefText`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalStringFieldDef`, :class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`)) + condition : :class:`ConditionalParameterStringFieldDef`, Dict[required=[param]], :class:`ConditionalPredicateStringFieldDef`, Dict[required=[test]], :class:`ConditionalStringFieldDef`, :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`, Sequence[:class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(:class:`Text`, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "text" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, format=Undefined, formatType=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'TextValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, format=Undefined, formatType=Undefined, param=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'TextValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'TextValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'TextValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefTextExprRef], **kwds) -> 'TextValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TextValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TextValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Union[Sequence[str], core.Text, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TextValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[ + Union[Sequence[str], core.Text, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TextValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefTextExprRef], **kwds + ) -> "TextValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefTextExprRef, dict], + Union[core.ConditionalPredicateValueDefTextExprRef, dict], + core.ConditionalValueDefTextExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterStringFieldDef, dict], + Union[core.ConditionalPredicateStringFieldDef, dict], + core.ConditionalStringFieldDef, + ], + Union[ + Union[core.ConditionalParameterValueDefTextExprRef, dict], + Union[core.ConditionalPredicateValueDefTextExprRef, dict], + core.ConditionalValueDefTextExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(TextValue, self).__init__(value=value, condition=condition, **kwds) @@ -12116,14 +64487,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Theta(FieldChannelMixin, core.PositionFieldDefBase): """Theta schema wrapper - Mapping(required=[shorthand]) + :class:`PositionFieldDefBase`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -12135,7 +64506,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -12156,7 +64527,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -12171,7 +64542,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -12184,7 +64555,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -12223,7 +64594,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `sort `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -12254,7 +64625,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `stack `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -12263,7 +64634,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12283,7 +64654,7 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12353,165 +64724,1408 @@ class Theta(FieldChannelMixin, core.PositionFieldDefBase): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "theta" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Theta': - ... - - def bandPosition(self, _: float, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Theta': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Theta': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Theta': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, scale=Undefined, sort=Undefined, stack=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(Theta, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, scale=scale, sort=sort, stack=stack, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Theta": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Theta": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def bin(self, _: str, **kwds) -> "Theta": + ... + + @overload + def bin(self, _: None, **kwds) -> "Theta": + ... + + @overload + def field(self, _: str, **kwds) -> "Theta": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def scale(self, _: None, **kwds) -> "Theta": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Theta": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Theta": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Theta": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Theta": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Theta": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def sort(self, _: None, **kwds) -> "Theta": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "Theta": + ... + + @overload + def stack(self, _: None, **kwds) -> "Theta": + ... + + @overload + def stack(self, _: bool, **kwds) -> "Theta": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Theta": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Theta": + ... + + @overload + def title(self, _: str, **kwds) -> "Theta": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Theta": + ... + + @overload + def title(self, _: None, **kwds) -> "Theta": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Theta": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Theta, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + scale=scale, + sort=sort, + stack=stack, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class ThetaDatum(DatumChannelMixin, core.PositionDatumDefBase): """ThetaDatum schema wrapper - Mapping(required=[]) + :class:`PositionDatumDefBase`, Dict Parameters ---------- @@ -12520,9 +66134,9 @@ class ThetaDatum(DatumChannelMixin, core.PositionDatumDefBase): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -12535,7 +66149,7 @@ class ThetaDatum(DatumChannelMixin, core.PositionDatumDefBase): **See also:** `scale `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -12566,7 +66180,7 @@ class ThetaDatum(DatumChannelMixin, core.PositionDatumDefBase): **See also:** `stack `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12586,7 +66200,7 @@ class ThetaDatum(DatumChannelMixin, core.PositionDatumDefBase): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12656,75 +66270,651 @@ class ThetaDatum(DatumChannelMixin, core.PositionDatumDefBase): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "theta" - def bandPosition(self, _: float, **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'ThetaDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'ThetaDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'ThetaDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, scale=Undefined, stack=Undefined, title=Undefined, - type=Undefined, **kwds): - super(ThetaDatum, self).__init__(datum=datum, bandPosition=bandPosition, scale=scale, - stack=stack, title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "ThetaDatum": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "ThetaDatum": + ... + + @overload + def scale(self, _: None, **kwds) -> "ThetaDatum": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "ThetaDatum": + ... + + @overload + def stack(self, _: None, **kwds) -> "ThetaDatum": + ... + + @overload + def stack(self, _: bool, **kwds) -> "ThetaDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "ThetaDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "ThetaDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "ThetaDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "ThetaDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ThetaDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + scale=scale, + stack=stack, + title=title, + type=type, + **kwds, + ) @with_property_setters class ThetaValue(ValueChannelMixin, core.PositionValueDef): """ThetaValue schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "theta" - - def __init__(self, value, **kwds): super(ThetaValue, self).__init__(value=value, **kwds) @@ -12733,16 +66923,16 @@ def __init__(self, value, **kwds): class Theta2(FieldChannelMixin, core.SecondaryFieldDef): """Theta2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -12775,7 +66965,7 @@ class Theta2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -12790,7 +66980,7 @@ class Theta2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -12799,7 +66989,7 @@ class Theta2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12820,88 +67010,592 @@ class Theta2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "theta2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Theta2': - ... - - def bandPosition(self, _: float, **kwds) -> 'Theta2': - ... - - def bin(self, _: None, **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Theta2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Theta2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(Theta2, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, timeUnit=timeUnit, - title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Theta2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Theta2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Theta2": + ... + + @overload + def bin(self, _: None, **kwds) -> "Theta2": + ... + + @overload + def field(self, _: str, **kwds) -> "Theta2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Theta2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Theta2": + ... + + @overload + def title(self, _: str, **kwds) -> "Theta2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Theta2": + ... + + @overload + def title(self, _: None, **kwds) -> "Theta2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(Theta2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class Theta2Datum(DatumChannelMixin, core.DatumDef): """Theta2Datum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -12910,9 +67604,9 @@ class Theta2Datum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12932,7 +67626,7 @@ class Theta2Datum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -13002,54 +67696,75 @@ class Theta2Datum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "theta2" - def bandPosition(self, _: float, **kwds) -> 'Theta2Datum': + @overload + def bandPosition(self, _: float, **kwds) -> "Theta2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Theta2Datum': + @overload + def title(self, _: str, **kwds) -> "Theta2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Theta2Datum': + @overload + def title(self, _: List[str], **kwds) -> "Theta2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Theta2Datum': + @overload + def title(self, _: None, **kwds) -> "Theta2Datum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'Theta2Datum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "Theta2Datum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(Theta2Datum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, - type=type, **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Theta2Datum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Theta2Value(ValueChannelMixin, core.PositionValueDef): """Theta2Value schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "theta2" - - def __init__(self, value, **kwds): super(Theta2Value, self).__init__(value=value, **kwds) @@ -13058,14 +67773,14 @@ def __init__(self, value, **kwds): class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): """Tooltip schema wrapper - Mapping(required=[shorthand]) + :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -13077,7 +67792,7 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -13098,14 +67813,14 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`)) + condition : :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`, Sequence[:class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -13120,7 +67835,7 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -13143,7 +67858,7 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -13154,7 +67869,7 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -13163,7 +67878,7 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -13183,7 +67898,7 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -13244,182 +67959,1461 @@ class Tooltip(FieldChannelMixin, core.StringFieldDefWithCondition): * When using with `aggregate `__, the ``type`` property refers to the post-aggregation data type. For example, we can calculate count - ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", - "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. - * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have - ``type`` as they must have exactly the same type as their primary channels (e.g., - ``x``, ``y`` ). - - **See also:** `type `__ - documentation. - """ - _class_is_valid_at_instantiation = False - _encoding_name = "tooltip" - - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Tooltip': - ... - - def bandPosition(self, _: float, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringExprRef], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: str, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: dict, **kwds) -> 'Tooltip': - ... - - def formatType(self, _: str, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Tooltip': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Tooltip': - ... + ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", + "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. + * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have + ``type`` as they must have exactly the same type as their primary channels (e.g., + ``x``, ``y`` ). - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Tooltip': - ... + **See also:** `type `__ + documentation. + """ + _class_is_valid_at_instantiation = False + _encoding_name = "tooltip" - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, format=Undefined, formatType=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Tooltip, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, condition=condition, - field=field, format=format, formatType=formatType, - timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Tooltip": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Tooltip": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def bin(self, _: str, **kwds) -> "Tooltip": + ... + + @overload + def bin(self, _: None, **kwds) -> "Tooltip": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringExprRef], **kwds + ) -> "Tooltip": + ... + + @overload + def field(self, _: str, **kwds) -> "Tooltip": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def format(self, _: str, **kwds) -> "Tooltip": + ... + + @overload + def format(self, _: dict, **kwds) -> "Tooltip": + ... + + @overload + def formatType(self, _: str, **kwds) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Tooltip": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Tooltip": + ... + + @overload + def title(self, _: str, **kwds) -> "Tooltip": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Tooltip": + ... + + @overload + def title(self, _: None, **kwds) -> "Tooltip": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Tooltip": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Tooltip, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class TooltipValue(ValueChannelMixin, core.StringValueDefWithCondition): """TooltipValue schema wrapper - Mapping(required=[]) + :class:`StringValueDefWithCondition`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "tooltip" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'TooltipValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'TooltipValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'TooltipValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'TooltipValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'TooltipValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'TooltipValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'TooltipValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TooltipValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TooltipValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TooltipValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "TooltipValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "TooltipValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "TooltipValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "TooltipValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(TooltipValue, self).__init__(value=value, condition=condition, **kwds) @@ -13427,14 +69421,14 @@ def __init__(self, value, condition=Undefined, **kwds): class Url(FieldChannelMixin, core.StringFieldDefWithCondition): """Url schema wrapper - Mapping(required=[shorthand]) + :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -13446,7 +69440,7 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -13467,14 +69461,14 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`)) + condition : :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`, Sequence[:class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -13489,7 +69483,7 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -13512,7 +69506,7 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -13523,7 +69517,7 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -13532,7 +69526,7 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -13552,7 +69546,7 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -13622,173 +69616,1452 @@ class Url(FieldChannelMixin, core.StringFieldDefWithCondition): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "url" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Url': - ... - - def bandPosition(self, _: float, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringExprRef], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: str, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def format(self, _: dict, **kwds) -> 'Url': - ... - - def formatType(self, _: str, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Url': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Url': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Url': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - condition=Undefined, field=Undefined, format=Undefined, formatType=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Url, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, condition=condition, field=field, format=format, - formatType=formatType, timeUnit=timeUnit, title=title, type=type, - **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Url": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Url": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Url": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def bin(self, _: str, **kwds) -> "Url": + ... + + @overload + def bin(self, _: None, **kwds) -> "Url": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringExprRef], **kwds + ) -> "Url": + ... + + @overload + def field(self, _: str, **kwds) -> "Url": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def format(self, _: str, **kwds) -> "Url": + ... + + @overload + def format(self, _: dict, **kwds) -> "Url": + ... + + @overload + def formatType(self, _: str, **kwds) -> "Url": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Url": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Url": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Url": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Url": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Url": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Url": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Url": + ... + + @overload + def title(self, _: str, **kwds) -> "Url": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Url": + ... + + @overload + def title(self, _: None, **kwds) -> "Url": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Url": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterValueDefstringExprRef, dict], + Union[core.ConditionalPredicateValueDefstringExprRef, dict], + core.ConditionalValueDefstringExprRef, + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Url, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class UrlValue(ValueChannelMixin, core.StringValueDefWithCondition): """UrlValue schema wrapper - Mapping(required=[]) + :class:`StringValueDefWithCondition`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "url" - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, test=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'UrlValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, legend=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined, **kwds) -> 'UrlValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, empty=Undefined, field=Undefined, legend=Undefined, param=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds) -> 'UrlValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, bandPosition=Undefined, datum=Undefined, empty=Undefined, legend=Undefined, param=Undefined, scale=Undefined, title=Undefined, type=Undefined, **kwds) -> 'UrlValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, test=Undefined, value=Undefined, **kwds) -> 'UrlValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, empty=Undefined, param=Undefined, value=Undefined, **kwds) -> 'UrlValue': - ... - - @overload # type: ignore[no-overload-impl] - def condition(self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds) -> 'UrlValue': - ... - - - def __init__(self, value, condition=Undefined, **kwds): + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "UrlValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "UrlValue": + ... + + @overload + def condition( + self, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "UrlValue": + ... + + @overload + def condition( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union[None, bool, core.PrimitiveValue, float, str], + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.RepeatRef, dict], + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + legend: Union[Union[None, Union[core.Legend, dict]], UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "UrlValue": + ... + + @overload + def condition( + self, + test: Union[ + Union[ + Union[ + Union[core.FieldEqualPredicate, dict], + Union[core.FieldGTEPredicate, dict], + Union[core.FieldGTPredicate, dict], + Union[core.FieldLTEPredicate, dict], + Union[core.FieldLTPredicate, dict], + Union[core.FieldOneOfPredicate, dict], + Union[core.FieldRangePredicate, dict], + Union[core.FieldValidPredicate, dict], + Union[core.ParameterPredicate, dict], + core.Predicate, + str, + ], + Union[core.LogicalAndPredicate, dict], + Union[core.LogicalNotPredicate, dict], + Union[core.LogicalOrPredicate, dict], + core.PredicateComposition, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "UrlValue": + ... + + @overload + def condition( + self, + empty: Union[bool, UndefinedType] = Undefined, + param: Union[Union[core.ParameterName, str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + **kwds, + ) -> "UrlValue": + ... + + @overload + def condition( + self, _: List[core.ConditionalValueDefstringnullExprRef], **kwds + ) -> "UrlValue": + ... + + def __init__( + self, + value, + condition: Union[ + Union[ + Sequence[ + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ] + ], + Union[ + Union[core.ConditionalParameterMarkPropFieldOrDatumDef, dict], + Union[core.ConditionalPredicateMarkPropFieldOrDatumDef, dict], + core.ConditionalMarkPropFieldOrDatumDef, + ], + Union[ + Union[core.ConditionalParameterValueDefstringnullExprRef, dict], + Union[core.ConditionalPredicateValueDefstringnullExprRef, dict], + core.ConditionalValueDefstringnullExprRef, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(UrlValue, self).__init__(value=value, condition=condition, **kwds) @@ -13796,14 +71069,14 @@ def __init__(self, value, condition=Undefined, **kwds): class X(FieldChannelMixin, core.PositionFieldDef): """X schema wrapper - Mapping(required=[shorthand]) + :class:`PositionFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -13811,7 +71084,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `aggregate `__ documentation. - axis : anyOf(:class:`Axis`, None) + axis : :class:`Axis`, Dict, None An object defining properties of axis's gridlines, ticks and labels. If ``null``, the axis for the encoding channel will be removed. @@ -13824,7 +71097,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -13845,7 +71118,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -13860,7 +71133,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - impute : anyOf(:class:`ImputeParams`, None) + impute : :class:`ImputeParams`, Dict, None An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as ``key`` of the ``Impute`` Operation. The field of the ``color`` channel if specified is used as ``groupby`` of @@ -13868,7 +71141,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `impute `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -13881,7 +71154,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -13920,7 +71193,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `sort `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -13951,7 +71224,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `stack `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -13960,7 +71233,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -13980,7 +71253,7 @@ class X(FieldChannelMixin, core.PositionFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -14050,187 +71323,2684 @@ class X(FieldChannelMixin, core.PositionFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "x" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def axis(self, aria=Undefined, bandPosition=Undefined, description=Undefined, domain=Undefined, domainCap=Undefined, domainColor=Undefined, domainDash=Undefined, domainDashOffset=Undefined, domainOpacity=Undefined, domainWidth=Undefined, format=Undefined, formatType=Undefined, grid=Undefined, gridCap=Undefined, gridColor=Undefined, gridDash=Undefined, gridDashOffset=Undefined, gridOpacity=Undefined, gridWidth=Undefined, labelAlign=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelBound=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFlush=Undefined, labelFlushOffset=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, labels=Undefined, maxExtent=Undefined, minExtent=Undefined, offset=Undefined, orient=Undefined, position=Undefined, style=Undefined, tickBand=Undefined, tickCap=Undefined, tickColor=Undefined, tickCount=Undefined, tickDash=Undefined, tickDashOffset=Undefined, tickExtra=Undefined, tickMinStep=Undefined, tickOffset=Undefined, tickOpacity=Undefined, tickRound=Undefined, tickSize=Undefined, tickWidth=Undefined, ticks=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titlePadding=Undefined, titleX=Undefined, titleY=Undefined, translate=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def axis(self, _: None, **kwds) -> 'X': - ... - - def bandPosition(self, _: float, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, frame=Undefined, keyvals=Undefined, method=Undefined, value=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, _: None, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'X': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'X': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'X': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, axis=Undefined, bandPosition=Undefined, - bin=Undefined, field=Undefined, impute=Undefined, scale=Undefined, sort=Undefined, - stack=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(X, self).__init__(shorthand=shorthand, aggregate=aggregate, axis=axis, - bandPosition=bandPosition, bin=bin, field=field, impute=impute, - scale=scale, sort=sort, stack=stack, timeUnit=timeUnit, title=title, - type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "X": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def axis( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + bandPosition: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + domain: Union[bool, UndefinedType] = Undefined, + domainCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + domainDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + grid: Union[bool, UndefinedType] = Undefined, + gridCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ConditionalAxisLabelAlign, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ConditionalAxisLabelBaseline, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBound: Union[ + Union[Union[bool, float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFlush: Union[Union[bool, float], UndefinedType] = Undefined, + labelFlushOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFont: Union[ + Union[ + Union[core.ConditionalAxisString, dict], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + labelFontSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ConditionalAxisLabelFontStyle, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.FontStyle, str], + ], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union[ + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + core.FontWeight, + ], + Union[core.ConditionalAxisLabelFontWeight, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + maxExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + minExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union[Literal["top", "bottom", "left", "right"], core.AxisOrient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + position: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tickBand: Union[ + Union[ + Literal["center", "extent"], Union[core.ExprRef, core._Parameter, dict] + ], + UndefinedType, + ] = Undefined, + tickCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickExtra: Union[bool, UndefinedType] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickRound: Union[bool, UndefinedType] = Undefined, + tickSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + ticks: Union[bool, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def axis(self, _: None, **kwds) -> "X": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "X": + ... + + @overload + def bin(self, _: bool, **kwds) -> "X": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def bin(self, _: str, **kwds) -> "X": + ... + + @overload + def bin(self, _: None, **kwds) -> "X": + ... + + @overload + def field(self, _: str, **kwds) -> "X": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def impute( + self, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + keyvals: Union[ + Union[Sequence[Any], Union[core.ImputeSequence, dict]], UndefinedType + ] = Undefined, + method: Union[ + Union[Literal["value", "median", "max", "min", "mean"], core.ImputeMethod], + UndefinedType, + ] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def impute(self, _: None, **kwds) -> "X": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def scale(self, _: None, **kwds) -> "X": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "X": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "X": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "X": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "X": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "X": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "X": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "X": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def sort(self, _: None, **kwds) -> "X": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "X": + ... + + @overload + def stack(self, _: None, **kwds) -> "X": + ... + + @overload + def stack(self, _: bool, **kwds) -> "X": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "X": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "X": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "X": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "X": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "X": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "X": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "X": + ... + + @overload + def title(self, _: str, **kwds) -> "X": + ... + + @overload + def title(self, _: List[str], **kwds) -> "X": + ... + + @overload + def title(self, _: None, **kwds) -> "X": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "X": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + axis: Union[Union[None, Union[core.Axis, dict]], UndefinedType] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + impute: Union[ + Union[None, Union[core.ImputeParams, dict]], UndefinedType + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(X, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + axis=axis, + bandPosition=bandPosition, + bin=bin, + field=field, + impute=impute, + scale=scale, + sort=sort, + stack=stack, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class XDatum(DatumChannelMixin, core.PositionDatumDef): """XDatum schema wrapper - Mapping(required=[]) + :class:`PositionDatumDef`, Dict Parameters ---------- - axis : anyOf(:class:`Axis`, None) + axis : :class:`Axis`, Dict, None An object defining properties of axis's gridlines, ticks and labels. If ``null``, the axis for the encoding channel will be removed. @@ -14243,9 +74013,9 @@ class XDatum(DatumChannelMixin, core.PositionDatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - impute : anyOf(:class:`ImputeParams`, None) + impute : :class:`ImputeParams`, Dict, None An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as ``key`` of the ``Impute`` Operation. The field of the ``color`` channel if specified is used as ``groupby`` of @@ -14253,7 +74023,7 @@ class XDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `impute `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -14266,7 +74036,7 @@ class XDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `scale `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -14297,7 +74067,7 @@ class XDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `stack `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -14317,7 +74087,7 @@ class XDatum(DatumChannelMixin, core.PositionDatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -14387,91 +74157,1922 @@ class XDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "x" - @overload # type: ignore[no-overload-impl] - def axis(self, aria=Undefined, bandPosition=Undefined, description=Undefined, domain=Undefined, domainCap=Undefined, domainColor=Undefined, domainDash=Undefined, domainDashOffset=Undefined, domainOpacity=Undefined, domainWidth=Undefined, format=Undefined, formatType=Undefined, grid=Undefined, gridCap=Undefined, gridColor=Undefined, gridDash=Undefined, gridDashOffset=Undefined, gridOpacity=Undefined, gridWidth=Undefined, labelAlign=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelBound=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFlush=Undefined, labelFlushOffset=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, labels=Undefined, maxExtent=Undefined, minExtent=Undefined, offset=Undefined, orient=Undefined, position=Undefined, style=Undefined, tickBand=Undefined, tickCap=Undefined, tickColor=Undefined, tickCount=Undefined, tickDash=Undefined, tickDashOffset=Undefined, tickExtra=Undefined, tickMinStep=Undefined, tickOffset=Undefined, tickOpacity=Undefined, tickRound=Undefined, tickSize=Undefined, tickWidth=Undefined, ticks=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titlePadding=Undefined, titleX=Undefined, titleY=Undefined, translate=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def axis(self, _: None, **kwds) -> 'XDatum': - ... - - def bandPosition(self, _: float, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, frame=Undefined, keyvals=Undefined, method=Undefined, value=Undefined, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, _: None, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'XDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'XDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'XDatum': - ... - - - def __init__(self, datum, axis=Undefined, bandPosition=Undefined, impute=Undefined, scale=Undefined, - stack=Undefined, title=Undefined, type=Undefined, **kwds): - super(XDatum, self).__init__(datum=datum, axis=axis, bandPosition=bandPosition, impute=impute, - scale=scale, stack=stack, title=title, type=type, **kwds) + @overload + def axis( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + bandPosition: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + domain: Union[bool, UndefinedType] = Undefined, + domainCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + domainDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + grid: Union[bool, UndefinedType] = Undefined, + gridCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ConditionalAxisLabelAlign, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ConditionalAxisLabelBaseline, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBound: Union[ + Union[Union[bool, float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFlush: Union[Union[bool, float], UndefinedType] = Undefined, + labelFlushOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFont: Union[ + Union[ + Union[core.ConditionalAxisString, dict], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + labelFontSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ConditionalAxisLabelFontStyle, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.FontStyle, str], + ], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union[ + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + core.FontWeight, + ], + Union[core.ConditionalAxisLabelFontWeight, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + maxExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + minExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union[Literal["top", "bottom", "left", "right"], core.AxisOrient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + position: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tickBand: Union[ + Union[ + Literal["center", "extent"], Union[core.ExprRef, core._Parameter, dict] + ], + UndefinedType, + ] = Undefined, + tickCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickExtra: Union[bool, UndefinedType] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickRound: Union[bool, UndefinedType] = Undefined, + tickSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + ticks: Union[bool, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "XDatum": + ... + + @overload + def axis(self, _: None, **kwds) -> "XDatum": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "XDatum": + ... + + @overload + def impute( + self, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + keyvals: Union[ + Union[Sequence[Any], Union[core.ImputeSequence, dict]], UndefinedType + ] = Undefined, + method: Union[ + Union[Literal["value", "median", "max", "min", "mean"], core.ImputeMethod], + UndefinedType, + ] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ) -> "XDatum": + ... + + @overload + def impute(self, _: None, **kwds) -> "XDatum": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "XDatum": + ... + + @overload + def scale(self, _: None, **kwds) -> "XDatum": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "XDatum": + ... + + @overload + def stack(self, _: None, **kwds) -> "XDatum": + ... + + @overload + def stack(self, _: bool, **kwds) -> "XDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "XDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "XDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "XDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "XDatum": + ... + + def __init__( + self, + datum, + axis: Union[Union[None, Union[core.Axis, dict]], UndefinedType] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + impute: Union[ + Union[None, Union[core.ImputeParams, dict]], UndefinedType + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(XDatum, self).__init__( + datum=datum, + axis=axis, + bandPosition=bandPosition, + impute=impute, + scale=scale, + stack=stack, + title=title, + type=type, + **kwds, + ) @with_property_setters class XValue(ValueChannelMixin, core.PositionValueDef): """XValue schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "x" - - def __init__(self, value, **kwds): super(XValue, self).__init__(value=value, **kwds) @@ -14480,16 +76081,16 @@ def __init__(self, value, **kwds): class X2(FieldChannelMixin, core.SecondaryFieldDef): """X2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -14522,7 +76123,7 @@ class X2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -14537,7 +76138,7 @@ class X2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -14546,7 +76147,7 @@ class X2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -14567,87 +76168,592 @@ class X2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "x2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'X2': - ... - - def bandPosition(self, _: float, **kwds) -> 'X2': - ... - - def bin(self, _: None, **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'X2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'X2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(X2, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, timeUnit=timeUnit, title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "X2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "X2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "X2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "X2": + ... + + @overload + def bin(self, _: None, **kwds) -> "X2": + ... + + @overload + def field(self, _: str, **kwds) -> "X2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "X2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "X2": + ... + + @overload + def title(self, _: str, **kwds) -> "X2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "X2": + ... + + @overload + def title(self, _: None, **kwds) -> "X2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(X2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class X2Datum(DatumChannelMixin, core.DatumDef): """X2Datum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -14656,9 +76762,9 @@ class X2Datum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -14678,7 +76784,7 @@ class X2Datum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -14748,54 +76854,75 @@ class X2Datum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "x2" - def bandPosition(self, _: float, **kwds) -> 'X2Datum': + @overload + def bandPosition(self, _: float, **kwds) -> "X2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'X2Datum': + @overload + def title(self, _: str, **kwds) -> "X2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'X2Datum': + @overload + def title(self, _: List[str], **kwds) -> "X2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'X2Datum': + @overload + def title(self, _: None, **kwds) -> "X2Datum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'X2Datum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "X2Datum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(X2Datum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, type=type, - **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(X2Datum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class X2Value(ValueChannelMixin, core.PositionValueDef): """X2Value schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "x2" - - def __init__(self, value, **kwds): super(X2Value, self).__init__(value=value, **kwds) @@ -14804,16 +76931,16 @@ def __init__(self, value, **kwds): class XError(FieldChannelMixin, core.SecondaryFieldDef): """XError schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -14846,7 +76973,7 @@ class XError(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -14861,7 +76988,7 @@ class XError(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -14870,7 +76997,7 @@ class XError(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -14891,88 +77018,592 @@ class XError(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "xError" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'XError': - ... - - def bandPosition(self, _: float, **kwds) -> 'XError': - ... - - def bin(self, _: None, **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'XError': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'XError': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(XError, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, timeUnit=timeUnit, - title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "XError": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "XError": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "XError": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "XError": + ... + + @overload + def bin(self, _: None, **kwds) -> "XError": + ... + + @overload + def field(self, _: str, **kwds) -> "XError": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "XError": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "XError": + ... + + @overload + def title(self, _: str, **kwds) -> "XError": + ... + + @overload + def title(self, _: List[str], **kwds) -> "XError": + ... + + @overload + def title(self, _: None, **kwds) -> "XError": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(XError, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class XErrorValue(ValueChannelMixin, core.ValueDefnumber): """XErrorValue schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -14984,11 +77615,10 @@ class XErrorValue(ValueChannelMixin, core.ValueDefnumber): definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "xError" - - def __init__(self, value, **kwds): super(XErrorValue, self).__init__(value=value, **kwds) @@ -14997,16 +77627,16 @@ def __init__(self, value, **kwds): class XError2(FieldChannelMixin, core.SecondaryFieldDef): """XError2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -15039,7 +77669,7 @@ class XError2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -15054,7 +77684,7 @@ class XError2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -15063,7 +77693,7 @@ class XError2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15084,88 +77714,592 @@ class XError2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "xError2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'XError2': - ... - - def bandPosition(self, _: float, **kwds) -> 'XError2': - ... - - def bin(self, _: None, **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'XError2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'XError2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(XError2, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "XError2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "XError2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "XError2": + ... + + @overload + def bin(self, _: None, **kwds) -> "XError2": + ... + + @overload + def field(self, _: str, **kwds) -> "XError2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "XError2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "XError2": + ... + + @overload + def title(self, _: str, **kwds) -> "XError2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "XError2": + ... + + @overload + def title(self, _: None, **kwds) -> "XError2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(XError2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class XError2Value(ValueChannelMixin, core.ValueDefnumber): """XError2Value schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -15177,11 +78311,10 @@ class XError2Value(ValueChannelMixin, core.ValueDefnumber): definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "xError2" - - def __init__(self, value, **kwds): super(XError2Value, self).__init__(value=value, **kwds) @@ -15190,14 +78323,14 @@ def __init__(self, value, **kwds): class XOffset(FieldChannelMixin, core.ScaleFieldDef): """XOffset schema wrapper - Mapping(required=[shorthand]) + :class:`ScaleFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -15209,7 +78342,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -15230,7 +78363,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -15245,7 +78378,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -15258,7 +78391,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -15297,7 +78430,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -15306,7 +78439,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15326,7 +78459,7 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -15396,149 +78529,1383 @@ class XOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "xOffset" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'XOffset': - ... - - def bandPosition(self, _: float, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'XOffset': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'XOffset': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'XOffset': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, - type=Undefined, **kwds): - super(XOffset, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, scale=scale, - sort=sort, timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "XOffset": + ... + + @overload + def bin(self, _: bool, **kwds) -> "XOffset": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def bin(self, _: None, **kwds) -> "XOffset": + ... + + @overload + def field(self, _: str, **kwds) -> "XOffset": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def scale(self, _: None, **kwds) -> "XOffset": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "XOffset": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "XOffset": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "XOffset": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "XOffset": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "XOffset": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def sort(self, _: None, **kwds) -> "XOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "XOffset": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "XOffset": + ... + + @overload + def title(self, _: str, **kwds) -> "XOffset": + ... + + @overload + def title(self, _: List[str], **kwds) -> "XOffset": + ... + + @overload + def title(self, _: None, **kwds) -> "XOffset": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "XOffset": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(XOffset, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class XOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): """XOffsetDatum schema wrapper - Mapping(required=[]) + :class:`ScaleDatumDef`, Dict Parameters ---------- @@ -15547,9 +79914,9 @@ class XOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -15562,7 +79929,7 @@ class XOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): **See also:** `scale `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15582,7 +79949,7 @@ class XOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -15652,47 +80019,615 @@ class XOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "xOffset" - def bandPosition(self, _: float, **kwds) -> 'XOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'XOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'XOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'XOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'XOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'XOffsetDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'XOffsetDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, scale=Undefined, title=Undefined, type=Undefined, - **kwds): - super(XOffsetDatum, self).__init__(datum=datum, bandPosition=bandPosition, scale=scale, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "XOffsetDatum": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "XOffsetDatum": + ... + + @overload + def scale(self, _: None, **kwds) -> "XOffsetDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "XOffsetDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "XOffsetDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "XOffsetDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "XOffsetDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(XOffsetDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + scale=scale, + title=title, + type=type, + **kwds, + ) @with_property_setters class XOffsetValue(ValueChannelMixin, core.ValueDefnumber): """XOffsetValue schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -15704,11 +80639,10 @@ class XOffsetValue(ValueChannelMixin, core.ValueDefnumber): definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "xOffset" - - def __init__(self, value, **kwds): super(XOffsetValue, self).__init__(value=value, **kwds) @@ -15717,14 +80651,14 @@ def __init__(self, value, **kwds): class Y(FieldChannelMixin, core.PositionFieldDef): """Y schema wrapper - Mapping(required=[shorthand]) + :class:`PositionFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -15732,7 +80666,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `aggregate `__ documentation. - axis : anyOf(:class:`Axis`, None) + axis : :class:`Axis`, Dict, None An object defining properties of axis's gridlines, ticks and labels. If ``null``, the axis for the encoding channel will be removed. @@ -15745,7 +80679,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -15766,7 +80700,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -15781,7 +80715,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - impute : anyOf(:class:`ImputeParams`, None) + impute : :class:`ImputeParams`, Dict, None An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as ``key`` of the ``Impute`` Operation. The field of the ``color`` channel if specified is used as ``groupby`` of @@ -15789,7 +80723,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `impute `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -15802,7 +80736,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -15841,7 +80775,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `sort `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -15872,7 +80806,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `stack `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -15881,7 +80815,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15901,7 +80835,7 @@ class Y(FieldChannelMixin, core.PositionFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -15962,196 +80896,2693 @@ class Y(FieldChannelMixin, core.PositionFieldDef): * When using with `aggregate `__, the ``type`` property refers to the post-aggregation data type. For example, we can calculate count - ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", - "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. - * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have - ``type`` as they must have exactly the same type as their primary channels (e.g., - ``x``, ``y`` ). - - **See also:** `type `__ - documentation. - """ - _class_is_valid_at_instantiation = False - _encoding_name = "y" - - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def axis(self, aria=Undefined, bandPosition=Undefined, description=Undefined, domain=Undefined, domainCap=Undefined, domainColor=Undefined, domainDash=Undefined, domainDashOffset=Undefined, domainOpacity=Undefined, domainWidth=Undefined, format=Undefined, formatType=Undefined, grid=Undefined, gridCap=Undefined, gridColor=Undefined, gridDash=Undefined, gridDashOffset=Undefined, gridOpacity=Undefined, gridWidth=Undefined, labelAlign=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelBound=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFlush=Undefined, labelFlushOffset=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, labels=Undefined, maxExtent=Undefined, minExtent=Undefined, offset=Undefined, orient=Undefined, position=Undefined, style=Undefined, tickBand=Undefined, tickCap=Undefined, tickColor=Undefined, tickCount=Undefined, tickDash=Undefined, tickDashOffset=Undefined, tickExtra=Undefined, tickMinStep=Undefined, tickOffset=Undefined, tickOpacity=Undefined, tickRound=Undefined, tickSize=Undefined, tickWidth=Undefined, ticks=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titlePadding=Undefined, titleX=Undefined, titleY=Undefined, translate=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def axis(self, _: None, **kwds) -> 'Y': - ... - - def bandPosition(self, _: float, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: str, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, frame=Undefined, keyvals=Undefined, method=Undefined, value=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, _: None, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Y': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Y': - ... + ``distinct`` of a categorical field ``"cat"`` using ``{"aggregate": "distinct", + "field": "cat"}``. The ``"type"`` of the aggregate output is ``"quantitative"``. + * Secondary channels (e.g., ``x2``, ``y2``, ``xError``, ``yError`` ) do not have + ``type`` as they must have exactly the same type as their primary channels (e.g., + ``x``, ``y`` ). - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'Y': - ... + **See also:** `type `__ + documentation. + """ + _class_is_valid_at_instantiation = False + _encoding_name = "y" - def __init__(self, shorthand=Undefined, aggregate=Undefined, axis=Undefined, bandPosition=Undefined, - bin=Undefined, field=Undefined, impute=Undefined, scale=Undefined, sort=Undefined, - stack=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(Y, self).__init__(shorthand=shorthand, aggregate=aggregate, axis=axis, - bandPosition=bandPosition, bin=bin, field=field, impute=impute, - scale=scale, sort=sort, stack=stack, timeUnit=timeUnit, title=title, - type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Y": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def axis( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + bandPosition: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + domain: Union[bool, UndefinedType] = Undefined, + domainCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + domainDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + grid: Union[bool, UndefinedType] = Undefined, + gridCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ConditionalAxisLabelAlign, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ConditionalAxisLabelBaseline, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBound: Union[ + Union[Union[bool, float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFlush: Union[Union[bool, float], UndefinedType] = Undefined, + labelFlushOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFont: Union[ + Union[ + Union[core.ConditionalAxisString, dict], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + labelFontSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ConditionalAxisLabelFontStyle, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.FontStyle, str], + ], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union[ + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + core.FontWeight, + ], + Union[core.ConditionalAxisLabelFontWeight, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + maxExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + minExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union[Literal["top", "bottom", "left", "right"], core.AxisOrient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + position: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tickBand: Union[ + Union[ + Literal["center", "extent"], Union[core.ExprRef, core._Parameter, dict] + ], + UndefinedType, + ] = Undefined, + tickCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickExtra: Union[bool, UndefinedType] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickRound: Union[bool, UndefinedType] = Undefined, + tickSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + ticks: Union[bool, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def axis(self, _: None, **kwds) -> "Y": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Y": + ... + + @overload + def bin(self, _: bool, **kwds) -> "Y": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def bin(self, _: str, **kwds) -> "Y": + ... + + @overload + def bin(self, _: None, **kwds) -> "Y": + ... + + @overload + def field(self, _: str, **kwds) -> "Y": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def impute( + self, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + keyvals: Union[ + Union[Sequence[Any], Union[core.ImputeSequence, dict]], UndefinedType + ] = Undefined, + method: Union[ + Union[Literal["value", "median", "max", "min", "mean"], core.ImputeMethod], + UndefinedType, + ] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def impute(self, _: None, **kwds) -> "Y": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def scale(self, _: None, **kwds) -> "Y": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "Y": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "Y": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "Y": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "Y": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "Y": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "Y": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "Y": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def sort(self, _: None, **kwds) -> "Y": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "Y": + ... + + @overload + def stack(self, _: None, **kwds) -> "Y": + ... + + @overload + def stack(self, _: bool, **kwds) -> "Y": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Y": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Y": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Y": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Y": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Y": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Y": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Y": + ... + + @overload + def title(self, _: str, **kwds) -> "Y": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Y": + ... + + @overload + def title(self, _: None, **kwds) -> "Y": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "Y": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + axis: Union[Union[None, Union[core.Axis, dict]], UndefinedType] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + impute: Union[ + Union[None, Union[core.ImputeParams, dict]], UndefinedType + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Y, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + axis=axis, + bandPosition=bandPosition, + bin=bin, + field=field, + impute=impute, + scale=scale, + sort=sort, + stack=stack, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class YDatum(DatumChannelMixin, core.PositionDatumDef): """YDatum schema wrapper - Mapping(required=[]) + :class:`PositionDatumDef`, Dict Parameters ---------- - axis : anyOf(:class:`Axis`, None) + axis : :class:`Axis`, Dict, None An object defining properties of axis's gridlines, ticks and labels. If ``null``, the axis for the encoding channel will be removed. @@ -16164,9 +83595,9 @@ class YDatum(DatumChannelMixin, core.PositionDatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - impute : anyOf(:class:`ImputeParams`, None) + impute : :class:`ImputeParams`, Dict, None An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as ``key`` of the ``Impute`` Operation. The field of the ``color`` channel if specified is used as ``groupby`` of @@ -16174,7 +83605,7 @@ class YDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `impute `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -16187,7 +83618,7 @@ class YDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `scale `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -16218,7 +83649,7 @@ class YDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `stack `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -16238,7 +83669,7 @@ class YDatum(DatumChannelMixin, core.PositionDatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -16308,91 +83739,1922 @@ class YDatum(DatumChannelMixin, core.PositionDatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "y" - @overload # type: ignore[no-overload-impl] - def axis(self, aria=Undefined, bandPosition=Undefined, description=Undefined, domain=Undefined, domainCap=Undefined, domainColor=Undefined, domainDash=Undefined, domainDashOffset=Undefined, domainOpacity=Undefined, domainWidth=Undefined, format=Undefined, formatType=Undefined, grid=Undefined, gridCap=Undefined, gridColor=Undefined, gridDash=Undefined, gridDashOffset=Undefined, gridOpacity=Undefined, gridWidth=Undefined, labelAlign=Undefined, labelAngle=Undefined, labelBaseline=Undefined, labelBound=Undefined, labelColor=Undefined, labelExpr=Undefined, labelFlush=Undefined, labelFlushOffset=Undefined, labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, labelPadding=Undefined, labelSeparation=Undefined, labels=Undefined, maxExtent=Undefined, minExtent=Undefined, offset=Undefined, orient=Undefined, position=Undefined, style=Undefined, tickBand=Undefined, tickCap=Undefined, tickColor=Undefined, tickCount=Undefined, tickDash=Undefined, tickDashOffset=Undefined, tickExtra=Undefined, tickMinStep=Undefined, tickOffset=Undefined, tickOpacity=Undefined, tickRound=Undefined, tickSize=Undefined, tickWidth=Undefined, ticks=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, titleOpacity=Undefined, titlePadding=Undefined, titleX=Undefined, titleY=Undefined, translate=Undefined, values=Undefined, zindex=Undefined, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def axis(self, _: None, **kwds) -> 'YDatum': - ... - - def bandPosition(self, _: float, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, frame=Undefined, keyvals=Undefined, method=Undefined, value=Undefined, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def impute(self, _: None, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: None, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def stack(self, _: bool, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'YDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'YDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'YDatum': - ... - - - def __init__(self, datum, axis=Undefined, bandPosition=Undefined, impute=Undefined, scale=Undefined, - stack=Undefined, title=Undefined, type=Undefined, **kwds): - super(YDatum, self).__init__(datum=datum, axis=axis, bandPosition=bandPosition, impute=impute, - scale=scale, stack=stack, title=title, type=type, **kwds) + @overload + def axis( + self, + aria: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + bandPosition: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + domain: Union[bool, UndefinedType] = Undefined, + domainCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + domainDash: Union[ + Union[Sequence[float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + domainDashOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainWidth: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + format: Union[Union[Union[core.Dict, dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + grid: Union[bool, UndefinedType] = Undefined, + gridCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + gridDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + gridWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ConditionalAxisLabelAlign, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ConditionalAxisLabelBaseline, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelBound: Union[ + Union[Union[bool, float], Union[core.ExprRef, core._Parameter, dict]], + UndefinedType, + ] = Undefined, + labelColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFlush: Union[Union[bool, float], UndefinedType] = Undefined, + labelFlushOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelFont: Union[ + Union[ + Union[core.ConditionalAxisString, dict], + Union[core.ExprRef, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + labelFontSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union[core.ConditionalAxisLabelFontStyle, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.FontStyle, str], + ], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union[ + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + core.FontWeight, + ], + Union[core.ConditionalAxisLabelFontWeight, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOverlap: Union[ + Union[ + Union[bool, core.LabelOverlap, str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + labelSeparation: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + maxExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + minExtent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union[Literal["top", "bottom", "left", "right"], core.AxisOrient], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + position: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tickBand: Union[ + Union[ + Literal["center", "extent"], Union[core.ExprRef, core._Parameter, dict] + ], + UndefinedType, + ] = Undefined, + tickCap: Union[ + Union[ + Union[Literal["butt", "round", "square"], core.StrokeCap], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickColor: Union[ + 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[core.ConditionalAxisColor, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickDash: Union[ + Union[ + Sequence[float], + Union[core.ConditionalAxisNumberArray, dict], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + tickDashOffset: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickExtra: Union[bool, UndefinedType] = Undefined, + tickMinStep: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOffset: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + tickOpacity: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickRound: Union[bool, UndefinedType] = Undefined, + tickSize: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + tickWidth: Union[ + Union[ + Union[core.ConditionalAxisNumber, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + ticks: Union[bool, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union[Literal["left", "center", "right"], core.Align], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union[Literal[None, "start", "middle", "end"], core.TitleAnchor], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleAngle: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleBaseline: Union[ + Union[ + Union[ + Union[Literal["top", "middle", "bottom"], core.Baseline], + core.TextBaseline, + str, + ], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + 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[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[ + Union[core.ExprRef, core._Parameter, dict], Union[core.FontStyle, str] + ], + UndefinedType, + ] = Undefined, + titleFontWeight: 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, + titleLimit: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleX: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + titleY: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + values: Union[ + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union[core.ExprRef, core._Parameter, dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ) -> "YDatum": + ... + + @overload + def axis(self, _: None, **kwds) -> "YDatum": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "YDatum": + ... + + @overload + def impute( + self, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + keyvals: Union[ + Union[Sequence[Any], Union[core.ImputeSequence, dict]], UndefinedType + ] = Undefined, + method: Union[ + Union[Literal["value", "median", "max", "min", "mean"], core.ImputeMethod], + UndefinedType, + ] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ) -> "YDatum": + ... + + @overload + def impute(self, _: None, **kwds) -> "YDatum": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "YDatum": + ... + + @overload + def scale(self, _: None, **kwds) -> "YDatum": + ... + + @overload + def stack(self, _: Literal["zero", "center", "normalize"], **kwds) -> "YDatum": + ... + + @overload + def stack(self, _: None, **kwds) -> "YDatum": + ... + + @overload + def stack(self, _: bool, **kwds) -> "YDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "YDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "YDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "YDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "YDatum": + ... + + def __init__( + self, + datum, + axis: Union[Union[None, Union[core.Axis, dict]], UndefinedType] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + impute: Union[ + Union[None, Union[core.ImputeParams, dict]], UndefinedType + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + stack: Union[ + Union[ + None, + Union[Literal["zero", "center", "normalize"], core.StackOffset], + bool, + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(YDatum, self).__init__( + datum=datum, + axis=axis, + bandPosition=bandPosition, + impute=impute, + scale=scale, + stack=stack, + title=title, + type=type, + **kwds, + ) @with_property_setters class YValue(ValueChannelMixin, core.PositionValueDef): """YValue schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "y" - - def __init__(self, value, **kwds): super(YValue, self).__init__(value=value, **kwds) @@ -16401,16 +85663,16 @@ def __init__(self, value, **kwds): class Y2(FieldChannelMixin, core.SecondaryFieldDef): """Y2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -16443,7 +85705,7 @@ class Y2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -16458,7 +85720,7 @@ class Y2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -16467,7 +85729,7 @@ class Y2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -16488,87 +85750,592 @@ class Y2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "y2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'Y2': - ... - - def bandPosition(self, _: float, **kwds) -> 'Y2': - ... - - def bin(self, _: None, **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Y2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Y2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(Y2, self).__init__(shorthand=shorthand, aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, timeUnit=timeUnit, title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Y2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "Y2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "Y2": + ... + + @overload + def bin(self, _: None, **kwds) -> "Y2": + ... + + @overload + def field(self, _: str, **kwds) -> "Y2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "Y2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "Y2": + ... + + @overload + def title(self, _: str, **kwds) -> "Y2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "Y2": + ... + + @overload + def title(self, _: None, **kwds) -> "Y2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(Y2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class Y2Datum(DatumChannelMixin, core.DatumDef): """Y2Datum schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -16577,9 +86344,9 @@ class Y2Datum(DatumChannelMixin, core.DatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -16599,7 +86366,7 @@ class Y2Datum(DatumChannelMixin, core.DatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -16669,54 +86436,75 @@ class Y2Datum(DatumChannelMixin, core.DatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "y2" - def bandPosition(self, _: float, **kwds) -> 'Y2Datum': + @overload + def bandPosition(self, _: float, **kwds) -> "Y2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'Y2Datum': + @overload + def title(self, _: str, **kwds) -> "Y2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'Y2Datum': + @overload + def title(self, _: List[str], **kwds) -> "Y2Datum": ... - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'Y2Datum': + @overload + def title(self, _: None, **kwds) -> "Y2Datum": ... - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'Y2Datum': + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "Y2Datum": ... - - def __init__(self, datum, bandPosition=Undefined, title=Undefined, type=Undefined, **kwds): - super(Y2Datum, self).__init__(datum=datum, bandPosition=bandPosition, title=title, type=type, - **kwds) + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Y2Datum, self).__init__( + datum=datum, bandPosition=bandPosition, title=title, type=type, **kwds + ) @with_property_setters class Y2Value(ValueChannelMixin, core.PositionValueDef): """Y2Value schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "y2" - - def __init__(self, value, **kwds): super(Y2Value, self).__init__(value=value, **kwds) @@ -16725,16 +86513,16 @@ def __init__(self, value, **kwds): class YError(FieldChannelMixin, core.SecondaryFieldDef): """YError schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -16767,7 +86555,7 @@ class YError(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -16782,7 +86570,7 @@ class YError(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -16791,7 +86579,7 @@ class YError(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -16812,88 +86600,592 @@ class YError(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "yError" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'YError': - ... - - def bandPosition(self, _: float, **kwds) -> 'YError': - ... - - def bin(self, _: None, **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'YError': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'YError': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(YError, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, timeUnit=timeUnit, - title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "YError": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "YError": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "YError": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "YError": + ... + + @overload + def bin(self, _: None, **kwds) -> "YError": + ... + + @overload + def field(self, _: str, **kwds) -> "YError": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "YError": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "YError": + ... + + @overload + def title(self, _: str, **kwds) -> "YError": + ... + + @overload + def title(self, _: List[str], **kwds) -> "YError": + ... + + @overload + def title(self, _: None, **kwds) -> "YError": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(YError, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class YErrorValue(ValueChannelMixin, core.ValueDefnumber): """YErrorValue schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -16905,11 +87197,10 @@ class YErrorValue(ValueChannelMixin, core.ValueDefnumber): definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "yError" - - def __init__(self, value, **kwds): super(YErrorValue, self).__init__(value=value, **kwds) @@ -16918,16 +87209,16 @@ def __init__(self, value, **kwds): class YError2(FieldChannelMixin, core.SecondaryFieldDef): """YError2 schema wrapper - Mapping(required=[shorthand]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -16960,7 +87251,7 @@ class YError2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -16975,7 +87266,7 @@ class YError2(FieldChannelMixin, core.SecondaryFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -16984,7 +87275,7 @@ class YError2(FieldChannelMixin, core.SecondaryFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -17005,88 +87296,592 @@ class YError2(FieldChannelMixin, core.SecondaryFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ + _class_is_valid_at_instantiation = False _encoding_name = "yError2" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'YError2': - ... - - def bandPosition(self, _: float, **kwds) -> 'YError2': - ... - - def bin(self, _: None, **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'YError2': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'YError2': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, timeUnit=Undefined, title=Undefined, **kwds): - super(YError2, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, - timeUnit=timeUnit, title=title, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "YError2": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "YError2": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "YError2": + ... + + @overload + def bin(self, _: None, **kwds) -> "YError2": + ... + + @overload + def field(self, _: str, **kwds) -> "YError2": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "YError2": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "YError2": + ... + + @overload + def title(self, _: str, **kwds) -> "YError2": + ... + + @overload + def title(self, _: List[str], **kwds) -> "YError2": + ... + + @overload + def title(self, _: None, **kwds) -> "YError2": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(YError2, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) @with_property_setters class YError2Value(ValueChannelMixin, core.ValueDefnumber): """YError2Value schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -17098,11 +87893,10 @@ class YError2Value(ValueChannelMixin, core.ValueDefnumber): definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "yError2" - - def __init__(self, value, **kwds): super(YError2Value, self).__init__(value=value, **kwds) @@ -17111,14 +87905,14 @@ def __init__(self, value, **kwds): class YOffset(FieldChannelMixin, core.ScaleFieldDef): """YOffset schema wrapper - Mapping(required=[shorthand]) + :class:`ScaleFieldDef`, Dict[required=[shorthand]] Parameters ---------- - shorthand : string + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str shorthand for field, aggregate, and type - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -17130,7 +87924,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -17151,7 +87945,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -17166,7 +87960,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -17179,7 +87973,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -17218,7 +88012,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -17227,7 +88021,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -17247,7 +88041,7 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -17317,149 +88111,1383 @@ class YOffset(FieldChannelMixin, core.ScaleFieldDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "yOffset" - @overload # type: ignore[no-overload-impl] - def aggregate(self, _: Literal["average", "count", "distinct", "max", "mean", "median", "min", "missing", "product", "q1", "q3", "ci0", "ci1", "stderr", "stdev", "stdevp", "sum", "valid", "values", "variance", "variancep"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmax=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def aggregate(self, argmin=Undefined, **kwds) -> 'YOffset': - ... - - def bandPosition(self, _: float, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: bool, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, steps=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def bin(self, _: None, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, _: str, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def field(self, repeat=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[float], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[str], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[bool], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: List[core.DateTime], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["ascending", "descending"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["x", "y", "color", "fill", "stroke", "strokeWidth", "size", "shape", "fillOpacity", "strokeOpacity", "opacity", "text"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: Literal["-x", "-y", "-color", "-fill", "-stroke", "-strokeWidth", "-size", "-shape", "-fillOpacity", "-strokeOpacity", "-opacity", "-text"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, field=Undefined, op=Undefined, order=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, encoding=Undefined, order=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def sort(self, _: None, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["year", "quarter", "month", "week", "day", "dayofyear", "date", "hours", "minutes", "seconds", "milliseconds"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyear", "utcquarter", "utcmonth", "utcweek", "utcday", "utcdayofyear", "utcdate", "utchours", "utcminutes", "utcseconds", "utcmilliseconds"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["yearquarter", "yearquartermonth", "yearmonth", "yearmonthdate", "yearmonthdatehours", "yearmonthdatehoursminutes", "yearmonthdatehoursminutesseconds", "yearweek", "yearweekday", "yearweekdayhours", "yearweekdayhoursminutes", "yearweekdayhoursminutesseconds", "yeardayofyear", "quartermonth", "monthdate", "monthdatehours", "monthdatehoursminutes", "monthdatehoursminutesseconds", "weekday", "weeksdayhours", "weekdayhoursminutes", "weekdayhoursminutesseconds", "dayhours", "dayhoursminutes", "dayhoursminutesseconds", "hoursminutes", "hoursminutesseconds", "minutesseconds", "secondsmilliseconds"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["utcyearquarter", "utcyearquartermonth", "utcyearmonth", "utcyearmonthdate", "utcyearmonthdatehours", "utcyearmonthdatehoursminutes", "utcyearmonthdatehoursminutesseconds", "utcyearweek", "utcyearweekday", "utcyearweekdayhours", "utcyearweekdayhoursminutes", "utcyearweekdayhoursminutesseconds", "utcyeardayofyear", "utcquartermonth", "utcmonthdate", "utcmonthdatehours", "utcmonthdatehoursminutes", "utcmonthdatehoursminutesseconds", "utcweekday", "utcweeksdayhours", "utcweekdayhoursminutes", "utcweekdayhoursminutesseconds", "utcdayhours", "utcdayhoursminutes", "utcdayhoursminutesseconds", "utchoursminutes", "utchoursminutesseconds", "utcminutesseconds", "utcsecondsmilliseconds"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedyear", "binnedyearquarter", "binnedyearquartermonth", "binnedyearmonth", "binnedyearmonthdate", "binnedyearmonthdatehours", "binnedyearmonthdatehoursminutes", "binnedyearmonthdatehoursminutesseconds", "binnedyearweek", "binnedyearweekday", "binnedyearweekdayhours", "binnedyearweekdayhoursminutes", "binnedyearweekdayhoursminutesseconds", "binnedyeardayofyear"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, _: Literal["binnedutcyear", "binnedutcyearquarter", "binnedutcyearquartermonth", "binnedutcyearmonth", "binnedutcyearmonthdate", "binnedutcyearmonthdatehours", "binnedutcyearmonthdatehoursminutes", "binnedutcyearmonthdatehoursminutesseconds", "binnedutcyearweek", "binnedutcyearweekday", "binnedutcyearweekdayhours", "binnedutcyearweekdayhoursminutes", "binnedutcyearweekdayhoursminutesseconds", "binnedutcyeardayofyear"], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def timeUnit(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'YOffset': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'YOffset': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds) -> 'YOffset': - ... - - - def __init__(self, shorthand=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, - type=Undefined, **kwds): - super(YOffset, self).__init__(shorthand=shorthand, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, field=field, scale=scale, - sort=sort, timeUnit=timeUnit, title=title, type=type, **kwds) + @overload + def aggregate( + self, + _: Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def aggregate( + self, + argmax: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def aggregate( + self, + argmin: Union[Union[core.FieldName, str], UndefinedType] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def bandPosition(self, _: float, **kwds) -> "YOffset": + ... + + @overload + def bin(self, _: bool, **kwds) -> "YOffset": + ... + + @overload + def bin( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + Sequence[float], + Union[core.ParameterExtent, core._Parameter, dict], + core.BinExtent, + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def bin(self, _: None, **kwds) -> "YOffset": + ... + + @overload + def field(self, _: str, **kwds) -> "YOffset": + ... + + @overload + def field( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def scale(self, _: None, **kwds) -> "YOffset": + ... + + @overload + def sort(self, _: List[float], **kwds) -> "YOffset": + ... + + @overload + def sort(self, _: List[str], **kwds) -> "YOffset": + ... + + @overload + def sort(self, _: List[bool], **kwds) -> "YOffset": + ... + + @overload + def sort(self, _: List[core.DateTime], **kwds) -> "YOffset": + ... + + @overload + def sort(self, _: Literal["ascending", "descending"], **kwds) -> "YOffset": + ... + + @overload + def sort( + self, + _: Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def sort( + self, + _: Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def sort( + self, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def sort( + self, + encoding: Union[ + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union[Literal["ascending", "descending"], core.SortOrder]], + UndefinedType, + ] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def sort(self, _: None, **kwds) -> "YOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def timeUnit( + self, + _: Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + **kwds, + ) -> "YOffset": + ... + + @overload + def timeUnit( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ) -> "YOffset": + ... + + @overload + def title(self, _: str, **kwds) -> "YOffset": + ... + + @overload + def title(self, _: List[str], **kwds) -> "YOffset": + ... + + @overload + def title(self, _: None, **kwds) -> "YOffset": + ... + + @overload + def type( + self, _: Literal["quantitative", "ordinal", "temporal", "nominal"], **kwds + ) -> "YOffset": + ... + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union[core.RepeatRef, dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + Union[ + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + core.NonArgAggregateOp, + ], + Union[core.ArgmaxDef, dict], + Union[core.ArgminDef, dict], + core.Aggregate, + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union[core.BinParams, dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union[Union[core.FieldName, str], Union[core.RepeatRef, dict], core.Field], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union[ + Sequence[Union[core.DateTime, dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + core.SortArray, + ], + Union[ + Union[ + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + core.SortByChannelDesc, + ], + Union[Literal["ascending", "descending"], core.SortOrder], + Union[ + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + core.SortByChannel, + ], + core.AllSortString, + ], + Union[core.EncodingSortField, dict], + Union[core.SortByEncoding, dict], + core.Sort, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + core.BinnedTimeUnit, + ], + Union[ + Union[ + Union[ + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + core.UtcSingleTimeUnit, + ], + Union[ + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + core.LocalSingleTimeUnit, + ], + core.SingleTimeUnit, + ], + Union[ + Union[ + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + core.UtcMultiTimeUnit, + ], + Union[ + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + core.LocalMultiTimeUnit, + ], + core.MultiTimeUnit, + ], + core.TimeUnit, + ], + Union[core.TimeUnitParams, dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal"], + core.StandardType, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(YOffset, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) @with_property_setters class YOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): """YOffsetDatum schema wrapper - Mapping(required=[]) + :class:`ScaleDatumDef`, Dict Parameters ---------- @@ -17468,9 +89496,9 @@ class YOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -17483,7 +89511,7 @@ class YOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): **See also:** `scale `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -17503,7 +89531,7 @@ class YOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -17573,47 +89601,615 @@ class YOffsetDatum(DatumChannelMixin, core.ScaleDatumDef): **See also:** `type `__ documentation. """ + _class_is_valid_at_instantiation = False _encoding_name = "yOffset" - def bandPosition(self, _: float, **kwds) -> 'YOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds) -> 'YOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def scale(self, _: None, **kwds) -> 'YOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: str, **kwds) -> 'YOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: List[str], **kwds) -> 'YOffsetDatum': - ... - - @overload # type: ignore[no-overload-impl] - def title(self, _: None, **kwds) -> 'YOffsetDatum': - ... - - def type(self, _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], **kwds) -> 'YOffsetDatum': - ... - - - def __init__(self, datum, bandPosition=Undefined, scale=Undefined, title=Undefined, type=Undefined, - **kwds): - super(YOffsetDatum, self).__init__(datum=datum, bandPosition=bandPosition, scale=scale, - title=title, type=type, **kwds) + @overload + def bandPosition(self, _: float, **kwds) -> "YOffsetDatum": + ... + + @overload + def scale( + self, + align: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union[Sequence[float], Union[core.ScaleBinParams, dict], core.ScaleBins], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + bool, + float, + str, + ] + ], + Union[core.DomainUnionWith, dict], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ParameterExtent, core._Parameter, dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[ + Union[core.DateTime, dict], + Union[core.ExprRef, core._Parameter, dict], + float, + ], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union[core.ExprRef, core._Parameter, dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union[ + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + core.ScaleInterpolateEnum, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.ScaleInterpolateParams, dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union[ + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + core.TimeInterval, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.TimeIntervalStep, dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union[core.ExprRef, core._Parameter, dict], + float, + str, + ] + ], + Union[ + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + core.RangeEnum, + ], + Union[core.FieldRange, dict], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + Union[ + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + core.Categorical, + ], + Union[ + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + core.Diverging, + ], + Union[ + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + core.SequentialSingleHue, + ], + Union[Literal["rainbow", "sinebow"], core.Cyclical], + Union[ + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + core.SequentialMultiHue, + ], + core.ColorScheme, + ], + Union[core.ExprRef, core._Parameter, dict], + Union[core.SchemeParams, dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + core.ScaleType, + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union[core.ExprRef, core._Parameter, dict], bool], UndefinedType + ] = Undefined, + **kwds, + ) -> "YOffsetDatum": + ... + + @overload + def scale(self, _: None, **kwds) -> "YOffsetDatum": + ... + + @overload + def title(self, _: str, **kwds) -> "YOffsetDatum": + ... + + @overload + def title(self, _: List[str], **kwds) -> "YOffsetDatum": + ... + + @overload + def title(self, _: None, **kwds) -> "YOffsetDatum": + ... + + @overload + def type( + self, + _: Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + **kwds, + ) -> "YOffsetDatum": + ... + + def __init__( + self, + datum, + bandPosition: Union[float, UndefinedType] = Undefined, + scale: Union[Union[None, Union[core.Scale, dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union[Sequence[str], core.Text, str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + core.Type, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(YOffsetDatum, self).__init__( + datum=datum, + bandPosition=bandPosition, + scale=scale, + title=title, + type=type, + **kwds, + ) @with_property_setters class YOffsetValue(ValueChannelMixin, core.ValueDefnumber): """YOffsetValue schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -17625,10 +90221,284 @@ class YOffsetValue(ValueChannelMixin, core.ValueDefnumber): definition `__ for color, values between ``0`` to ``1`` for opacity). """ + _class_is_valid_at_instantiation = False _encoding_name = "yOffset" - - def __init__(self, value, **kwds): super(YOffsetValue, self).__init__(value=value, **kwds) + + +def _encode_signature( + self, + angle: Union[str, Angle, dict, AngleDatum, AngleValue, UndefinedType] = Undefined, + color: Union[str, Color, dict, ColorDatum, ColorValue, UndefinedType] = Undefined, + column: Union[str, Column, dict, UndefinedType] = Undefined, + description: Union[ + str, Description, dict, DescriptionValue, UndefinedType + ] = Undefined, + detail: Union[str, Detail, dict, list, UndefinedType] = Undefined, + facet: Union[str, Facet, dict, UndefinedType] = Undefined, + fill: Union[str, Fill, dict, FillDatum, FillValue, UndefinedType] = Undefined, + fillOpacity: Union[ + str, FillOpacity, dict, FillOpacityDatum, FillOpacityValue, UndefinedType + ] = Undefined, + href: Union[str, Href, dict, HrefValue, UndefinedType] = Undefined, + key: Union[str, Key, dict, UndefinedType] = Undefined, + latitude: Union[str, Latitude, dict, LatitudeDatum, UndefinedType] = Undefined, + latitude2: Union[ + str, Latitude2, dict, Latitude2Datum, Latitude2Value, UndefinedType + ] = Undefined, + longitude: Union[str, Longitude, dict, LongitudeDatum, UndefinedType] = Undefined, + longitude2: Union[ + str, Longitude2, dict, Longitude2Datum, Longitude2Value, UndefinedType + ] = Undefined, + opacity: Union[ + str, Opacity, dict, OpacityDatum, OpacityValue, UndefinedType + ] = Undefined, + order: Union[str, Order, dict, list, OrderValue, UndefinedType] = Undefined, + radius: Union[ + str, Radius, dict, RadiusDatum, RadiusValue, UndefinedType + ] = Undefined, + radius2: Union[ + str, Radius2, dict, Radius2Datum, Radius2Value, UndefinedType + ] = Undefined, + row: Union[str, Row, dict, UndefinedType] = Undefined, + shape: Union[str, Shape, dict, ShapeDatum, ShapeValue, UndefinedType] = Undefined, + size: Union[str, Size, dict, SizeDatum, SizeValue, UndefinedType] = Undefined, + stroke: Union[ + str, Stroke, dict, StrokeDatum, StrokeValue, UndefinedType + ] = Undefined, + strokeDash: Union[ + str, StrokeDash, dict, StrokeDashDatum, StrokeDashValue, UndefinedType + ] = Undefined, + strokeOpacity: Union[ + str, StrokeOpacity, dict, StrokeOpacityDatum, StrokeOpacityValue, UndefinedType + ] = Undefined, + strokeWidth: Union[ + str, StrokeWidth, dict, StrokeWidthDatum, StrokeWidthValue, UndefinedType + ] = Undefined, + text: Union[str, Text, dict, TextDatum, TextValue, UndefinedType] = Undefined, + theta: Union[str, Theta, dict, ThetaDatum, ThetaValue, UndefinedType] = Undefined, + theta2: Union[ + str, Theta2, dict, Theta2Datum, Theta2Value, UndefinedType + ] = Undefined, + tooltip: Union[str, Tooltip, dict, list, TooltipValue, UndefinedType] = Undefined, + url: Union[str, Url, dict, UrlValue, UndefinedType] = Undefined, + x: Union[str, X, dict, XDatum, XValue, UndefinedType] = Undefined, + x2: Union[str, X2, dict, X2Datum, X2Value, UndefinedType] = Undefined, + xError: Union[str, XError, dict, XErrorValue, UndefinedType] = Undefined, + xError2: Union[str, XError2, dict, XError2Value, UndefinedType] = Undefined, + xOffset: Union[ + str, XOffset, dict, XOffsetDatum, XOffsetValue, UndefinedType + ] = Undefined, + y: Union[str, Y, dict, YDatum, YValue, UndefinedType] = Undefined, + y2: Union[str, Y2, dict, Y2Datum, Y2Value, UndefinedType] = Undefined, + yError: Union[str, YError, dict, YErrorValue, UndefinedType] = Undefined, + yError2: Union[str, YError2, dict, YError2Value, UndefinedType] = Undefined, + yOffset: Union[ + str, YOffset, dict, YOffsetDatum, YOffsetValue, UndefinedType + ] = Undefined, +): + """Parameters + ---------- + + angle : str, :class:`Angle`, Dict, :class:`AngleDatum`, :class:`AngleValue` + Rotation angle of point and text marks. + color : str, :class:`Color`, Dict, :class:`ColorDatum`, :class:`ColorValue` + Color of the marks – either fill or stroke color based on the ``filled`` property + of mark definition. By default, ``color`` represents fill color for ``"area"``, + ``"bar"``, ``"tick"``, ``"text"``, ``"trail"``, ``"circle"``, and ``"square"`` / + stroke color for ``"line"`` and ``"point"``. + + **Default value:** If undefined, the default color depends on `mark config + `__ 's ``color`` + property. + + *Note:* 1) For fine-grained control over both fill and stroke colors of the marks, + please use the ``fill`` and ``stroke`` channels. The ``fill`` or ``stroke`` + encodings have higher precedence than ``color``, thus may override the ``color`` + encoding if conflicting encodings are specified. 2) See the scale documentation for + more information about customizing `color scheme + `__. + column : str, :class:`Column`, Dict + A field definition for the horizontal facet of trellis plots. + description : str, :class:`Description`, Dict, :class:`DescriptionValue` + A text description of this mark for ARIA accessibility (SVG output only). For SVG + output the ``"aria-label"`` attribute will be set to this description. + detail : str, :class:`Detail`, Dict, List + Additional levels of detail for grouping data in aggregate views and in line, trail, + and area marks without mapping data to a specific visual channel. + facet : str, :class:`Facet`, Dict + A field definition for the (flexible) facet of trellis plots. + + If either ``row`` or ``column`` is specified, this channel will be ignored. + fill : str, :class:`Fill`, Dict, :class:`FillDatum`, :class:`FillValue` + Fill color of the marks. **Default value:** If undefined, the default color depends + on `mark config `__ + 's ``color`` property. + + *Note:* The ``fill`` encoding has higher precedence than ``color``, thus may + override the ``color`` encoding if conflicting encodings are specified. + fillOpacity : str, :class:`FillOpacity`, Dict, :class:`FillOpacityDatum`, :class:`FillOpacityValue` + Fill opacity of the marks. + + **Default value:** If undefined, the default opacity depends on `mark config + `__ 's + ``fillOpacity`` property. + href : str, :class:`Href`, Dict, :class:`HrefValue` + A URL to load upon mouse click. + key : str, :class:`Key`, Dict + A data field to use as a unique key for data binding. When a visualization’s data is + updated, the key value will be used to match data elements to existing mark + instances. Use a key channel to enable object constancy for transitions over dynamic + data. + latitude : str, :class:`Latitude`, Dict, :class:`LatitudeDatum` + Latitude position of geographically projected marks. + latitude2 : str, :class:`Latitude2`, Dict, :class:`Latitude2Datum`, :class:`Latitude2Value` + Latitude-2 position for geographically projected ranged ``"area"``, ``"bar"``, + ``"rect"``, and ``"rule"``. + longitude : str, :class:`Longitude`, Dict, :class:`LongitudeDatum` + Longitude position of geographically projected marks. + longitude2 : str, :class:`Longitude2`, Dict, :class:`Longitude2Datum`, :class:`Longitude2Value` + Longitude-2 position for geographically projected ranged ``"area"``, ``"bar"``, + ``"rect"``, and ``"rule"``. + opacity : str, :class:`Opacity`, Dict, :class:`OpacityDatum`, :class:`OpacityValue` + Opacity of the marks. + + **Default value:** If undefined, the default opacity depends on `mark config + `__ 's ``opacity`` + property. + order : str, :class:`Order`, Dict, List, :class:`OrderValue` + Order of the marks. + + + * For stacked marks, this ``order`` channel encodes `stack order + `__. + * For line and trail marks, this ``order`` channel encodes order of data points in + the lines. This can be useful for creating `a connected scatterplot + `__. Setting + ``order`` to ``{"value": null}`` makes the line marks use the original order in + the data sources. + * Otherwise, this ``order`` channel encodes layer order of the marks. + + **Note** : In aggregate plots, ``order`` field should be ``aggregate`` d to avoid + creating additional aggregation grouping. + radius : str, :class:`Radius`, Dict, :class:`RadiusDatum`, :class:`RadiusValue` + The outer radius in pixels of arc marks. + radius2 : str, :class:`Radius2`, Dict, :class:`Radius2Datum`, :class:`Radius2Value` + The inner radius in pixels of arc marks. + row : str, :class:`Row`, Dict + A field definition for the vertical facet of trellis plots. + shape : str, :class:`Shape`, Dict, :class:`ShapeDatum`, :class:`ShapeValue` + Shape of the mark. + + + #. + For ``point`` marks the supported values include: - plotting shapes: ``"circle"``, + ``"square"``, ``"cross"``, ``"diamond"``, ``"triangle-up"``, ``"triangle-down"``, + ``"triangle-right"``, or ``"triangle-left"``. - the line symbol ``"stroke"`` - + centered directional shapes ``"arrow"``, ``"wedge"``, or ``"triangle"`` - a custom + `SVG path string + `__ (For correct + sizing, custom shape paths should be defined within a square bounding box with + coordinates ranging from -1 to 1 along both the x and y dimensions.) + + #. + For ``geoshape`` marks it should be a field definition of the geojson data + + **Default value:** If undefined, the default shape depends on `mark config + `__ 's ``shape`` + property. ( ``"circle"`` if unset.) + size : str, :class:`Size`, Dict, :class:`SizeDatum`, :class:`SizeValue` + Size of the mark. + + + * For ``"point"``, ``"square"`` and ``"circle"``, – the symbol size, or pixel area + of the mark. + * For ``"bar"`` and ``"tick"`` – the bar and tick's size. + * For ``"text"`` – the text's font size. + * Size is unsupported for ``"line"``, ``"area"``, and ``"rect"``. (Use ``"trail"`` + instead of line with varying size) + stroke : str, :class:`Stroke`, Dict, :class:`StrokeDatum`, :class:`StrokeValue` + Stroke color of the marks. **Default value:** If undefined, the default color + depends on `mark config + `__ 's ``color`` + property. + + *Note:* The ``stroke`` encoding has higher precedence than ``color``, thus may + override the ``color`` encoding if conflicting encodings are specified. + strokeDash : str, :class:`StrokeDash`, Dict, :class:`StrokeDashDatum`, :class:`StrokeDashValue` + Stroke dash of the marks. + + **Default value:** ``[1,0]`` (No dash). + strokeOpacity : str, :class:`StrokeOpacity`, Dict, :class:`StrokeOpacityDatum`, :class:`StrokeOpacityValue` + Stroke opacity of the marks. + + **Default value:** If undefined, the default opacity depends on `mark config + `__ 's + ``strokeOpacity`` property. + strokeWidth : str, :class:`StrokeWidth`, Dict, :class:`StrokeWidthDatum`, :class:`StrokeWidthValue` + Stroke width of the marks. + + **Default value:** If undefined, the default stroke width depends on `mark config + `__ 's + ``strokeWidth`` property. + text : str, :class:`Text`, Dict, :class:`TextDatum`, :class:`TextValue` + Text of the ``text`` mark. + theta : str, :class:`Theta`, Dict, :class:`ThetaDatum`, :class:`ThetaValue` + For arc marks, the arc length in radians if theta2 is not specified, otherwise the + start arc angle. (A value of 0 indicates up or “north”, increasing values proceed + clockwise.) + + For text marks, polar coordinate angle in radians. + theta2 : str, :class:`Theta2`, Dict, :class:`Theta2Datum`, :class:`Theta2Value` + The end angle of arc marks in radians. A value of 0 indicates up or “north”, + increasing values proceed clockwise. + tooltip : str, :class:`Tooltip`, Dict, List, :class:`TooltipValue` + The tooltip text to show upon mouse hover. Specifying ``tooltip`` encoding overrides + `the tooltip property in the mark definition + `__. + + See the `tooltip `__ + documentation for a detailed discussion about tooltip in Vega-Lite. + url : str, :class:`Url`, Dict, :class:`UrlValue` + The URL of an image mark. + x : str, :class:`X`, Dict, :class:`XDatum`, :class:`XValue` + X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without + specified ``x2`` or ``width``. + + The ``value`` of this channel can be a number or a string ``"width"`` for the width + of the plot. + x2 : str, :class:`X2`, Dict, :class:`X2Datum`, :class:`X2Value` + X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. + + The ``value`` of this channel can be a number or a string ``"width"`` for the width + of the plot. + xError : str, :class:`XError`, Dict, :class:`XErrorValue` + Error value of x coordinates for error specified ``"errorbar"`` and ``"errorband"``. + xError2 : str, :class:`XError2`, Dict, :class:`XError2Value` + Secondary error value of x coordinates for error specified ``"errorbar"`` and + ``"errorband"``. + xOffset : str, :class:`XOffset`, Dict, :class:`XOffsetDatum`, :class:`XOffsetValue` + Offset of x-position of the marks + y : str, :class:`Y`, Dict, :class:`YDatum`, :class:`YValue` + Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without + specified ``y2`` or ``height``. + + The ``value`` of this channel can be a number or a string ``"height"`` for the + height of the plot. + y2 : str, :class:`Y2`, Dict, :class:`Y2Datum`, :class:`Y2Value` + Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. + + The ``value`` of this channel can be a number or a string ``"height"`` for the + height of the plot. + yError : str, :class:`YError`, Dict, :class:`YErrorValue` + Error value of y coordinates for error specified ``"errorbar"`` and ``"errorband"``. + yError2 : str, :class:`YError2`, Dict, :class:`YError2Value` + Secondary error value of y coordinates for error specified ``"errorbar"`` and + ``"errorband"``. + yOffset : str, :class:`YOffset`, Dict, :class:`YOffsetDatum`, :class:`YOffsetValue` + Offset of y-position of the marks + """ + ... diff --git a/altair/vegalite/v5/schema/core.py b/altair/vegalite/v5/schema/core.py index 3d12e0858..27532c7ff 100644 --- a/altair/vegalite/v5/schema/core.py +++ b/altair/vegalite/v5/schema/core.py @@ -1,32 +1,63 @@ # The contents of this file are automatically written by # tools/generate_schema_wrapper.py. Do not modify directly. +from typing import Any, Literal, Union, Protocol, Sequence, List +from typing import Dict as TypingDict +from typing import Generator as TypingGenerator from altair.utils.schemapi import SchemaBase, Undefined, UndefinedType, _subclasses import pkgutil import json -def load_schema(): + +def load_schema() -> dict: """Load the json schema associated with this module's functions""" - return json.loads(pkgutil.get_data(__name__, 'vega-lite-schema.json').decode('utf-8')) + schema_bytes = pkgutil.get_data(__name__, "vega-lite-schema.json") + if schema_bytes is None: + raise ValueError("Unable to load vega-lite-schema.json") + return json.loads(schema_bytes.decode("utf-8")) + + +class _Parameter(Protocol): + # This protocol represents a Parameter as defined in api.py + # It would be better if we could directly use the Parameter class, + # but that would create a circular import. + # The protocol does not need to have all the attributes and methods of this + # class but the actual api.Parameter just needs to pass a type check + # as a core._Parameter. + + _counter: int + + def _get_name(cls) -> str: + ... + + def to_dict(self) -> TypingDict[str, Union[str, dict]]: + ... + + def _to_expr(self) -> str: + ... class VegaLiteSchema(SchemaBase): _rootschema = load_schema() + @classmethod - def _default_wrapper_classes(cls): + def _default_wrapper_classes(cls) -> TypingGenerator[type, None, None]: return _subclasses(VegaLiteSchema) class Root(VegaLiteSchema): """Root schema wrapper - anyOf(:class:`TopLevelUnitSpec`, :class:`TopLevelFacetSpec`, :class:`TopLevelLayerSpec`, - :class:`TopLevelRepeatSpec`, :class:`TopLevelConcatSpec`, :class:`TopLevelVConcatSpec`, - :class:`TopLevelHConcatSpec`) + :class:`TopLevelConcatSpec`, Dict[required=[concat]], :class:`TopLevelFacetSpec`, + Dict[required=[data, facet, spec]], :class:`TopLevelHConcatSpec`, Dict[required=[hconcat]], + :class:`TopLevelLayerSpec`, Dict[required=[layer]], :class:`TopLevelRepeatSpec`, + Dict[required=[repeat, spec]], :class:`TopLevelSpec`, :class:`TopLevelUnitSpec`, + Dict[required=[data, mark]], :class:`TopLevelVConcatSpec`, Dict[required=[vconcat]] A Vega-Lite top-level specification. This is the root class for all Vega-Lite specifications. (The json schema is generated from this type.) """ + _schema = VegaLiteSchema._rootschema def __init__(self, *args, **kwds): @@ -36,9 +67,13 @@ def __init__(self, *args, **kwds): class Aggregate(VegaLiteSchema): """Aggregate schema wrapper - anyOf(:class:`NonArgAggregateOp`, :class:`ArgmaxDef`, :class:`ArgminDef`) + :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, + Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', + 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', + 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] """ - _schema = {'$ref': '#/definitions/Aggregate'} + + _schema = {"$ref": "#/definitions/Aggregate"} def __init__(self, *args, **kwds): super(Aggregate, self).__init__(*args, **kwds) @@ -47,11 +82,12 @@ def __init__(self, *args, **kwds): class AggregateOp(VegaLiteSchema): """AggregateOp schema wrapper - enum('argmax', 'argmin', 'average', 'count', 'distinct', 'max', 'mean', 'median', 'min', - 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', - 'values', 'variance', 'variancep') + :class:`AggregateOp`, Literal['argmax', 'argmin', 'average', 'count', 'distinct', 'max', + 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', + 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] """ - _schema = {'$ref': '#/definitions/AggregateOp'} + + _schema = {"$ref": "#/definitions/AggregateOp"} def __init__(self, *args): super(AggregateOp, self).__init__(*args) @@ -60,33 +96,70 @@ def __init__(self, *args): class AggregatedFieldDef(VegaLiteSchema): """AggregatedFieldDef schema wrapper - Mapping(required=[op, as]) + :class:`AggregatedFieldDef`, Dict[required=[op, as]] Parameters ---------- - op : :class:`AggregateOp` + op : :class:`AggregateOp`, Literal['argmax', 'argmin', 'average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] The aggregation operation to apply to the fields (e.g., ``"sum"``, ``"average"``, or ``"count"`` ). See the `full list of supported aggregation operations `__ for more information. - field : :class:`FieldName` + field : :class:`FieldName`, str The data field for which to compute aggregate function. This is required for all aggregation operations except ``"count"``. - as : :class:`FieldName` + as : :class:`FieldName`, str The output field names to use for each aggregated field. """ - _schema = {'$ref': '#/definitions/AggregatedFieldDef'} - def __init__(self, op=Undefined, field=Undefined, **kwds): + _schema = {"$ref": "#/definitions/AggregatedFieldDef"} + + def __init__( + self, + op: Union[ + Union[ + "AggregateOp", + Literal[ + "argmax", + "argmin", + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + UndefinedType, + ] = Undefined, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + **kwds, + ): super(AggregatedFieldDef, self).__init__(op=op, field=field, **kwds) class Align(VegaLiteSchema): """Align schema wrapper - enum('left', 'center', 'right') + :class:`Align`, Literal['left', 'center', 'right'] """ - _schema = {'$ref': '#/definitions/Align'} + + _schema = {"$ref": "#/definitions/Align"} def __init__(self, *args): super(Align, self).__init__(*args) @@ -95,9 +168,15 @@ def __init__(self, *args): class AnyMark(VegaLiteSchema): """AnyMark schema wrapper - anyOf(:class:`CompositeMark`, :class:`CompositeMarkDef`, :class:`Mark`, :class:`MarkDef`) + :class:`AnyMark`, :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, + :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]], + :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, + str, :class:`MarkDef`, Dict[required=[type]], :class:`Mark`, Literal['arc', 'area', 'bar', + 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', + 'geoshape'] """ - _schema = {'$ref': '#/definitions/AnyMark'} + + _schema = {"$ref": "#/definitions/AnyMark"} def __init__(self, *args, **kwds): super(AnyMark, self).__init__(*args, **kwds) @@ -106,10 +185,12 @@ def __init__(self, *args, **kwds): class AnyMarkConfig(VegaLiteSchema): """AnyMarkConfig schema wrapper - anyOf(:class:`MarkConfig`, :class:`AreaConfig`, :class:`BarConfig`, :class:`RectConfig`, - :class:`LineConfig`, :class:`TickConfig`) + :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, + :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, + :class:`TickConfig`, Dict """ - _schema = {'$ref': '#/definitions/AnyMarkConfig'} + + _schema = {"$ref": "#/definitions/AnyMarkConfig"} def __init__(self, *args, **kwds): super(AnyMarkConfig, self).__init__(*args, **kwds) @@ -118,37 +199,37 @@ def __init__(self, *args, **kwds): class AreaConfig(AnyMarkConfig): """AreaConfig schema wrapper - Mapping(required=[]) + :class:`AreaConfig`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -159,13 +240,13 @@ class AreaConfig(AnyMarkConfig): ``"middle"``, ``"bottom"``. **Note:** Expression reference is *not* supported for range marks. - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -178,63 +259,63 @@ class AreaConfig(AnyMarkConfig): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -244,28 +325,28 @@ class AreaConfig(AnyMarkConfig): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -287,7 +368,7 @@ class AreaConfig(AnyMarkConfig): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -296,12 +377,12 @@ class AreaConfig(AnyMarkConfig): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - line : anyOf(boolean, :class:`OverlayMarkDef`) + line : :class:`OverlayMarkDef`, Dict, bool A flag for overlaying line on top of area marks, or an object defining the properties of the overlayed lines. @@ -312,21 +393,21 @@ class AreaConfig(AnyMarkConfig): If this value is ``false``, no lines would be automatically added to area marks. **Default value:** ``false``. - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -338,13 +419,13 @@ class AreaConfig(AnyMarkConfig): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - point : anyOf(boolean, :class:`OverlayMarkDef`, string) + point : :class:`OverlayMarkDef`, Dict, bool, str A flag for overlaying points on top of line or area marks, or an object defining the properties of the overlayed points. @@ -359,18 +440,18 @@ class AreaConfig(AnyMarkConfig): area marks. **Default value:** ``false``. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -385,7 +466,7 @@ class AreaConfig(AnyMarkConfig): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -402,56 +483,56 @@ class AreaConfig(AnyMarkConfig): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. timeUnitBandPosition : float @@ -462,7 +543,7 @@ class AreaConfig(AnyMarkConfig): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -477,126 +558,1022 @@ class AreaConfig(AnyMarkConfig): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. """ - _schema = {'$ref': '#/definitions/AreaConfig'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, blend=Undefined, - color=Undefined, cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, - cornerRadiusBottomRight=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - dx=Undefined, dy=Undefined, ellipsis=Undefined, endAngle=Undefined, fill=Undefined, - fillOpacity=Undefined, filled=Undefined, font=Undefined, fontSize=Undefined, - fontStyle=Undefined, fontWeight=Undefined, height=Undefined, href=Undefined, - innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, limit=Undefined, - line=Undefined, lineBreak=Undefined, lineHeight=Undefined, opacity=Undefined, - order=Undefined, orient=Undefined, outerRadius=Undefined, padAngle=Undefined, - point=Undefined, radius=Undefined, radius2=Undefined, shape=Undefined, size=Undefined, - smooth=Undefined, startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, - strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, - strokeMiterLimit=Undefined, strokeOffset=Undefined, strokeOpacity=Undefined, - strokeWidth=Undefined, tension=Undefined, text=Undefined, theta=Undefined, - theta2=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - y=Undefined, y2=Undefined, **kwds): - super(AreaConfig, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - baseline=baseline, blend=blend, color=color, - cornerRadius=cornerRadius, - cornerRadiusBottomLeft=cornerRadiusBottomLeft, - cornerRadiusBottomRight=cornerRadiusBottomRight, - cornerRadiusTopLeft=cornerRadiusTopLeft, - cornerRadiusTopRight=cornerRadiusTopRight, cursor=cursor, - description=description, dir=dir, dx=dx, dy=dy, - ellipsis=ellipsis, endAngle=endAngle, 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, - opacity=opacity, order=order, orient=orient, - outerRadius=outerRadius, padAngle=padAngle, point=point, - radius=radius, radius2=radius2, shape=shape, size=size, - smooth=smooth, startAngle=startAngle, stroke=stroke, - strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOffset=strokeOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - tension=tension, text=text, theta=theta, theta2=theta2, - timeUnitBandPosition=timeUnitBandPosition, - timeUnitBandSize=timeUnitBandSize, tooltip=tooltip, url=url, - width=width, x=x, x2=x2, y=y, y2=y2, **kwds) + + _schema = {"$ref": "#/definitions/AreaConfig"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + line: Union[ + Union[Union["OverlayMarkDef", dict], bool], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + point: Union[ + Union[Union["OverlayMarkDef", dict], bool, str], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + timeUnitBandPosition: Union[float, UndefinedType] = Undefined, + timeUnitBandSize: Union[float, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): + super(AreaConfig, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + baseline=baseline, + blend=blend, + color=color, + cornerRadius=cornerRadius, + cornerRadiusBottomLeft=cornerRadiusBottomLeft, + cornerRadiusBottomRight=cornerRadiusBottomRight, + cornerRadiusTopLeft=cornerRadiusTopLeft, + cornerRadiusTopRight=cornerRadiusTopRight, + cursor=cursor, + description=description, + dir=dir, + dx=dx, + dy=dy, + ellipsis=ellipsis, + endAngle=endAngle, + 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, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + point=point, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOffset=strokeOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + tension=tension, + text=text, + theta=theta, + theta2=theta2, + timeUnitBandPosition=timeUnitBandPosition, + timeUnitBandSize=timeUnitBandSize, + tooltip=tooltip, + url=url, + width=width, + x=x, + x2=x2, + y=y, + y2=y2, + **kwds, + ) class ArgmaxDef(Aggregate): """ArgmaxDef schema wrapper - Mapping(required=[argmax]) + :class:`ArgmaxDef`, Dict[required=[argmax]] Parameters ---------- - argmax : :class:`FieldName` + argmax : :class:`FieldName`, str """ - _schema = {'$ref': '#/definitions/ArgmaxDef'} - def __init__(self, argmax=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ArgmaxDef"} + + def __init__( + self, argmax: Union[Union["FieldName", str], UndefinedType] = Undefined, **kwds + ): super(ArgmaxDef, self).__init__(argmax=argmax, **kwds) class ArgminDef(Aggregate): """ArgminDef schema wrapper - Mapping(required=[argmin]) + :class:`ArgminDef`, Dict[required=[argmin]] Parameters ---------- - argmin : :class:`FieldName` + argmin : :class:`FieldName`, str """ - _schema = {'$ref': '#/definitions/ArgminDef'} - def __init__(self, argmin=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ArgminDef"} + + def __init__( + self, argmin: Union[Union["FieldName", str], UndefinedType] = Undefined, **kwds + ): super(ArgminDef, self).__init__(argmin=argmin, **kwds) class AutoSizeParams(VegaLiteSchema): """AutoSizeParams schema wrapper - Mapping(required=[]) + :class:`AutoSizeParams`, Dict Parameters ---------- - contains : enum('content', 'padding') + contains : Literal['content', 'padding'] Determines how size calculation should be performed, one of ``"content"`` or ``"padding"``. The default setting ( ``"content"`` ) interprets the width and height settings as the data rectangle (plotting) dimensions, to which padding is then @@ -605,12 +1582,12 @@ class AutoSizeParams(VegaLiteSchema): intended size of the view. **Default value** : ``"content"`` - resize : boolean + resize : bool A boolean flag indicating if autosize layout should be re-calculated on every view update. **Default value** : ``false`` - type : :class:`AutosizeType` + type : :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] The sizing format type. One of ``"pad"``, ``"fit"``, ``"fit-x"``, ``"fit-y"``, or ``"none"``. See the `autosize type `__ documentation for @@ -618,18 +1595,31 @@ class AutoSizeParams(VegaLiteSchema): **Default value** : ``"pad"`` """ - _schema = {'$ref': '#/definitions/AutoSizeParams'} - def __init__(self, contains=Undefined, resize=Undefined, type=Undefined, **kwds): - super(AutoSizeParams, self).__init__(contains=contains, resize=resize, type=type, **kwds) + _schema = {"$ref": "#/definitions/AutoSizeParams"} + + def __init__( + self, + contains: Union[Literal["content", "padding"], UndefinedType] = Undefined, + resize: Union[bool, UndefinedType] = Undefined, + type: Union[ + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(AutoSizeParams, self).__init__( + contains=contains, resize=resize, type=type, **kwds + ) class AutosizeType(VegaLiteSchema): """AutosizeType schema wrapper - enum('pad', 'none', 'fit', 'fit-x', 'fit-y') + :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] """ - _schema = {'$ref': '#/definitions/AutosizeType'} + + _schema = {"$ref": "#/definitions/AutosizeType"} def __init__(self, *args): super(AutosizeType, self).__init__(*args) @@ -638,56 +1628,56 @@ def __init__(self, *args): class Axis(VegaLiteSchema): """Axis schema wrapper - Mapping(required=[]) + :class:`Axis`, Dict Parameters ---------- - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the axis from the ARIA accessibility tree. **Default value:** ``true`` - bandPosition : anyOf(float, :class:`ExprRef`) + bandPosition : :class:`ExprRef`, Dict[required=[expr]], float An interpolation fraction indicating where, for ``band`` scales, axis ticks should be positioned. A value of ``0`` places ticks at the left edge of their bands. A value of ``0.5`` places ticks in the middle of their bands. **Default value:** ``0.5`` - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of this axis for `ARIA accessibility `__ (SVG output only). If the ``aria`` property is true, for SVG output the `"aria-label" attribute `__ will be set to this description. If the description is unspecified it will be automatically generated. - domain : boolean + domain : bool A boolean flag indicating if the domain (the axis baseline) should be included as part of the axis. **Default value:** ``true`` - domainCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + domainCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for the domain line's ending style. One of ``"butt"``, ``"round"`` or ``"square"``. **Default value:** ``"butt"`` - domainColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + domainColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Color of axis domain line. **Default value:** ``"gray"``. - domainDash : anyOf(List(float), :class:`ExprRef`) + domainDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed domain lines. - domainDashOffset : anyOf(float, :class:`ExprRef`) + domainDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the domain dash array. - domainOpacity : anyOf(float, :class:`ExprRef`) + domainOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the axis domain line. - domainWidth : anyOf(float, :class:`ExprRef`) + domainWidth : :class:`ExprRef`, Dict[required=[expr]], float Stroke width of axis domain line **Default value:** ``1`` - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -710,7 +1700,7 @@ class Axis(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -721,47 +1711,47 @@ class Axis(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - grid : boolean + grid : bool A boolean flag indicating if grid lines should be included as part of the axis **Default value:** ``true`` for `continuous scales `__ that are not binned; otherwise, ``false``. - gridCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + gridCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for grid lines' ending style. One of ``"butt"``, ``"round"`` or ``"square"``. **Default value:** ``"butt"`` - gridColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`, :class:`ConditionalAxisColor`) + gridColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] Color of gridlines. **Default value:** ``"lightGray"``. - gridDash : anyOf(List(float), :class:`ExprRef`, :class:`ConditionalAxisNumberArray`) + gridDash : :class:`ConditionalAxisNumberArray`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed grid lines. - gridDashOffset : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + gridDashOffset : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the grid dash array. - gridOpacity : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + gridOpacity : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity of grid (value between [0,1]) **Default value:** ``1`` - gridWidth : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + gridWidth : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The grid width, in pixels. **Default value:** ``1`` - labelAlign : anyOf(:class:`Align`, :class:`ExprRef`, :class:`ConditionalAxisLabelAlign`) + labelAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ConditionalAxisLabelAlign`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment of axis tick labels, overriding the default setting for the current axis orientation. - labelAngle : anyOf(float, :class:`ExprRef`) + labelAngle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the axis labels. **Default value:** ``-90`` for nominal and ordinal fields; ``0`` otherwise. - labelBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`, :class:`ConditionalAxisLabelBaseline`) + labelBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ConditionalAxisLabelBaseline`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] Vertical text baseline of axis tick labels, overriding the default setting for the current axis orientation. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - labelBound : anyOf(anyOf(float, boolean), :class:`ExprRef`) + labelBound : :class:`ExprRef`, Dict[required=[expr]], bool, float Indicates if labels should be hidden if they exceed the axis range. If ``false`` (the default) no bounds overlap analysis is performed. If ``true``, labels will be hidden if they exceed the axis range by more than 1 pixel. If this property is a @@ -769,15 +1759,15 @@ class Axis(VegaLiteSchema): bounding box may exceed the axis range. **Default value:** ``false``. - labelColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`, :class:`ConditionalAxisColor`) + labelColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] The color of the tick label, can be in hex color code or regular color name. - labelExpr : string + labelExpr : str `Vega expression `__ for customizing labels. **Note:** The label text and value can be assessed via the ``label`` and ``value`` properties of the axis's backing ``datum`` object. - labelFlush : anyOf(boolean, float) + labelFlush : bool, float Indicates if the first and last axis labels should be aligned flush with the scale range. Flush alignment for a horizontal axis will left-align the first label and right-align the last label. For vertical axes, bottom and top text baselines are @@ -788,35 +1778,35 @@ class Axis(VegaLiteSchema): visually group with corresponding axis ticks. **Default value:** ``true`` for axis of a continuous x-scale. Otherwise, ``false``. - labelFlushOffset : anyOf(float, :class:`ExprRef`) + labelFlushOffset : :class:`ExprRef`, Dict[required=[expr]], float Indicates the number of pixels by which to offset flush-adjusted labels. For example, a value of ``2`` will push flush-adjusted labels 2 pixels outward from the center of the axis. Offsets can help the labels better visually group with corresponding axis ticks. **Default value:** ``0``. - labelFont : anyOf(string, :class:`ExprRef`, :class:`ConditionalAxisString`) + labelFont : :class:`ConditionalAxisString`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], str The font of the tick label. - labelFontSize : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelFontSize : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The font size of the label, in pixels. - labelFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`, :class:`ConditionalAxisLabelFontStyle`) + labelFontStyle : :class:`ConditionalAxisLabelFontStyle`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style of the title. - labelFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`, :class:`ConditionalAxisLabelFontWeight`) + labelFontWeight : :class:`ConditionalAxisLabelFontWeight`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight of axis tick labels. - labelLimit : anyOf(float, :class:`ExprRef`) + labelLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of axis tick labels. **Default value:** ``180`` - labelLineHeight : anyOf(float, :class:`ExprRef`) + labelLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line label text or label text with ``"line-top"`` or ``"line-bottom"`` baseline. - labelOffset : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelOffset : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float Position offset in pixels to apply to labels, in addition to tickOffset. **Default value:** ``0`` - labelOpacity : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelOpacity : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The opacity of the labels. - labelOverlap : anyOf(:class:`LabelOverlap`, :class:`ExprRef`) + labelOverlap : :class:`ExprRef`, Dict[required=[expr]], :class:`LabelOverlap`, bool, str The strategy to use for resolving overlap of axis labels. If ``false`` (the default), no overlap reduction is attempted. If set to ``true`` or ``"parity"``, a strategy of removing every other label is used (this works well for standard linear @@ -826,48 +1816,48 @@ class Axis(VegaLiteSchema): **Default value:** ``true`` for non-nominal fields with non-log scales; ``"greedy"`` for log scales; otherwise ``false``. - labelPadding : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelPadding : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The padding in pixels between labels and ticks. **Default value:** ``2`` - labelSeparation : anyOf(float, :class:`ExprRef`) + labelSeparation : :class:`ExprRef`, Dict[required=[expr]], float The minimum separation that must be between label bounding boxes for them to be considered non-overlapping (default ``0`` ). This property is ignored if *labelOverlap* resolution is not enabled. - labels : boolean + labels : bool A boolean flag indicating if labels should be included as part of the axis. **Default value:** ``true``. - maxExtent : anyOf(float, :class:`ExprRef`) + maxExtent : :class:`ExprRef`, Dict[required=[expr]], float The maximum extent in pixels that axis ticks and labels should use. This determines a maximum offset value for axis titles. **Default value:** ``undefined``. - minExtent : anyOf(float, :class:`ExprRef`) + minExtent : :class:`ExprRef`, Dict[required=[expr]], float The minimum extent in pixels that axis ticks and labels should use. This determines a minimum offset value for axis titles. **Default value:** ``30`` for y-axis; ``undefined`` for x-axis. - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The offset, in pixels, by which to displace the axis from the edge of the enclosing group or data rectangle. **Default value:** derived from the `axis config `__ 's ``offset`` ( ``0`` by default) - orient : anyOf(:class:`AxisOrient`, :class:`ExprRef`) + orient : :class:`AxisOrient`, Literal['top', 'bottom', 'left', 'right'], :class:`ExprRef`, Dict[required=[expr]] The orientation of the axis. One of ``"top"``, ``"bottom"``, ``"left"`` or ``"right"``. The orientation can be used to further specialize the axis type (e.g., a y-axis oriented towards the right edge of the chart). **Default value:** ``"bottom"`` for x-axes and ``"left"`` for y-axes. - position : anyOf(float, :class:`ExprRef`) + position : :class:`ExprRef`, Dict[required=[expr]], float The anchor position of the axis in pixels. For x-axes with top or bottom orientation, this sets the axis group x coordinate. For y-axes with left or right orientation, this sets the axis group y coordinate. **Default value** : ``0`` - style : anyOf(string, List(string)) + style : Sequence[str], str A string or array of strings indicating the name of custom styles to apply to the axis. A style is a named collection of axis property defined within the `style configuration `__. If @@ -876,19 +1866,19 @@ class Axis(VegaLiteSchema): **Default value:** (none) **Note:** Any specified style will augment the default style. For example, an x-axis mark with ``"style": "foo"`` will use ``config.axisX`` and ``config.style.foo`` (the specified style ``"foo"`` has higher precedence). - tickBand : anyOf(enum('center', 'extent'), :class:`ExprRef`) + tickBand : :class:`ExprRef`, Dict[required=[expr]], Literal['center', 'extent'] For band scales, indicates if ticks and grid lines should be placed at the ``"center"`` of a band (default) or at the band ``"extent"`` s to indicate intervals - tickCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + tickCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for the tick lines' ending style. One of ``"butt"``, ``"round"`` or ``"square"``. **Default value:** ``"butt"`` - tickColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`, :class:`ConditionalAxisColor`) + tickColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] The color of the axis's tick. **Default value:** ``"gray"`` - tickCount : anyOf(float, :class:`TimeInterval`, :class:`TimeIntervalStep`, :class:`ExprRef`) + tickCount : :class:`ExprRef`, Dict[required=[expr]], :class:`TimeIntervalStep`, Dict[required=[interval, step]], :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year'], float A desired number of ticks, for axes visualizing quantitative scales. The resulting number may be different so that values are "nice" (multiples of 2, 5, 10) and lie within the underlying scale's range. @@ -902,42 +1892,42 @@ class Axis(VegaLiteSchema): **Default value** : Determine using a formula ``ceil(width/40)`` for x and ``ceil(height/40)`` for y. - tickDash : anyOf(List(float), :class:`ExprRef`, :class:`ConditionalAxisNumberArray`) + tickDash : :class:`ConditionalAxisNumberArray`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed tick mark lines. - tickDashOffset : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickDashOffset : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the tick mark dash array. - tickExtra : boolean + tickExtra : bool Boolean flag indicating if an extra axis tick should be added for the initial position of the axis. This flag is useful for styling axes for ``band`` scales such that ticks are placed on band boundaries rather in the middle of a band. Use in conjunction with ``"bandPosition": 1`` and an axis ``"padding"`` value of ``0``. - tickMinStep : anyOf(float, :class:`ExprRef`) + tickMinStep : :class:`ExprRef`, Dict[required=[expr]], float The minimum desired step between axis ticks, in terms of scale domain values. For example, a value of ``1`` indicates that ticks should not be less than 1 unit apart. If ``tickMinStep`` is specified, the ``tickCount`` value will be adjusted, if necessary, to enforce the minimum step value. - tickOffset : anyOf(float, :class:`ExprRef`) + tickOffset : :class:`ExprRef`, Dict[required=[expr]], float Position offset in pixels to apply to ticks, labels, and gridlines. - tickOpacity : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickOpacity : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float Opacity of the ticks. - tickRound : boolean + tickRound : bool Boolean flag indicating if pixel position values should be rounded to the nearest integer. **Default value:** ``true`` - tickSize : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickSize : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The size in pixels of axis ticks. **Default value:** ``5`` - tickWidth : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickWidth : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The width, in pixels, of ticks. **Default value:** ``1`` - ticks : boolean + ticks : bool Boolean value that determines whether the axis should include ticks. **Default value:** ``true`` - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -957,44 +1947,44 @@ class Axis(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - titleAlign : anyOf(:class:`Align`, :class:`ExprRef`) + titleAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment of axis titles. - titleAnchor : anyOf(:class:`TitleAnchor`, :class:`ExprRef`) + titleAnchor : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] Text anchor position for placing axis titles. - titleAngle : anyOf(float, :class:`ExprRef`) + titleAngle : :class:`ExprRef`, Dict[required=[expr]], float Angle in degrees of axis titles. - titleBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + titleBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] Vertical text baseline for axis titles. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - titleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + titleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Color of the title, can be in hex color code or regular color name. - titleFont : anyOf(string, :class:`ExprRef`) + titleFont : :class:`ExprRef`, Dict[required=[expr]], str Font of the title. (e.g., ``"Helvetica Neue"`` ). - titleFontSize : anyOf(float, :class:`ExprRef`) + titleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size of the title. - titleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + titleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style of the title. - titleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + titleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight of the title. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - titleLimit : anyOf(float, :class:`ExprRef`) + titleLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of axis titles. - titleLineHeight : anyOf(float, :class:`ExprRef`) + titleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - titleOpacity : anyOf(float, :class:`ExprRef`) + titleOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the axis title. - titlePadding : anyOf(float, :class:`ExprRef`) + titlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixels, between title and axis. - titleX : anyOf(float, :class:`ExprRef`) + titleX : :class:`ExprRef`, Dict[required=[expr]], float X-coordinate of the axis title relative to the axis group. - titleY : anyOf(float, :class:`ExprRef`) + titleY : :class:`ExprRef`, Dict[required=[expr]], float Y-coordinate of the axis title relative to the axis group. - translate : anyOf(float, :class:`ExprRef`) + translate : :class:`ExprRef`, Dict[required=[expr]], float Coordinate space translation offset for axis layout. By default, axes are translated by a 0.5 pixel offset for both the x and y coordinates in order to align stroked lines with the pixel grid. However, for vector graphics output these pixel-specific @@ -1002,7 +1992,7 @@ class Axis(VegaLiteSchema): to zero). **Default value:** ``0.5`` - values : anyOf(List(float), List(string), List(boolean), List(:class:`DateTime`), :class:`ExprRef`) + values : :class:`ExprRef`, Dict[required=[expr]], Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str] Explicitly set the visible axis tick values. zindex : float A non-negative integer indicating the z-index of the axis. If zindex is 0, axes @@ -1011,120 +2001,1379 @@ class Axis(VegaLiteSchema): **Default value:** ``0`` (behind the marks). """ - _schema = {'$ref': '#/definitions/Axis'} - - def __init__(self, aria=Undefined, bandPosition=Undefined, description=Undefined, domain=Undefined, - domainCap=Undefined, domainColor=Undefined, domainDash=Undefined, - domainDashOffset=Undefined, domainOpacity=Undefined, domainWidth=Undefined, - format=Undefined, formatType=Undefined, grid=Undefined, gridCap=Undefined, - gridColor=Undefined, gridDash=Undefined, gridDashOffset=Undefined, - gridOpacity=Undefined, gridWidth=Undefined, labelAlign=Undefined, labelAngle=Undefined, - labelBaseline=Undefined, labelBound=Undefined, labelColor=Undefined, - labelExpr=Undefined, labelFlush=Undefined, labelFlushOffset=Undefined, - labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, - labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, - labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, - labelPadding=Undefined, labelSeparation=Undefined, labels=Undefined, - maxExtent=Undefined, minExtent=Undefined, offset=Undefined, orient=Undefined, - position=Undefined, style=Undefined, tickBand=Undefined, tickCap=Undefined, - tickColor=Undefined, tickCount=Undefined, tickDash=Undefined, tickDashOffset=Undefined, - tickExtra=Undefined, tickMinStep=Undefined, tickOffset=Undefined, - tickOpacity=Undefined, tickRound=Undefined, tickSize=Undefined, tickWidth=Undefined, - ticks=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, - titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, - titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, - titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, - titleOpacity=Undefined, titlePadding=Undefined, titleX=Undefined, titleY=Undefined, - translate=Undefined, values=Undefined, zindex=Undefined, **kwds): - super(Axis, self).__init__(aria=aria, bandPosition=bandPosition, description=description, - domain=domain, domainCap=domainCap, domainColor=domainColor, - domainDash=domainDash, domainDashOffset=domainDashOffset, - domainOpacity=domainOpacity, domainWidth=domainWidth, format=format, - formatType=formatType, grid=grid, gridCap=gridCap, - gridColor=gridColor, gridDash=gridDash, - gridDashOffset=gridDashOffset, gridOpacity=gridOpacity, - gridWidth=gridWidth, labelAlign=labelAlign, labelAngle=labelAngle, - labelBaseline=labelBaseline, labelBound=labelBound, - labelColor=labelColor, labelExpr=labelExpr, labelFlush=labelFlush, - labelFlushOffset=labelFlushOffset, labelFont=labelFont, - labelFontSize=labelFontSize, labelFontStyle=labelFontStyle, - labelFontWeight=labelFontWeight, labelLimit=labelLimit, - labelLineHeight=labelLineHeight, labelOffset=labelOffset, - labelOpacity=labelOpacity, labelOverlap=labelOverlap, - labelPadding=labelPadding, labelSeparation=labelSeparation, - labels=labels, maxExtent=maxExtent, minExtent=minExtent, - offset=offset, orient=orient, position=position, style=style, - tickBand=tickBand, tickCap=tickCap, tickColor=tickColor, - tickCount=tickCount, tickDash=tickDash, - tickDashOffset=tickDashOffset, tickExtra=tickExtra, - tickMinStep=tickMinStep, tickOffset=tickOffset, - tickOpacity=tickOpacity, tickRound=tickRound, tickSize=tickSize, - tickWidth=tickWidth, ticks=ticks, title=title, titleAlign=titleAlign, - titleAnchor=titleAnchor, titleAngle=titleAngle, - titleBaseline=titleBaseline, titleColor=titleColor, - titleFont=titleFont, titleFontSize=titleFontSize, - titleFontStyle=titleFontStyle, titleFontWeight=titleFontWeight, - titleLimit=titleLimit, titleLineHeight=titleLineHeight, - titleOpacity=titleOpacity, titlePadding=titlePadding, titleX=titleX, - titleY=titleY, translate=translate, values=values, zindex=zindex, - **kwds) + + _schema = {"$ref": "#/definitions/Axis"} + + def __init__( + self, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + bandPosition: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + domain: Union[bool, UndefinedType] = Undefined, + domainCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + domainColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + domainDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + domainDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + domainOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + domainWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + grid: Union[bool, UndefinedType] = Undefined, + gridCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + gridColor: Union[ + Union[ + Union["ConditionalAxisColor", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + gridDash: Union[ + Union[ + Sequence[float], + Union["ConditionalAxisNumberArray", dict], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + gridDashOffset: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + gridOpacity: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + gridWidth: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ConditionalAxisLabelAlign", dict], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelBaseline: Union[ + Union[ + Union["ConditionalAxisLabelBaseline", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + labelBound: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union[bool, float]], + UndefinedType, + ] = Undefined, + labelColor: Union[ + Union[ + Union["ConditionalAxisColor", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFlush: Union[Union[bool, float], UndefinedType] = Undefined, + labelFlushOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelFont: Union[ + Union[ + Union["ConditionalAxisString", dict], + Union["ExprRef", "_Parameter", dict], + str, + ], + UndefinedType, + ] = Undefined, + labelFontSize: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union["ConditionalAxisLabelFontStyle", dict], + Union["ExprRef", "_Parameter", dict], + Union["FontStyle", str], + ], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union["ConditionalAxisLabelFontWeight", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOpacity: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOverlap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["LabelOverlap", bool, str] + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelSeparation: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + maxExtent: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + minExtent: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union["AxisOrient", Literal["top", "bottom", "left", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + position: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tickBand: Union[ + Union[Literal["center", "extent"], Union["ExprRef", "_Parameter", dict]], + UndefinedType, + ] = Undefined, + tickCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + tickColor: Union[ + Union[ + Union["ConditionalAxisColor", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TimeInterval", + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + ], + Union["TimeIntervalStep", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickDash: Union[ + Union[ + Sequence[float], + Union["ConditionalAxisNumberArray", dict], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + tickDashOffset: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickExtra: Union[bool, UndefinedType] = Undefined, + tickMinStep: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tickOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tickOpacity: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickRound: Union[bool, UndefinedType] = Undefined, + tickSize: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickWidth: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + ticks: Union[bool, UndefinedType] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], + ], + UndefinedType, + ] = Undefined, + titleAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + titleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleX: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleY: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + values: Union[ + Union[ + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(Axis, self).__init__( + aria=aria, + bandPosition=bandPosition, + description=description, + domain=domain, + domainCap=domainCap, + domainColor=domainColor, + domainDash=domainDash, + domainDashOffset=domainDashOffset, + domainOpacity=domainOpacity, + domainWidth=domainWidth, + format=format, + formatType=formatType, + grid=grid, + gridCap=gridCap, + gridColor=gridColor, + gridDash=gridDash, + gridDashOffset=gridDashOffset, + gridOpacity=gridOpacity, + gridWidth=gridWidth, + labelAlign=labelAlign, + labelAngle=labelAngle, + labelBaseline=labelBaseline, + labelBound=labelBound, + labelColor=labelColor, + labelExpr=labelExpr, + labelFlush=labelFlush, + labelFlushOffset=labelFlushOffset, + labelFont=labelFont, + labelFontSize=labelFontSize, + labelFontStyle=labelFontStyle, + labelFontWeight=labelFontWeight, + labelLimit=labelLimit, + labelLineHeight=labelLineHeight, + labelOffset=labelOffset, + labelOpacity=labelOpacity, + labelOverlap=labelOverlap, + labelPadding=labelPadding, + labelSeparation=labelSeparation, + labels=labels, + maxExtent=maxExtent, + minExtent=minExtent, + offset=offset, + orient=orient, + position=position, + style=style, + tickBand=tickBand, + tickCap=tickCap, + tickColor=tickColor, + tickCount=tickCount, + tickDash=tickDash, + tickDashOffset=tickDashOffset, + tickExtra=tickExtra, + tickMinStep=tickMinStep, + tickOffset=tickOffset, + tickOpacity=tickOpacity, + tickRound=tickRound, + tickSize=tickSize, + tickWidth=tickWidth, + ticks=ticks, + title=title, + titleAlign=titleAlign, + titleAnchor=titleAnchor, + titleAngle=titleAngle, + titleBaseline=titleBaseline, + titleColor=titleColor, + titleFont=titleFont, + titleFontSize=titleFontSize, + titleFontStyle=titleFontStyle, + titleFontWeight=titleFontWeight, + titleLimit=titleLimit, + titleLineHeight=titleLineHeight, + titleOpacity=titleOpacity, + titlePadding=titlePadding, + titleX=titleX, + titleY=titleY, + translate=translate, + values=values, + zindex=zindex, + **kwds, + ) class AxisConfig(VegaLiteSchema): """AxisConfig schema wrapper - Mapping(required=[]) + :class:`AxisConfig`, Dict Parameters ---------- - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the axis from the ARIA accessibility tree. **Default value:** ``true`` - bandPosition : anyOf(float, :class:`ExprRef`) + bandPosition : :class:`ExprRef`, Dict[required=[expr]], float An interpolation fraction indicating where, for ``band`` scales, axis ticks should be positioned. A value of ``0`` places ticks at the left edge of their bands. A value of ``0.5`` places ticks in the middle of their bands. **Default value:** ``0.5`` - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of this axis for `ARIA accessibility `__ (SVG output only). If the ``aria`` property is true, for SVG output the `"aria-label" attribute `__ will be set to this description. If the description is unspecified it will be automatically generated. - disable : boolean + disable : bool Disable axis by default. - domain : boolean + domain : bool A boolean flag indicating if the domain (the axis baseline) should be included as part of the axis. **Default value:** ``true`` - domainCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + domainCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for the domain line's ending style. One of ``"butt"``, ``"round"`` or ``"square"``. **Default value:** ``"butt"`` - domainColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + domainColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Color of axis domain line. **Default value:** ``"gray"``. - domainDash : anyOf(List(float), :class:`ExprRef`) + domainDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed domain lines. - domainDashOffset : anyOf(float, :class:`ExprRef`) + domainDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the domain dash array. - domainOpacity : anyOf(float, :class:`ExprRef`) + domainOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the axis domain line. - domainWidth : anyOf(float, :class:`ExprRef`) + domainWidth : :class:`ExprRef`, Dict[required=[expr]], float Stroke width of axis domain line **Default value:** ``1`` - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -1147,7 +3396,7 @@ class AxisConfig(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -1158,47 +3407,47 @@ class AxisConfig(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - grid : boolean + grid : bool A boolean flag indicating if grid lines should be included as part of the axis **Default value:** ``true`` for `continuous scales `__ that are not binned; otherwise, ``false``. - gridCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + gridCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for grid lines' ending style. One of ``"butt"``, ``"round"`` or ``"square"``. **Default value:** ``"butt"`` - gridColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`, :class:`ConditionalAxisColor`) + gridColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] Color of gridlines. **Default value:** ``"lightGray"``. - gridDash : anyOf(List(float), :class:`ExprRef`, :class:`ConditionalAxisNumberArray`) + gridDash : :class:`ConditionalAxisNumberArray`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed grid lines. - gridDashOffset : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + gridDashOffset : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the grid dash array. - gridOpacity : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + gridOpacity : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity of grid (value between [0,1]) **Default value:** ``1`` - gridWidth : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + gridWidth : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The grid width, in pixels. **Default value:** ``1`` - labelAlign : anyOf(:class:`Align`, :class:`ExprRef`, :class:`ConditionalAxisLabelAlign`) + labelAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ConditionalAxisLabelAlign`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment of axis tick labels, overriding the default setting for the current axis orientation. - labelAngle : anyOf(float, :class:`ExprRef`) + labelAngle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the axis labels. **Default value:** ``-90`` for nominal and ordinal fields; ``0`` otherwise. - labelBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`, :class:`ConditionalAxisLabelBaseline`) + labelBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ConditionalAxisLabelBaseline`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] Vertical text baseline of axis tick labels, overriding the default setting for the current axis orientation. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - labelBound : anyOf(anyOf(float, boolean), :class:`ExprRef`) + labelBound : :class:`ExprRef`, Dict[required=[expr]], bool, float Indicates if labels should be hidden if they exceed the axis range. If ``false`` (the default) no bounds overlap analysis is performed. If ``true``, labels will be hidden if they exceed the axis range by more than 1 pixel. If this property is a @@ -1206,15 +3455,15 @@ class AxisConfig(VegaLiteSchema): bounding box may exceed the axis range. **Default value:** ``false``. - labelColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`, :class:`ConditionalAxisColor`) + labelColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] The color of the tick label, can be in hex color code or regular color name. - labelExpr : string + labelExpr : str `Vega expression `__ for customizing labels. **Note:** The label text and value can be assessed via the ``label`` and ``value`` properties of the axis's backing ``datum`` object. - labelFlush : anyOf(boolean, float) + labelFlush : bool, float Indicates if the first and last axis labels should be aligned flush with the scale range. Flush alignment for a horizontal axis will left-align the first label and right-align the last label. For vertical axes, bottom and top text baselines are @@ -1225,35 +3474,35 @@ class AxisConfig(VegaLiteSchema): visually group with corresponding axis ticks. **Default value:** ``true`` for axis of a continuous x-scale. Otherwise, ``false``. - labelFlushOffset : anyOf(float, :class:`ExprRef`) + labelFlushOffset : :class:`ExprRef`, Dict[required=[expr]], float Indicates the number of pixels by which to offset flush-adjusted labels. For example, a value of ``2`` will push flush-adjusted labels 2 pixels outward from the center of the axis. Offsets can help the labels better visually group with corresponding axis ticks. **Default value:** ``0``. - labelFont : anyOf(string, :class:`ExprRef`, :class:`ConditionalAxisString`) + labelFont : :class:`ConditionalAxisString`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], str The font of the tick label. - labelFontSize : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelFontSize : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The font size of the label, in pixels. - labelFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`, :class:`ConditionalAxisLabelFontStyle`) + labelFontStyle : :class:`ConditionalAxisLabelFontStyle`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style of the title. - labelFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`, :class:`ConditionalAxisLabelFontWeight`) + labelFontWeight : :class:`ConditionalAxisLabelFontWeight`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight of axis tick labels. - labelLimit : anyOf(float, :class:`ExprRef`) + labelLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of axis tick labels. **Default value:** ``180`` - labelLineHeight : anyOf(float, :class:`ExprRef`) + labelLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line label text or label text with ``"line-top"`` or ``"line-bottom"`` baseline. - labelOffset : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelOffset : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float Position offset in pixels to apply to labels, in addition to tickOffset. **Default value:** ``0`` - labelOpacity : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelOpacity : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The opacity of the labels. - labelOverlap : anyOf(:class:`LabelOverlap`, :class:`ExprRef`) + labelOverlap : :class:`ExprRef`, Dict[required=[expr]], :class:`LabelOverlap`, bool, str The strategy to use for resolving overlap of axis labels. If ``false`` (the default), no overlap reduction is attempted. If set to ``true`` or ``"parity"``, a strategy of removing every other label is used (this works well for standard linear @@ -1263,48 +3512,48 @@ class AxisConfig(VegaLiteSchema): **Default value:** ``true`` for non-nominal fields with non-log scales; ``"greedy"`` for log scales; otherwise ``false``. - labelPadding : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + labelPadding : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The padding in pixels between labels and ticks. **Default value:** ``2`` - labelSeparation : anyOf(float, :class:`ExprRef`) + labelSeparation : :class:`ExprRef`, Dict[required=[expr]], float The minimum separation that must be between label bounding boxes for them to be considered non-overlapping (default ``0`` ). This property is ignored if *labelOverlap* resolution is not enabled. - labels : boolean + labels : bool A boolean flag indicating if labels should be included as part of the axis. **Default value:** ``true``. - maxExtent : anyOf(float, :class:`ExprRef`) + maxExtent : :class:`ExprRef`, Dict[required=[expr]], float The maximum extent in pixels that axis ticks and labels should use. This determines a maximum offset value for axis titles. **Default value:** ``undefined``. - minExtent : anyOf(float, :class:`ExprRef`) + minExtent : :class:`ExprRef`, Dict[required=[expr]], float The minimum extent in pixels that axis ticks and labels should use. This determines a minimum offset value for axis titles. **Default value:** ``30`` for y-axis; ``undefined`` for x-axis. - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The offset, in pixels, by which to displace the axis from the edge of the enclosing group or data rectangle. **Default value:** derived from the `axis config `__ 's ``offset`` ( ``0`` by default) - orient : anyOf(:class:`AxisOrient`, :class:`ExprRef`) + orient : :class:`AxisOrient`, Literal['top', 'bottom', 'left', 'right'], :class:`ExprRef`, Dict[required=[expr]] The orientation of the axis. One of ``"top"``, ``"bottom"``, ``"left"`` or ``"right"``. The orientation can be used to further specialize the axis type (e.g., a y-axis oriented towards the right edge of the chart). **Default value:** ``"bottom"`` for x-axes and ``"left"`` for y-axes. - position : anyOf(float, :class:`ExprRef`) + position : :class:`ExprRef`, Dict[required=[expr]], float The anchor position of the axis in pixels. For x-axes with top or bottom orientation, this sets the axis group x coordinate. For y-axes with left or right orientation, this sets the axis group y coordinate. **Default value** : ``0`` - style : anyOf(string, List(string)) + style : Sequence[str], str A string or array of strings indicating the name of custom styles to apply to the axis. A style is a named collection of axis property defined within the `style configuration `__. If @@ -1313,19 +3562,19 @@ class AxisConfig(VegaLiteSchema): **Default value:** (none) **Note:** Any specified style will augment the default style. For example, an x-axis mark with ``"style": "foo"`` will use ``config.axisX`` and ``config.style.foo`` (the specified style ``"foo"`` has higher precedence). - tickBand : anyOf(enum('center', 'extent'), :class:`ExprRef`) + tickBand : :class:`ExprRef`, Dict[required=[expr]], Literal['center', 'extent'] For band scales, indicates if ticks and grid lines should be placed at the ``"center"`` of a band (default) or at the band ``"extent"`` s to indicate intervals - tickCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + tickCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for the tick lines' ending style. One of ``"butt"``, ``"round"`` or ``"square"``. **Default value:** ``"butt"`` - tickColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`, :class:`ConditionalAxisColor`) + tickColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]] The color of the axis's tick. **Default value:** ``"gray"`` - tickCount : anyOf(float, :class:`TimeInterval`, :class:`TimeIntervalStep`, :class:`ExprRef`) + tickCount : :class:`ExprRef`, Dict[required=[expr]], :class:`TimeIntervalStep`, Dict[required=[interval, step]], :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year'], float A desired number of ticks, for axes visualizing quantitative scales. The resulting number may be different so that values are "nice" (multiples of 2, 5, 10) and lie within the underlying scale's range. @@ -1339,42 +3588,42 @@ class AxisConfig(VegaLiteSchema): **Default value** : Determine using a formula ``ceil(width/40)`` for x and ``ceil(height/40)`` for y. - tickDash : anyOf(List(float), :class:`ExprRef`, :class:`ConditionalAxisNumberArray`) + tickDash : :class:`ConditionalAxisNumberArray`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed tick mark lines. - tickDashOffset : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickDashOffset : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the tick mark dash array. - tickExtra : boolean + tickExtra : bool Boolean flag indicating if an extra axis tick should be added for the initial position of the axis. This flag is useful for styling axes for ``band`` scales such that ticks are placed on band boundaries rather in the middle of a band. Use in conjunction with ``"bandPosition": 1`` and an axis ``"padding"`` value of ``0``. - tickMinStep : anyOf(float, :class:`ExprRef`) + tickMinStep : :class:`ExprRef`, Dict[required=[expr]], float The minimum desired step between axis ticks, in terms of scale domain values. For example, a value of ``1`` indicates that ticks should not be less than 1 unit apart. If ``tickMinStep`` is specified, the ``tickCount`` value will be adjusted, if necessary, to enforce the minimum step value. - tickOffset : anyOf(float, :class:`ExprRef`) + tickOffset : :class:`ExprRef`, Dict[required=[expr]], float Position offset in pixels to apply to ticks, labels, and gridlines. - tickOpacity : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickOpacity : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float Opacity of the ticks. - tickRound : boolean + tickRound : bool Boolean flag indicating if pixel position values should be rounded to the nearest integer. **Default value:** ``true`` - tickSize : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickSize : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The size in pixels of axis ticks. **Default value:** ``5`` - tickWidth : anyOf(float, :class:`ExprRef`, :class:`ConditionalAxisNumber`) + tickWidth : :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, value]], :class:`ExprRef`, Dict[required=[expr]], float The width, in pixels, of ticks. **Default value:** ``1`` - ticks : boolean + ticks : bool Boolean value that determines whether the axis should include ticks. **Default value:** ``true`` - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -1394,44 +3643,44 @@ class AxisConfig(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - titleAlign : anyOf(:class:`Align`, :class:`ExprRef`) + titleAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment of axis titles. - titleAnchor : anyOf(:class:`TitleAnchor`, :class:`ExprRef`) + titleAnchor : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] Text anchor position for placing axis titles. - titleAngle : anyOf(float, :class:`ExprRef`) + titleAngle : :class:`ExprRef`, Dict[required=[expr]], float Angle in degrees of axis titles. - titleBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + titleBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] Vertical text baseline for axis titles. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - titleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + titleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Color of the title, can be in hex color code or regular color name. - titleFont : anyOf(string, :class:`ExprRef`) + titleFont : :class:`ExprRef`, Dict[required=[expr]], str Font of the title. (e.g., ``"Helvetica Neue"`` ). - titleFontSize : anyOf(float, :class:`ExprRef`) + titleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size of the title. - titleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + titleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style of the title. - titleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + titleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight of the title. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - titleLimit : anyOf(float, :class:`ExprRef`) + titleLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of axis titles. - titleLineHeight : anyOf(float, :class:`ExprRef`) + titleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - titleOpacity : anyOf(float, :class:`ExprRef`) + titleOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the axis title. - titlePadding : anyOf(float, :class:`ExprRef`) + titlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixels, between title and axis. - titleX : anyOf(float, :class:`ExprRef`) + titleX : :class:`ExprRef`, Dict[required=[expr]], float X-coordinate of the axis title relative to the axis group. - titleY : anyOf(float, :class:`ExprRef`) + titleY : :class:`ExprRef`, Dict[required=[expr]], float Y-coordinate of the axis title relative to the axis group. - translate : anyOf(float, :class:`ExprRef`) + translate : :class:`ExprRef`, Dict[required=[expr]], float Coordinate space translation offset for axis layout. By default, axes are translated by a 0.5 pixel offset for both the x and y coordinates in order to align stroked lines with the pixel grid. However, for vector graphics output these pixel-specific @@ -1439,7 +3688,7 @@ class AxisConfig(VegaLiteSchema): to zero). **Default value:** ``0.5`` - values : anyOf(List(float), List(string), List(boolean), List(:class:`DateTime`), :class:`ExprRef`) + values : :class:`ExprRef`, Dict[required=[expr]], Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str] Explicitly set the visible axis tick values. zindex : float A non-negative integer indicating the z-index of the axis. If zindex is 0, axes @@ -1448,73 +3697,1333 @@ class AxisConfig(VegaLiteSchema): **Default value:** ``0`` (behind the marks). """ - _schema = {'$ref': '#/definitions/AxisConfig'} - - def __init__(self, aria=Undefined, bandPosition=Undefined, description=Undefined, disable=Undefined, - domain=Undefined, domainCap=Undefined, domainColor=Undefined, domainDash=Undefined, - domainDashOffset=Undefined, domainOpacity=Undefined, domainWidth=Undefined, - format=Undefined, formatType=Undefined, grid=Undefined, gridCap=Undefined, - gridColor=Undefined, gridDash=Undefined, gridDashOffset=Undefined, - gridOpacity=Undefined, gridWidth=Undefined, labelAlign=Undefined, labelAngle=Undefined, - labelBaseline=Undefined, labelBound=Undefined, labelColor=Undefined, - labelExpr=Undefined, labelFlush=Undefined, labelFlushOffset=Undefined, - labelFont=Undefined, labelFontSize=Undefined, labelFontStyle=Undefined, - labelFontWeight=Undefined, labelLimit=Undefined, labelLineHeight=Undefined, - labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, - labelPadding=Undefined, labelSeparation=Undefined, labels=Undefined, - maxExtent=Undefined, minExtent=Undefined, offset=Undefined, orient=Undefined, - position=Undefined, style=Undefined, tickBand=Undefined, tickCap=Undefined, - tickColor=Undefined, tickCount=Undefined, tickDash=Undefined, tickDashOffset=Undefined, - tickExtra=Undefined, tickMinStep=Undefined, tickOffset=Undefined, - tickOpacity=Undefined, tickRound=Undefined, tickSize=Undefined, tickWidth=Undefined, - ticks=Undefined, title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, - titleAngle=Undefined, titleBaseline=Undefined, titleColor=Undefined, - titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, - titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, - titleOpacity=Undefined, titlePadding=Undefined, titleX=Undefined, titleY=Undefined, - translate=Undefined, values=Undefined, zindex=Undefined, **kwds): - super(AxisConfig, self).__init__(aria=aria, bandPosition=bandPosition, description=description, - disable=disable, domain=domain, domainCap=domainCap, - domainColor=domainColor, domainDash=domainDash, - domainDashOffset=domainDashOffset, domainOpacity=domainOpacity, - domainWidth=domainWidth, format=format, formatType=formatType, - grid=grid, gridCap=gridCap, gridColor=gridColor, - gridDash=gridDash, gridDashOffset=gridDashOffset, - gridOpacity=gridOpacity, gridWidth=gridWidth, - labelAlign=labelAlign, labelAngle=labelAngle, - labelBaseline=labelBaseline, labelBound=labelBound, - labelColor=labelColor, labelExpr=labelExpr, - labelFlush=labelFlush, labelFlushOffset=labelFlushOffset, - labelFont=labelFont, labelFontSize=labelFontSize, - labelFontStyle=labelFontStyle, labelFontWeight=labelFontWeight, - labelLimit=labelLimit, labelLineHeight=labelLineHeight, - labelOffset=labelOffset, labelOpacity=labelOpacity, - labelOverlap=labelOverlap, labelPadding=labelPadding, - labelSeparation=labelSeparation, labels=labels, - maxExtent=maxExtent, minExtent=minExtent, offset=offset, - orient=orient, position=position, style=style, - tickBand=tickBand, tickCap=tickCap, tickColor=tickColor, - tickCount=tickCount, tickDash=tickDash, - tickDashOffset=tickDashOffset, tickExtra=tickExtra, - tickMinStep=tickMinStep, tickOffset=tickOffset, - tickOpacity=tickOpacity, tickRound=tickRound, - tickSize=tickSize, tickWidth=tickWidth, ticks=ticks, - title=title, titleAlign=titleAlign, titleAnchor=titleAnchor, - titleAngle=titleAngle, titleBaseline=titleBaseline, - titleColor=titleColor, titleFont=titleFont, - titleFontSize=titleFontSize, titleFontStyle=titleFontStyle, - titleFontWeight=titleFontWeight, titleLimit=titleLimit, - titleLineHeight=titleLineHeight, titleOpacity=titleOpacity, - titlePadding=titlePadding, titleX=titleX, titleY=titleY, - translate=translate, values=values, zindex=zindex, **kwds) + + _schema = {"$ref": "#/definitions/AxisConfig"} + + def __init__( + self, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + bandPosition: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + disable: Union[bool, UndefinedType] = Undefined, + domain: Union[bool, UndefinedType] = Undefined, + domainCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + domainColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + domainDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + domainDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + domainOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + domainWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + grid: Union[bool, UndefinedType] = Undefined, + gridCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + gridColor: Union[ + Union[ + Union["ConditionalAxisColor", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + gridDash: Union[ + Union[ + Sequence[float], + Union["ConditionalAxisNumberArray", dict], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + gridDashOffset: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + gridOpacity: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + gridWidth: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ConditionalAxisLabelAlign", dict], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelBaseline: Union[ + Union[ + Union["ConditionalAxisLabelBaseline", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + labelBound: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union[bool, float]], + UndefinedType, + ] = Undefined, + labelColor: Union[ + Union[ + Union["ConditionalAxisColor", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFlush: Union[Union[bool, float], UndefinedType] = Undefined, + labelFlushOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelFont: Union[ + Union[ + Union["ConditionalAxisString", dict], + Union["ExprRef", "_Parameter", dict], + str, + ], + UndefinedType, + ] = Undefined, + labelFontSize: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelFontStyle: Union[ + Union[ + Union["ConditionalAxisLabelFontStyle", dict], + Union["ExprRef", "_Parameter", dict], + Union["FontStyle", str], + ], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union["ConditionalAxisLabelFontWeight", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOpacity: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelOverlap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["LabelOverlap", bool, str] + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + labelSeparation: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + maxExtent: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + minExtent: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union["AxisOrient", Literal["top", "bottom", "left", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + position: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tickBand: Union[ + Union[Literal["center", "extent"], Union["ExprRef", "_Parameter", dict]], + UndefinedType, + ] = Undefined, + tickCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + tickColor: Union[ + Union[ + Union["ConditionalAxisColor", dict], + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TimeInterval", + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + ], + Union["TimeIntervalStep", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickDash: Union[ + Union[ + Sequence[float], + Union["ConditionalAxisNumberArray", dict], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + tickDashOffset: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickExtra: Union[bool, UndefinedType] = Undefined, + tickMinStep: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tickOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tickOpacity: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickRound: Union[bool, UndefinedType] = Undefined, + tickSize: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + tickWidth: Union[ + Union[ + Union["ConditionalAxisNumber", dict], + Union["ExprRef", "_Parameter", dict], + float, + ], + UndefinedType, + ] = Undefined, + ticks: Union[bool, UndefinedType] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], + ], + UndefinedType, + ] = Undefined, + titleAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + titleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleX: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleY: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + values: Union[ + Union[ + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(AxisConfig, self).__init__( + aria=aria, + bandPosition=bandPosition, + description=description, + disable=disable, + domain=domain, + domainCap=domainCap, + domainColor=domainColor, + domainDash=domainDash, + domainDashOffset=domainDashOffset, + domainOpacity=domainOpacity, + domainWidth=domainWidth, + format=format, + formatType=formatType, + grid=grid, + gridCap=gridCap, + gridColor=gridColor, + gridDash=gridDash, + gridDashOffset=gridDashOffset, + gridOpacity=gridOpacity, + gridWidth=gridWidth, + labelAlign=labelAlign, + labelAngle=labelAngle, + labelBaseline=labelBaseline, + labelBound=labelBound, + labelColor=labelColor, + labelExpr=labelExpr, + labelFlush=labelFlush, + labelFlushOffset=labelFlushOffset, + labelFont=labelFont, + labelFontSize=labelFontSize, + labelFontStyle=labelFontStyle, + labelFontWeight=labelFontWeight, + labelLimit=labelLimit, + labelLineHeight=labelLineHeight, + labelOffset=labelOffset, + labelOpacity=labelOpacity, + labelOverlap=labelOverlap, + labelPadding=labelPadding, + labelSeparation=labelSeparation, + labels=labels, + maxExtent=maxExtent, + minExtent=minExtent, + offset=offset, + orient=orient, + position=position, + style=style, + tickBand=tickBand, + tickCap=tickCap, + tickColor=tickColor, + tickCount=tickCount, + tickDash=tickDash, + tickDashOffset=tickDashOffset, + tickExtra=tickExtra, + tickMinStep=tickMinStep, + tickOffset=tickOffset, + tickOpacity=tickOpacity, + tickRound=tickRound, + tickSize=tickSize, + tickWidth=tickWidth, + ticks=ticks, + title=title, + titleAlign=titleAlign, + titleAnchor=titleAnchor, + titleAngle=titleAngle, + titleBaseline=titleBaseline, + titleColor=titleColor, + titleFont=titleFont, + titleFontSize=titleFontSize, + titleFontStyle=titleFontStyle, + titleFontWeight=titleFontWeight, + titleLimit=titleLimit, + titleLineHeight=titleLineHeight, + titleOpacity=titleOpacity, + titlePadding=titlePadding, + titleX=titleX, + titleY=titleY, + translate=translate, + values=values, + zindex=zindex, + **kwds, + ) class AxisOrient(VegaLiteSchema): """AxisOrient schema wrapper - enum('top', 'bottom', 'left', 'right') + :class:`AxisOrient`, Literal['top', 'bottom', 'left', 'right'] """ - _schema = {'$ref': '#/definitions/AxisOrient'} + + _schema = {"$ref": "#/definitions/AxisOrient"} def __init__(self, *args): super(AxisOrient, self).__init__(*args) @@ -1523,29 +5032,40 @@ def __init__(self, *args): class AxisResolveMap(VegaLiteSchema): """AxisResolveMap schema wrapper - Mapping(required=[]) + :class:`AxisResolveMap`, Dict Parameters ---------- - x : :class:`ResolveMode` + x : :class:`ResolveMode`, Literal['independent', 'shared'] - y : :class:`ResolveMode` + y : :class:`ResolveMode`, Literal['independent', 'shared'] """ - _schema = {'$ref': '#/definitions/AxisResolveMap'} - def __init__(self, x=Undefined, y=Undefined, **kwds): + _schema = {"$ref": "#/definitions/AxisResolveMap"} + + def __init__( + self, + x: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + y: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + **kwds, + ): super(AxisResolveMap, self).__init__(x=x, y=y, **kwds) class BBox(VegaLiteSchema): """BBox schema wrapper - anyOf(List(float), List(float)) + :class:`BBox`, Sequence[float] Bounding box https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/BBox'} + + _schema = {"$ref": "#/definitions/BBox"} def __init__(self, *args, **kwds): super(BBox, self).__init__(*args, **kwds) @@ -1554,37 +5074,37 @@ def __init__(self, *args, **kwds): class BarConfig(AnyMarkConfig): """BarConfig schema wrapper - Mapping(required=[]) + :class:`BarConfig`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -1600,13 +5120,13 @@ class BarConfig(AnyMarkConfig): (preferred by statisticians) or 1 (Vega-Lite default, D3 example style). **Default value:** ``1`` - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -1623,70 +5143,70 @@ class BarConfig(AnyMarkConfig): The default size of the bars on continuous scales. **Default value:** ``5`` - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusEnd : anyOf(float, :class:`ExprRef`) + cornerRadiusEnd : :class:`ExprRef`, Dict[required=[expr]], float For vertical bars, top-left and top-right corner radius. For horizontal bars, top-right and bottom-right corner radius. - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - discreteBandSize : anyOf(float, :class:`RelativeBandSize`) + discreteBandSize : :class:`RelativeBandSize`, Dict[required=[band]], float The default size of the bars with discrete dimensions. If unspecified, the default size is ``step-2``, which provides 2 pixel offset between bars. - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -1696,28 +5216,28 @@ class BarConfig(AnyMarkConfig): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -1739,7 +5259,7 @@ class BarConfig(AnyMarkConfig): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -1748,28 +5268,28 @@ class BarConfig(AnyMarkConfig): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - minBandSize : anyOf(float, :class:`ExprRef`) + minBandSize : :class:`ExprRef`, Dict[required=[expr]], float The minimum band size for bar and rectangle marks. **Default value:** ``0.25`` - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -1781,24 +5301,24 @@ class BarConfig(AnyMarkConfig): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -1813,7 +5333,7 @@ class BarConfig(AnyMarkConfig): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -1830,56 +5350,56 @@ class BarConfig(AnyMarkConfig): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. timeUnitBandPosition : float @@ -1890,7 +5410,7 @@ class BarConfig(AnyMarkConfig): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -1905,200 +5425,1571 @@ class BarConfig(AnyMarkConfig): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. """ - _schema = {'$ref': '#/definitions/BarConfig'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, - binSpacing=Undefined, blend=Undefined, color=Undefined, continuousBandSize=Undefined, - cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, - cornerRadiusBottomRight=Undefined, cornerRadiusEnd=Undefined, - cornerRadiusTopLeft=Undefined, cornerRadiusTopRight=Undefined, cursor=Undefined, - description=Undefined, dir=Undefined, discreteBandSize=Undefined, dx=Undefined, - dy=Undefined, ellipsis=Undefined, endAngle=Undefined, fill=Undefined, - fillOpacity=Undefined, filled=Undefined, font=Undefined, fontSize=Undefined, - fontStyle=Undefined, fontWeight=Undefined, height=Undefined, href=Undefined, - innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, limit=Undefined, - lineBreak=Undefined, lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, - order=Undefined, orient=Undefined, outerRadius=Undefined, padAngle=Undefined, - radius=Undefined, radius2=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, - timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, tooltip=Undefined, - url=Undefined, width=Undefined, x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, - **kwds): - super(BarConfig, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - baseline=baseline, binSpacing=binSpacing, blend=blend, - 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, endAngle=endAngle, 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, - lineBreak=lineBreak, lineHeight=lineHeight, - minBandSize=minBandSize, opacity=opacity, order=order, - orient=orient, outerRadius=outerRadius, padAngle=padAngle, - radius=radius, radius2=radius2, shape=shape, size=size, - smooth=smooth, startAngle=startAngle, stroke=stroke, - strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOffset=strokeOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - tension=tension, text=text, theta=theta, theta2=theta2, - timeUnitBandPosition=timeUnitBandPosition, - timeUnitBandSize=timeUnitBandSize, tooltip=tooltip, url=url, - width=width, x=x, x2=x2, y=y, y2=y2, **kwds) + + _schema = {"$ref": "#/definitions/BarConfig"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + binSpacing: Union[float, UndefinedType] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + continuousBandSize: Union[float, UndefinedType] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusEnd: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + discreteBandSize: Union[ + Union[Union["RelativeBandSize", dict], float], UndefinedType + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + minBandSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + timeUnitBandPosition: Union[float, UndefinedType] = Undefined, + timeUnitBandSize: Union[float, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): + super(BarConfig, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + baseline=baseline, + binSpacing=binSpacing, + blend=blend, + 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, + endAngle=endAngle, + 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, + lineBreak=lineBreak, + lineHeight=lineHeight, + minBandSize=minBandSize, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOffset=strokeOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + tension=tension, + text=text, + theta=theta, + theta2=theta2, + timeUnitBandPosition=timeUnitBandPosition, + timeUnitBandSize=timeUnitBandSize, + tooltip=tooltip, + url=url, + width=width, + x=x, + x2=x2, + y=y, + y2=y2, + **kwds, + ) class BaseTitleNoValueRefs(VegaLiteSchema): """BaseTitleNoValueRefs schema wrapper - Mapping(required=[]) + :class:`BaseTitleNoValueRefs`, Dict Parameters ---------- - align : :class:`Align` + align : :class:`Align`, Literal['left', 'center', 'right'] Horizontal text alignment for title text. One of ``"left"``, ``"center"``, or ``"right"``. - anchor : anyOf(:class:`TitleAnchor`, :class:`ExprRef`) + anchor : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the title and subtitle text. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float Angle in degrees of title and subtitle text. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the title from the ARIA accessibility tree. **Default value:** ``true`` - baseline : :class:`TextBaseline` + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str Vertical text baseline for title and subtitle text. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - color : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Text color for title text. - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float Delta offset for title and subtitle text x-coordinate. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float Delta offset for title and subtitle text y-coordinate. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str Font name for title text. - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size in pixels for title text. - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style for title text. - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight for title text. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - frame : anyOf(anyOf(:class:`TitleFrame`, string), :class:`ExprRef`) + frame : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleFrame`, Literal['bounds', 'group'], str The reference frame for the anchor position, one of ``"bounds"`` (to anchor relative to the full bounding box) or ``"group"`` (to anchor relative to the group width or height). - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum allowed length in pixels of title and subtitle text. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The orthogonal offset in pixels by which to displace the title group from its position along the edge of the chart. - orient : anyOf(:class:`TitleOrient`, :class:`ExprRef`) + orient : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleOrient`, Literal['none', 'left', 'right', 'top', 'bottom'] Default title orientation ( ``"top"``, ``"bottom"``, ``"left"``, or ``"right"`` ) - subtitleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + subtitleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Text color for subtitle text. - subtitleFont : anyOf(string, :class:`ExprRef`) + subtitleFont : :class:`ExprRef`, Dict[required=[expr]], str Font name for subtitle text. - subtitleFontSize : anyOf(float, :class:`ExprRef`) + subtitleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size in pixels for subtitle text. - subtitleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + subtitleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style for subtitle text. - subtitleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + subtitleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight for subtitle text. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - subtitleLineHeight : anyOf(float, :class:`ExprRef`) + subtitleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line subtitle text. - subtitlePadding : anyOf(float, :class:`ExprRef`) + subtitlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding in pixels between title and subtitle text. - zindex : anyOf(float, :class:`ExprRef`) + zindex : :class:`ExprRef`, Dict[required=[expr]], float The integer z-index indicating the layering of the title group relative to other axis, mark, and legend groups. **Default value:** ``0``. """ - _schema = {'$ref': '#/definitions/BaseTitleNoValueRefs'} - - def __init__(self, align=Undefined, anchor=Undefined, angle=Undefined, aria=Undefined, - baseline=Undefined, color=Undefined, dx=Undefined, dy=Undefined, font=Undefined, - fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, frame=Undefined, - limit=Undefined, lineHeight=Undefined, offset=Undefined, orient=Undefined, - subtitleColor=Undefined, subtitleFont=Undefined, subtitleFontSize=Undefined, - subtitleFontStyle=Undefined, subtitleFontWeight=Undefined, - subtitleLineHeight=Undefined, subtitlePadding=Undefined, zindex=Undefined, **kwds): - super(BaseTitleNoValueRefs, self).__init__(align=align, anchor=anchor, angle=angle, aria=aria, - baseline=baseline, color=color, dx=dx, dy=dy, - font=font, fontSize=fontSize, fontStyle=fontStyle, - fontWeight=fontWeight, frame=frame, limit=limit, - lineHeight=lineHeight, offset=offset, orient=orient, - subtitleColor=subtitleColor, - subtitleFont=subtitleFont, - subtitleFontSize=subtitleFontSize, - subtitleFontStyle=subtitleFontStyle, - subtitleFontWeight=subtitleFontWeight, - subtitleLineHeight=subtitleLineHeight, - subtitlePadding=subtitlePadding, zindex=zindex, - **kwds) + + _schema = {"$ref": "#/definitions/BaseTitleNoValueRefs"} + + def __init__( + self, + align: Union[ + Union["Align", Literal["left", "center", "right"]], UndefinedType + ] = Undefined, + anchor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + frame: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["TitleFrame", Literal["bounds", "group"]], str], + ], + UndefinedType, + ] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleOrient", Literal["none", "left", "right", "top", "bottom"]], + ], + UndefinedType, + ] = Undefined, + subtitleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + subtitleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + subtitleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + subtitleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + subtitleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + subtitleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + subtitlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + zindex: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(BaseTitleNoValueRefs, self).__init__( + align=align, + anchor=anchor, + angle=angle, + aria=aria, + baseline=baseline, + color=color, + dx=dx, + dy=dy, + font=font, + fontSize=fontSize, + fontStyle=fontStyle, + fontWeight=fontWeight, + frame=frame, + limit=limit, + lineHeight=lineHeight, + offset=offset, + orient=orient, + subtitleColor=subtitleColor, + subtitleFont=subtitleFont, + subtitleFontSize=subtitleFontSize, + subtitleFontStyle=subtitleFontStyle, + subtitleFontWeight=subtitleFontWeight, + subtitleLineHeight=subtitleLineHeight, + subtitlePadding=subtitlePadding, + zindex=zindex, + **kwds, + ) class BinExtent(VegaLiteSchema): """BinExtent schema wrapper - anyOf(List(float), :class:`ParameterExtent`) + :class:`BinExtent`, :class:`ParameterExtent`, Dict[required=[param]], Sequence[float] """ - _schema = {'$ref': '#/definitions/BinExtent'} + + _schema = {"$ref": "#/definitions/BinExtent"} def __init__(self, *args, **kwds): super(BinExtent, self).__init__(*args, **kwds) @@ -2107,7 +6998,7 @@ def __init__(self, *args, **kwds): class BinParams(VegaLiteSchema): """BinParams schema wrapper - Mapping(required=[]) + :class:`BinParams`, Dict Binning properties or boolean flag for determining whether to bin data or not. Parameters @@ -2122,9 +7013,9 @@ class BinParams(VegaLiteSchema): The number base to use for automatic bin determination (default is base 10). **Default value:** ``10`` - binned : boolean + binned : bool When set to ``true``, Vega-Lite treats the input data as already binned. - divide : List(float) + divide : Sequence[float] Scale factors indicating allowable subdivisions. The default value is [5, 2], which indicates that for base 10 numbers (the default base), the method may consider dividing bin sizes by 5 and/or 2. For example, for an initial step size of 10, the @@ -2132,7 +7023,7 @@ class BinParams(VegaLiteSchema): also satisfy the given constraints. **Default value:** ``[5, 2]`` - extent : :class:`BinExtent` + extent : :class:`BinExtent`, :class:`ParameterExtent`, Dict[required=[param]], Sequence[float] A two-element ( ``[min, max]`` ) array indicating the range of desired bin values. maxbins : float Maximum number of bins. @@ -2141,7 +7032,7 @@ class BinParams(VegaLiteSchema): other channels minstep : float A minimum allowable step size (particularly useful for integer values). - nice : boolean + nice : bool If true, attempts to make the bin boundaries use human-friendly boundaries, such as multiples of ten. @@ -2150,26 +7041,58 @@ class BinParams(VegaLiteSchema): An exact step size to use between bins. **Note:** If provided, options such as maxbins will be ignored. - steps : List(float) + steps : Sequence[float] An array of allowable step sizes to choose from. """ - _schema = {'$ref': '#/definitions/BinParams'} - def __init__(self, anchor=Undefined, base=Undefined, binned=Undefined, divide=Undefined, - extent=Undefined, maxbins=Undefined, minstep=Undefined, nice=Undefined, step=Undefined, - steps=Undefined, **kwds): - super(BinParams, self).__init__(anchor=anchor, base=base, binned=binned, divide=divide, - extent=extent, maxbins=maxbins, minstep=minstep, nice=nice, - step=step, steps=steps, **kwds) + _schema = {"$ref": "#/definitions/BinParams"} + + def __init__( + self, + anchor: Union[float, UndefinedType] = Undefined, + base: Union[float, UndefinedType] = Undefined, + binned: Union[bool, UndefinedType] = Undefined, + divide: Union[Sequence[float], UndefinedType] = Undefined, + extent: Union[ + Union[ + "BinExtent", + Sequence[float], + Union["ParameterExtent", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + minstep: Union[float, UndefinedType] = Undefined, + nice: Union[bool, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + steps: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ): + super(BinParams, self).__init__( + anchor=anchor, + base=base, + binned=binned, + divide=divide, + extent=extent, + maxbins=maxbins, + minstep=minstep, + nice=nice, + step=step, + steps=steps, + **kwds, + ) class Binding(VegaLiteSchema): """Binding schema wrapper - anyOf(:class:`BindCheckbox`, :class:`BindRadioSelect`, :class:`BindRange`, - :class:`BindInput`, :class:`BindDirect`) + :class:`BindCheckbox`, Dict[required=[input]], :class:`BindDirect`, + Dict[required=[element]], :class:`BindInput`, Dict, :class:`BindRadioSelect`, + Dict[required=[input, options]], :class:`BindRange`, Dict[required=[input]], + :class:`Binding` """ - _schema = {'$ref': '#/definitions/Binding'} + + _schema = {"$ref": "#/definitions/Binding"} def __init__(self, *args, **kwds): super(Binding, self).__init__(*args, **kwds) @@ -2178,40 +7101,49 @@ def __init__(self, *args, **kwds): class BindCheckbox(Binding): """BindCheckbox schema wrapper - Mapping(required=[input]) + :class:`BindCheckbox`, Dict[required=[input]] Parameters ---------- - input : string + input : str debounce : float If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired. - element : :class:`Element` + element : :class:`Element`, str An optional CSS selector string indicating the parent element to which the input element should be added. By default, all input elements are added within the parent container of the Vega view. - name : string + name : str By default, the signal name is used to label input elements. This ``name`` property can be used instead to specify a custom label for the bound signal. """ - _schema = {'$ref': '#/definitions/BindCheckbox'} - def __init__(self, input=Undefined, debounce=Undefined, element=Undefined, name=Undefined, **kwds): - super(BindCheckbox, self).__init__(input=input, debounce=debounce, element=element, name=name, - **kwds) + _schema = {"$ref": "#/definitions/BindCheckbox"} + + def __init__( + self, + input: Union[str, UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + element: Union[Union["Element", str], UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(BindCheckbox, self).__init__( + input=input, debounce=debounce, element=element, name=name, **kwds + ) class BindDirect(Binding): """BindDirect schema wrapper - Mapping(required=[element]) + :class:`BindDirect`, Dict[required=[element]] Parameters ---------- - element : anyOf(:class:`Element`, Mapping(required=[])) + element : :class:`Element`, str, Dict An input element that exposes a *value* property and supports the `EventTarget `__ interface, or a CSS selector string to such an element. When the element updates and dispatches an @@ -2221,101 +7153,142 @@ class BindDirect(Binding): debounce : float If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired. - event : string + event : str The event (default ``"input"`` ) to listen for to track changes on the external element. """ - _schema = {'$ref': '#/definitions/BindDirect'} - def __init__(self, element=Undefined, debounce=Undefined, event=Undefined, **kwds): - super(BindDirect, self).__init__(element=element, debounce=debounce, event=event, **kwds) + _schema = {"$ref": "#/definitions/BindDirect"} + + def __init__( + self, + element: Union[Union[Union["Element", str], dict], UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + event: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(BindDirect, self).__init__( + element=element, debounce=debounce, event=event, **kwds + ) class BindInput(Binding): """BindInput schema wrapper - Mapping(required=[]) + :class:`BindInput`, Dict Parameters ---------- - autocomplete : string + autocomplete : str A hint for form autofill. See the `HTML autocomplete attribute `__ for additional information. debounce : float If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired. - element : :class:`Element` + element : :class:`Element`, str An optional CSS selector string indicating the parent element to which the input element should be added. By default, all input elements are added within the parent container of the Vega view. - input : string + input : str The type of input element to use. The valid values are ``"checkbox"``, ``"radio"``, ``"range"``, ``"select"``, and any other legal `HTML form input type `__. - name : string + name : str By default, the signal name is used to label input elements. This ``name`` property can be used instead to specify a custom label for the bound signal. - placeholder : string + placeholder : str Text that appears in the form control when it has no value set. """ - _schema = {'$ref': '#/definitions/BindInput'} - def __init__(self, autocomplete=Undefined, debounce=Undefined, element=Undefined, input=Undefined, - name=Undefined, placeholder=Undefined, **kwds): - super(BindInput, self).__init__(autocomplete=autocomplete, debounce=debounce, element=element, - input=input, name=name, placeholder=placeholder, **kwds) + _schema = {"$ref": "#/definitions/BindInput"} + + def __init__( + self, + autocomplete: Union[str, UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + element: Union[Union["Element", str], UndefinedType] = Undefined, + input: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + placeholder: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(BindInput, self).__init__( + autocomplete=autocomplete, + debounce=debounce, + element=element, + input=input, + name=name, + placeholder=placeholder, + **kwds, + ) class BindRadioSelect(Binding): """BindRadioSelect schema wrapper - Mapping(required=[input, options]) + :class:`BindRadioSelect`, Dict[required=[input, options]] Parameters ---------- - input : enum('radio', 'select') + input : Literal['radio', 'select'] - options : List(Any) + options : Sequence[Any] An array of options to select from. debounce : float If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired. - element : :class:`Element` + element : :class:`Element`, str An optional CSS selector string indicating the parent element to which the input element should be added. By default, all input elements are added within the parent container of the Vega view. - labels : List(string) + labels : Sequence[str] An array of label strings to represent the ``options`` values. If unspecified, the ``options`` value will be coerced to a string and used as the label. - name : string + name : str By default, the signal name is used to label input elements. This ``name`` property can be used instead to specify a custom label for the bound signal. """ - _schema = {'$ref': '#/definitions/BindRadioSelect'} - def __init__(self, input=Undefined, options=Undefined, debounce=Undefined, element=Undefined, - labels=Undefined, name=Undefined, **kwds): - super(BindRadioSelect, self).__init__(input=input, options=options, debounce=debounce, - element=element, labels=labels, name=name, **kwds) + _schema = {"$ref": "#/definitions/BindRadioSelect"} + + def __init__( + self, + input: Union[Literal["radio", "select"], UndefinedType] = Undefined, + options: Union[Sequence[Any], UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + element: Union[Union["Element", str], UndefinedType] = Undefined, + labels: Union[Sequence[str], UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(BindRadioSelect, self).__init__( + input=input, + options=options, + debounce=debounce, + element=element, + labels=labels, + name=name, + **kwds, + ) class BindRange(Binding): """BindRange schema wrapper - Mapping(required=[input]) + :class:`BindRange`, Dict[required=[input]] Parameters ---------- - input : string + input : str debounce : float If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired. - element : :class:`Element` + element : :class:`Element`, str An optional CSS selector string indicating the parent element to which the input element should be added. By default, all input elements are added within the parent container of the Vega view. @@ -2325,37 +7298,56 @@ class BindRange(Binding): min : float Sets the minimum slider value. Defaults to the smaller of the signal value and ``0``. - name : string + name : str By default, the signal name is used to label input elements. This ``name`` property can be used instead to specify a custom label for the bound signal. step : float Sets the minimum slider increment. If undefined, the step size will be automatically determined based on the ``min`` and ``max`` values. """ - _schema = {'$ref': '#/definitions/BindRange'} - def __init__(self, input=Undefined, debounce=Undefined, element=Undefined, max=Undefined, - min=Undefined, name=Undefined, step=Undefined, **kwds): - super(BindRange, self).__init__(input=input, debounce=debounce, element=element, max=max, - min=min, name=name, step=step, **kwds) + _schema = {"$ref": "#/definitions/BindRange"} + + def __init__( + self, + input: Union[str, UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + element: Union[Union["Element", str], UndefinedType] = Undefined, + max: Union[float, UndefinedType] = Undefined, + min: Union[float, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(BindRange, self).__init__( + input=input, + debounce=debounce, + element=element, + max=max, + min=min, + name=name, + step=step, + **kwds, + ) class BinnedTimeUnit(VegaLiteSchema): """BinnedTimeUnit schema wrapper - anyOf(enum('binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', - 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', + :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', + 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', + 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', + 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', + 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', + 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', + 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', + 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', - 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'), enum('binnedutcyear', - 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', - 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', - 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', - 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', - 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', - 'binnedutcyeardayofyear')) + 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'] """ - _schema = {'$ref': '#/definitions/BinnedTimeUnit'} + + _schema = {"$ref": "#/definitions/BinnedTimeUnit"} def __init__(self, *args, **kwds): super(BinnedTimeUnit, self).__init__(*args, **kwds) @@ -2364,11 +7356,12 @@ def __init__(self, *args, **kwds): class Blend(VegaLiteSchema): """Blend schema wrapper - enum(None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', - 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', - 'color', 'luminosity') + :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', + 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', + 'saturation', 'color', 'luminosity'] """ - _schema = {'$ref': '#/definitions/Blend'} + + _schema = {"$ref": "#/definitions/Blend"} def __init__(self, *args): super(Blend, self).__init__(*args) @@ -2377,14 +7370,14 @@ def __init__(self, *args): class BoxPlotConfig(VegaLiteSchema): """BoxPlotConfig schema wrapper - Mapping(required=[]) + :class:`BoxPlotConfig`, Dict Parameters ---------- - box : anyOf(boolean, :class:`AnyMarkConfig`) + box : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - extent : anyOf(string, float) + extent : float, str The extent of the whiskers. Available options include: @@ -2396,37 +7389,125 @@ class BoxPlotConfig(VegaLiteSchema): range ( *Q3-Q1* ). **Default value:** ``1.5``. - median : anyOf(boolean, :class:`AnyMarkConfig`) + median : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - outliers : anyOf(boolean, :class:`AnyMarkConfig`) + outliers : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - rule : anyOf(boolean, :class:`AnyMarkConfig`) + rule : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool size : float Size of the box and median tick of a box plot - ticks : anyOf(boolean, :class:`AnyMarkConfig`) - - """ - _schema = {'$ref': '#/definitions/BoxPlotConfig'} - - def __init__(self, box=Undefined, extent=Undefined, median=Undefined, outliers=Undefined, - rule=Undefined, size=Undefined, ticks=Undefined, **kwds): - super(BoxPlotConfig, self).__init__(box=box, extent=extent, median=median, outliers=outliers, - rule=rule, size=size, ticks=ticks, **kwds) + ticks : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool + + """ + + _schema = {"$ref": "#/definitions/BoxPlotConfig"} + + def __init__( + self, + box: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + extent: Union[Union[float, str], UndefinedType] = Undefined, + median: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + outliers: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + rule: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + size: Union[float, UndefinedType] = Undefined, + ticks: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(BoxPlotConfig, self).__init__( + box=box, + extent=extent, + median=median, + outliers=outliers, + rule=rule, + size=size, + ticks=ticks, + **kwds, + ) class BrushConfig(VegaLiteSchema): """BrushConfig schema wrapper - Mapping(required=[]) + :class:`BrushConfig`, Dict Parameters ---------- - cursor : :class:`Cursor` + cursor : :class:`Cursor`, 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'] The mouse cursor used over the interval mark. Any valid `CSS cursor type `__ can be used. - fill : :class:`Color` + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str The fill color of the interval mark. **Default value:** ``"#333333"`` @@ -2434,11 +7515,11 @@ class BrushConfig(VegaLiteSchema): The fill opacity of the interval mark (a value between ``0`` and ``1`` ). **Default value:** ``0.125`` - stroke : :class:`Color` + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str The stroke color of the interval mark. **Default value:** ``"#ffffff"`` - strokeDash : List(float) + strokeDash : Sequence[float] An array of alternating stroke and space lengths, for creating dashed or dotted lines. strokeDashOffset : float @@ -2448,23 +7529,426 @@ class BrushConfig(VegaLiteSchema): strokeWidth : float The stroke width of the interval mark. """ - _schema = {'$ref': '#/definitions/BrushConfig'} - def __init__(self, cursor=Undefined, fill=Undefined, fillOpacity=Undefined, stroke=Undefined, - strokeDash=Undefined, strokeDashOffset=Undefined, strokeOpacity=Undefined, - strokeWidth=Undefined, **kwds): - super(BrushConfig, self).__init__(cursor=cursor, fill=fill, fillOpacity=fillOpacity, - stroke=stroke, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, **kwds) + _schema = {"$ref": "#/definitions/BrushConfig"} + + def __init__( + self, + cursor: Union[ + Union[ + "Cursor", + 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", + ], + ], + UndefinedType, + ] = Undefined, + fill: Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[float, UndefinedType] = Undefined, + stroke: Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[Sequence[float], UndefinedType] = Undefined, + strokeDashOffset: Union[float, UndefinedType] = Undefined, + strokeOpacity: Union[float, UndefinedType] = Undefined, + strokeWidth: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(BrushConfig, self).__init__( + cursor=cursor, + fill=fill, + fillOpacity=fillOpacity, + stroke=stroke, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + **kwds, + ) class Color(VegaLiteSchema): """Color schema wrapper - anyOf(:class:`ColorName`, :class:`HexColor`, string) + :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str """ - _schema = {'$ref': '#/definitions/Color'} + + _schema = {"$ref": "#/definitions/Color"} def __init__(self, *args, **kwds): super(Color, self).__init__(*args, **kwds) @@ -2473,11 +7957,13 @@ def __init__(self, *args, **kwds): class ColorDef(VegaLiteSchema): """ColorDef schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, - :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`) + :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, + Dict[required=[shorthand]], + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict """ - _schema = {'$ref': '#/definitions/ColorDef'} + + _schema = {"$ref": "#/definitions/ColorDef"} def __init__(self, *args, **kwds): super(ColorDef, self).__init__(*args, **kwds) @@ -2486,15 +7972,15 @@ def __init__(self, *args, **kwds): class ColorName(Color): """ColorName schema wrapper - enum('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', + :class:`ColorName`, 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', @@ -2508,9 +7994,10 @@ class ColorName(Color): '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') + 'whitesmoke', 'yellowgreen', 'rebeccapurple'] """ - _schema = {'$ref': '#/definitions/ColorName'} + + _schema = {"$ref": "#/definitions/ColorName"} def __init__(self, *args): super(ColorName, self).__init__(*args) @@ -2519,10 +8006,74 @@ def __init__(self, *args): class ColorScheme(VegaLiteSchema): """ColorScheme schema wrapper - anyOf(:class:`Categorical`, :class:`SequentialSingleHue`, :class:`SequentialMultiHue`, - :class:`Diverging`, :class:`Cyclical`) + :class:`Categorical`, Literal['accent', 'category10', 'category20', 'category20b', + 'category20c', 'dark2', 'paired', 'pastel1', 'pastel2', 'set1', 'set2', 'set3', 'tableau10', + 'tableau20'], :class:`ColorScheme`, :class:`Cyclical`, Literal['rainbow', 'sinebow'], + :class:`Diverging`, Literal['blueorange', 'blueorange-3', 'blueorange-4', 'blueorange-5', + 'blueorange-6', 'blueorange-7', 'blueorange-8', 'blueorange-9', 'blueorange-10', + 'blueorange-11', 'brownbluegreen', 'brownbluegreen-3', 'brownbluegreen-4', + 'brownbluegreen-5', 'brownbluegreen-6', 'brownbluegreen-7', 'brownbluegreen-8', + 'brownbluegreen-9', 'brownbluegreen-10', 'brownbluegreen-11', 'purplegreen', + 'purplegreen-3', 'purplegreen-4', 'purplegreen-5', 'purplegreen-6', 'purplegreen-7', + 'purplegreen-8', 'purplegreen-9', 'purplegreen-10', 'purplegreen-11', 'pinkyellowgreen', + 'pinkyellowgreen-3', 'pinkyellowgreen-4', 'pinkyellowgreen-5', 'pinkyellowgreen-6', + 'pinkyellowgreen-7', 'pinkyellowgreen-8', 'pinkyellowgreen-9', 'pinkyellowgreen-10', + 'pinkyellowgreen-11', 'purpleorange', 'purpleorange-3', 'purpleorange-4', 'purpleorange-5', + 'purpleorange-6', 'purpleorange-7', 'purpleorange-8', 'purpleorange-9', 'purpleorange-10', + 'purpleorange-11', 'redblue', 'redblue-3', 'redblue-4', 'redblue-5', 'redblue-6', + 'redblue-7', 'redblue-8', 'redblue-9', 'redblue-10', 'redblue-11', 'redgrey', 'redgrey-3', + 'redgrey-4', 'redgrey-5', 'redgrey-6', 'redgrey-7', 'redgrey-8', 'redgrey-9', 'redgrey-10', + 'redgrey-11', 'redyellowblue', 'redyellowblue-3', 'redyellowblue-4', 'redyellowblue-5', + 'redyellowblue-6', 'redyellowblue-7', 'redyellowblue-8', 'redyellowblue-9', + 'redyellowblue-10', 'redyellowblue-11', 'redyellowgreen', 'redyellowgreen-3', + 'redyellowgreen-4', 'redyellowgreen-5', 'redyellowgreen-6', 'redyellowgreen-7', + 'redyellowgreen-8', 'redyellowgreen-9', 'redyellowgreen-10', 'redyellowgreen-11', + 'spectral', 'spectral-3', 'spectral-4', 'spectral-5', 'spectral-6', 'spectral-7', + 'spectral-8', 'spectral-9', 'spectral-10', 'spectral-11'], :class:`SequentialMultiHue`, + Literal['turbo', 'viridis', 'inferno', 'magma', 'plasma', 'cividis', 'bluegreen', + 'bluegreen-3', 'bluegreen-4', 'bluegreen-5', 'bluegreen-6', 'bluegreen-7', 'bluegreen-8', + 'bluegreen-9', 'bluepurple', 'bluepurple-3', 'bluepurple-4', 'bluepurple-5', 'bluepurple-6', + 'bluepurple-7', 'bluepurple-8', 'bluepurple-9', 'goldgreen', 'goldgreen-3', 'goldgreen-4', + 'goldgreen-5', 'goldgreen-6', 'goldgreen-7', 'goldgreen-8', 'goldgreen-9', 'goldorange', + 'goldorange-3', 'goldorange-4', 'goldorange-5', 'goldorange-6', 'goldorange-7', + 'goldorange-8', 'goldorange-9', 'goldred', 'goldred-3', 'goldred-4', 'goldred-5', + 'goldred-6', 'goldred-7', 'goldred-8', 'goldred-9', 'greenblue', 'greenblue-3', + 'greenblue-4', 'greenblue-5', 'greenblue-6', 'greenblue-7', 'greenblue-8', 'greenblue-9', + 'orangered', 'orangered-3', 'orangered-4', 'orangered-5', 'orangered-6', 'orangered-7', + 'orangered-8', 'orangered-9', 'purplebluegreen', 'purplebluegreen-3', 'purplebluegreen-4', + 'purplebluegreen-5', 'purplebluegreen-6', 'purplebluegreen-7', 'purplebluegreen-8', + 'purplebluegreen-9', 'purpleblue', 'purpleblue-3', 'purpleblue-4', 'purpleblue-5', + 'purpleblue-6', 'purpleblue-7', 'purpleblue-8', 'purpleblue-9', 'purplered', 'purplered-3', + 'purplered-4', 'purplered-5', 'purplered-6', 'purplered-7', 'purplered-8', 'purplered-9', + 'redpurple', 'redpurple-3', 'redpurple-4', 'redpurple-5', 'redpurple-6', 'redpurple-7', + 'redpurple-8', 'redpurple-9', 'yellowgreenblue', 'yellowgreenblue-3', 'yellowgreenblue-4', + 'yellowgreenblue-5', 'yellowgreenblue-6', 'yellowgreenblue-7', 'yellowgreenblue-8', + 'yellowgreenblue-9', 'yellowgreen', 'yellowgreen-3', 'yellowgreen-4', 'yellowgreen-5', + 'yellowgreen-6', 'yellowgreen-7', 'yellowgreen-8', 'yellowgreen-9', 'yelloworangebrown', + 'yelloworangebrown-3', 'yelloworangebrown-4', 'yelloworangebrown-5', 'yelloworangebrown-6', + 'yelloworangebrown-7', 'yelloworangebrown-8', 'yelloworangebrown-9', 'yelloworangered', + 'yelloworangered-3', 'yelloworangered-4', 'yelloworangered-5', 'yelloworangered-6', + 'yelloworangered-7', 'yelloworangered-8', 'yelloworangered-9', 'darkblue', 'darkblue-3', + 'darkblue-4', 'darkblue-5', 'darkblue-6', 'darkblue-7', 'darkblue-8', 'darkblue-9', + 'darkgold', 'darkgold-3', 'darkgold-4', 'darkgold-5', 'darkgold-6', 'darkgold-7', + 'darkgold-8', 'darkgold-9', 'darkgreen', 'darkgreen-3', 'darkgreen-4', 'darkgreen-5', + 'darkgreen-6', 'darkgreen-7', 'darkgreen-8', 'darkgreen-9', 'darkmulti', 'darkmulti-3', + 'darkmulti-4', 'darkmulti-5', 'darkmulti-6', 'darkmulti-7', 'darkmulti-8', 'darkmulti-9', + 'darkred', 'darkred-3', 'darkred-4', 'darkred-5', 'darkred-6', 'darkred-7', 'darkred-8', + 'darkred-9', 'lightgreyred', 'lightgreyred-3', 'lightgreyred-4', 'lightgreyred-5', + 'lightgreyred-6', 'lightgreyred-7', 'lightgreyred-8', 'lightgreyred-9', 'lightgreyteal', + 'lightgreyteal-3', 'lightgreyteal-4', 'lightgreyteal-5', 'lightgreyteal-6', + 'lightgreyteal-7', 'lightgreyteal-8', 'lightgreyteal-9', 'lightmulti', 'lightmulti-3', + 'lightmulti-4', 'lightmulti-5', 'lightmulti-6', 'lightmulti-7', 'lightmulti-8', + 'lightmulti-9', 'lightorange', 'lightorange-3', 'lightorange-4', 'lightorange-5', + 'lightorange-6', 'lightorange-7', 'lightorange-8', 'lightorange-9', 'lighttealblue', + 'lighttealblue-3', 'lighttealblue-4', 'lighttealblue-5', 'lighttealblue-6', + 'lighttealblue-7', 'lighttealblue-8', 'lighttealblue-9'], :class:`SequentialSingleHue`, + Literal['blues', 'tealblues', 'teals', 'greens', 'browns', 'greys', 'purples', 'warmgreys', + 'reds', 'oranges'] """ - _schema = {'$ref': '#/definitions/ColorScheme'} + + _schema = {"$ref": "#/definitions/ColorScheme"} def __init__(self, *args, **kwds): super(ColorScheme, self).__init__(*args, **kwds) @@ -2531,10 +8082,12 @@ def __init__(self, *args, **kwds): class Categorical(ColorScheme): """Categorical schema wrapper - enum('accent', 'category10', 'category20', 'category20b', 'category20c', 'dark2', 'paired', - 'pastel1', 'pastel2', 'set1', 'set2', 'set3', 'tableau10', 'tableau20') + :class:`Categorical`, Literal['accent', 'category10', 'category20', 'category20b', + 'category20c', 'dark2', 'paired', 'pastel1', 'pastel2', 'set1', 'set2', 'set3', 'tableau10', + 'tableau20'] """ - _schema = {'$ref': '#/definitions/Categorical'} + + _schema = {"$ref": "#/definitions/Categorical"} def __init__(self, *args): super(Categorical, self).__init__(*args) @@ -2543,9 +8096,11 @@ def __init__(self, *args): class CompositeMark(AnyMark): """CompositeMark schema wrapper - anyOf(:class:`BoxPlot`, :class:`ErrorBar`, :class:`ErrorBand`) + :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, + str """ - _schema = {'$ref': '#/definitions/CompositeMark'} + + _schema = {"$ref": "#/definitions/CompositeMark"} def __init__(self, *args, **kwds): super(CompositeMark, self).__init__(*args, **kwds) @@ -2554,9 +8109,10 @@ def __init__(self, *args, **kwds): class BoxPlot(CompositeMark): """BoxPlot schema wrapper - string + :class:`BoxPlot`, str """ - _schema = {'$ref': '#/definitions/BoxPlot'} + + _schema = {"$ref": "#/definitions/BoxPlot"} def __init__(self, *args): super(BoxPlot, self).__init__(*args) @@ -2565,9 +8121,11 @@ def __init__(self, *args): class CompositeMarkDef(AnyMark): """CompositeMarkDef schema wrapper - anyOf(:class:`BoxPlotDef`, :class:`ErrorBarDef`, :class:`ErrorBandDef`) + :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, + :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]] """ - _schema = {'$ref': '#/definitions/CompositeMarkDef'} + + _schema = {"$ref": "#/definitions/CompositeMarkDef"} def __init__(self, *args, **kwds): super(CompositeMarkDef, self).__init__(*args, **kwds) @@ -2576,21 +8134,21 @@ def __init__(self, *args, **kwds): class BoxPlotDef(CompositeMarkDef): """BoxPlotDef schema wrapper - Mapping(required=[type]) + :class:`BoxPlotDef`, Dict[required=[type]] Parameters ---------- - type : :class:`BoxPlot` + type : :class:`BoxPlot`, str The mark type. This could a primitive mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"geoshape"``, ``"rule"``, and ``"text"`` ) or a composite mark type ( ``"boxplot"``, ``"errorband"``, ``"errorbar"`` ). - box : anyOf(boolean, :class:`AnyMarkConfig`) + box : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - clip : boolean + clip : bool Whether a composite mark be clipped to the enclosing group’s width and height. - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -2603,7 +8161,7 @@ class BoxPlotDef(CompositeMarkDef): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - extent : anyOf(string, float) + extent : float, str The extent of the whiskers. Available options include: @@ -2615,7 +8173,7 @@ class BoxPlotDef(CompositeMarkDef): range ( *Q3-Q1* ). **Default value:** ``1.5``. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -2624,39 +8182,307 @@ class BoxPlotDef(CompositeMarkDef): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - median : anyOf(boolean, :class:`AnyMarkConfig`) + median : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool opacity : float The opacity (value between [0,1]) of the mark. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] Orientation of the box plot. This is normally automatically determined based on types of fields on x and y channels. However, an explicit ``orient`` be specified when the orientation is ambiguous. **Default value:** ``"vertical"``. - outliers : anyOf(boolean, :class:`AnyMarkConfig`) + outliers : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - rule : anyOf(boolean, :class:`AnyMarkConfig`) + rule : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool size : float Size of the box and median tick of a box plot - ticks : anyOf(boolean, :class:`AnyMarkConfig`) - - """ - _schema = {'$ref': '#/definitions/BoxPlotDef'} - - def __init__(self, type=Undefined, box=Undefined, clip=Undefined, color=Undefined, extent=Undefined, - invalid=Undefined, median=Undefined, opacity=Undefined, orient=Undefined, - outliers=Undefined, rule=Undefined, size=Undefined, ticks=Undefined, **kwds): - super(BoxPlotDef, self).__init__(type=type, 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) + ticks : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool + + """ + + _schema = {"$ref": "#/definitions/BoxPlotDef"} + + def __init__( + self, + type: Union[Union["BoxPlot", str], UndefinedType] = Undefined, + box: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + clip: Union[bool, UndefinedType] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + extent: Union[Union[float, str], UndefinedType] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + median: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + opacity: Union[float, UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outliers: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + rule: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + size: Union[float, UndefinedType] = Undefined, + ticks: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(BoxPlotDef, self).__init__( + type=type, + 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, + ) class CompositionConfig(VegaLiteSchema): """CompositionConfig schema wrapper - Mapping(required=[]) + :class:`CompositionConfig`, Dict Parameters ---------- @@ -2684,18 +8510,28 @@ class CompositionConfig(VegaLiteSchema): **Default value** : ``20`` """ - _schema = {'$ref': '#/definitions/CompositionConfig'} - def __init__(self, columns=Undefined, spacing=Undefined, **kwds): - super(CompositionConfig, self).__init__(columns=columns, spacing=spacing, **kwds) + _schema = {"$ref": "#/definitions/CompositionConfig"} + + def __init__( + self, + columns: Union[float, UndefinedType] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(CompositionConfig, self).__init__( + columns=columns, spacing=spacing, **kwds + ) class ConditionalAxisColor(VegaLiteSchema): """ConditionalAxisColor schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisColor`, Dict[required=[condition, expr]], Dict[required=[condition, + value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisColor'} + + _schema = {"$ref": "#/definitions/ConditionalAxisColor"} def __init__(self, *args, **kwds): super(ConditionalAxisColor, self).__init__(*args, **kwds) @@ -2704,9 +8540,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisLabelAlign(VegaLiteSchema): """ConditionalAxisLabelAlign schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisLabelAlign`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisLabelAlign'} + + _schema = {"$ref": "#/definitions/ConditionalAxisLabelAlign"} def __init__(self, *args, **kwds): super(ConditionalAxisLabelAlign, self).__init__(*args, **kwds) @@ -2715,9 +8553,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisLabelBaseline(VegaLiteSchema): """ConditionalAxisLabelBaseline schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisLabelBaseline`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisLabelBaseline'} + + _schema = {"$ref": "#/definitions/ConditionalAxisLabelBaseline"} def __init__(self, *args, **kwds): super(ConditionalAxisLabelBaseline, self).__init__(*args, **kwds) @@ -2726,9 +8566,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisLabelFontStyle(VegaLiteSchema): """ConditionalAxisLabelFontStyle schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisLabelFontStyle`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisLabelFontStyle'} + + _schema = {"$ref": "#/definitions/ConditionalAxisLabelFontStyle"} def __init__(self, *args, **kwds): super(ConditionalAxisLabelFontStyle, self).__init__(*args, **kwds) @@ -2737,9 +8579,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisLabelFontWeight(VegaLiteSchema): """ConditionalAxisLabelFontWeight schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisLabelFontWeight`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisLabelFontWeight'} + + _schema = {"$ref": "#/definitions/ConditionalAxisLabelFontWeight"} def __init__(self, *args, **kwds): super(ConditionalAxisLabelFontWeight, self).__init__(*args, **kwds) @@ -2748,9 +8592,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisNumber(VegaLiteSchema): """ConditionalAxisNumber schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisNumber`, Dict[required=[condition, expr]], Dict[required=[condition, + value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisNumber'} + + _schema = {"$ref": "#/definitions/ConditionalAxisNumber"} def __init__(self, *args, **kwds): super(ConditionalAxisNumber, self).__init__(*args, **kwds) @@ -2759,9 +8605,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisNumberArray(VegaLiteSchema): """ConditionalAxisNumberArray schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisNumberArray`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisNumberArray'} + + _schema = {"$ref": "#/definitions/ConditionalAxisNumberArray"} def __init__(self, *args, **kwds): super(ConditionalAxisNumberArray, self).__init__(*args, **kwds) @@ -2770,9 +8618,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertyAlignnull(VegaLiteSchema): """ConditionalAxisPropertyAlignnull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertyAlignnull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(Align|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(Align|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertyAlignnull, self).__init__(*args, **kwds) @@ -2781,9 +8631,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertyColornull(VegaLiteSchema): """ConditionalAxisPropertyColornull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertyColornull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(Color|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(Color|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertyColornull, self).__init__(*args, **kwds) @@ -2792,9 +8644,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertyFontStylenull(VegaLiteSchema): """ConditionalAxisPropertyFontStylenull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertyFontStylenull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(FontStyle|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(FontStyle|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertyFontStylenull, self).__init__(*args, **kwds) @@ -2803,9 +8657,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertyFontWeightnull(VegaLiteSchema): """ConditionalAxisPropertyFontWeightnull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertyFontWeightnull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(FontWeight|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(FontWeight|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertyFontWeightnull, self).__init__(*args, **kwds) @@ -2814,9 +8670,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertyTextBaselinenull(VegaLiteSchema): """ConditionalAxisPropertyTextBaselinenull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertyTextBaselinenull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(TextBaseline|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(TextBaseline|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertyTextBaselinenull, self).__init__(*args, **kwds) @@ -2825,9 +8683,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertynumberArraynull(VegaLiteSchema): """ConditionalAxisPropertynumberArraynull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertynumberArraynull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(number[]|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(number[]|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertynumberArraynull, self).__init__(*args, **kwds) @@ -2836,9 +8696,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertynumbernull(VegaLiteSchema): """ConditionalAxisPropertynumbernull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertynumbernull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(number|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(number|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertynumbernull, self).__init__(*args, **kwds) @@ -2847,9 +8709,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisPropertystringnull(VegaLiteSchema): """ConditionalAxisPropertystringnull schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisPropertystringnull`, Dict[required=[condition, expr]], + Dict[required=[condition, value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisProperty<(string|null)>'} + + _schema = {"$ref": "#/definitions/ConditionalAxisProperty<(string|null)>"} def __init__(self, *args, **kwds): super(ConditionalAxisPropertystringnull, self).__init__(*args, **kwds) @@ -2858,9 +8722,11 @@ def __init__(self, *args, **kwds): class ConditionalAxisString(VegaLiteSchema): """ConditionalAxisString schema wrapper - anyOf(Mapping(required=[condition, value]), Mapping(required=[condition, expr])) + :class:`ConditionalAxisString`, Dict[required=[condition, expr]], Dict[required=[condition, + value]] """ - _schema = {'$ref': '#/definitions/ConditionalAxisString'} + + _schema = {"$ref": "#/definitions/ConditionalAxisString"} def __init__(self, *args, **kwds): super(ConditionalAxisString, self).__init__(*args, **kwds) @@ -2869,10 +8735,12 @@ def __init__(self, *args, **kwds): class ConditionalMarkPropFieldOrDatumDef(VegaLiteSchema): """ConditionalMarkPropFieldOrDatumDef schema wrapper - anyOf(:class:`ConditionalPredicateMarkPropFieldOrDatumDef`, - :class:`ConditionalParameterMarkPropFieldOrDatumDef`) + :class:`ConditionalMarkPropFieldOrDatumDef`, + :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], + :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]] """ - _schema = {'$ref': '#/definitions/ConditionalMarkPropFieldOrDatumDef'} + + _schema = {"$ref": "#/definitions/ConditionalMarkPropFieldOrDatumDef"} def __init__(self, *args, **kwds): super(ConditionalMarkPropFieldOrDatumDef, self).__init__(*args, **kwds) @@ -2881,143 +8749,207 @@ def __init__(self, *args, **kwds): class ConditionalMarkPropFieldOrDatumDefTypeForShape(VegaLiteSchema): """ConditionalMarkPropFieldOrDatumDefTypeForShape schema wrapper - anyOf(:class:`ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape`, - :class:`ConditionalParameterMarkPropFieldOrDatumDefTypeForShape`) + :class:`ConditionalMarkPropFieldOrDatumDefTypeForShape`, + :class:`ConditionalParameterMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[param]], + :class:`ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[test]] """ - _schema = {'$ref': '#/definitions/ConditionalMarkPropFieldOrDatumDef'} + + _schema = {"$ref": "#/definitions/ConditionalMarkPropFieldOrDatumDef"} def __init__(self, *args, **kwds): - super(ConditionalMarkPropFieldOrDatumDefTypeForShape, self).__init__(*args, **kwds) + super(ConditionalMarkPropFieldOrDatumDefTypeForShape, self).__init__( + *args, **kwds + ) class ConditionalParameterMarkPropFieldOrDatumDef(ConditionalMarkPropFieldOrDatumDef): """ConditionalParameterMarkPropFieldOrDatumDef schema wrapper - anyOf(Mapping(required=[param]), Mapping(required=[param])) + :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]] """ - _schema = {'$ref': '#/definitions/ConditionalParameter'} + + _schema = {"$ref": "#/definitions/ConditionalParameter"} def __init__(self, *args, **kwds): super(ConditionalParameterMarkPropFieldOrDatumDef, self).__init__(*args, **kwds) -class ConditionalParameterMarkPropFieldOrDatumDefTypeForShape(ConditionalMarkPropFieldOrDatumDefTypeForShape): +class ConditionalParameterMarkPropFieldOrDatumDefTypeForShape( + ConditionalMarkPropFieldOrDatumDefTypeForShape +): """ConditionalParameterMarkPropFieldOrDatumDefTypeForShape schema wrapper - anyOf(Mapping(required=[param]), Mapping(required=[param])) + :class:`ConditionalParameterMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[param]] """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} + + _schema = { + "$ref": "#/definitions/ConditionalParameter>" + } def __init__(self, *args, **kwds): - super(ConditionalParameterMarkPropFieldOrDatumDefTypeForShape, self).__init__(*args, **kwds) + super(ConditionalParameterMarkPropFieldOrDatumDefTypeForShape, self).__init__( + *args, **kwds + ) class ConditionalPredicateMarkPropFieldOrDatumDef(ConditionalMarkPropFieldOrDatumDef): """ConditionalPredicateMarkPropFieldOrDatumDef schema wrapper - anyOf(Mapping(required=[test]), Mapping(required=[test])) + :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate'} + + _schema = {"$ref": "#/definitions/ConditionalPredicate"} def __init__(self, *args, **kwds): super(ConditionalPredicateMarkPropFieldOrDatumDef, self).__init__(*args, **kwds) -class ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape(ConditionalMarkPropFieldOrDatumDefTypeForShape): +class ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape( + ConditionalMarkPropFieldOrDatumDefTypeForShape +): """ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape schema wrapper - anyOf(Mapping(required=[test]), Mapping(required=[test])) + :class:`ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[test]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape, self).__init__(*args, **kwds) + super(ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefAlignnullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefAlignnullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefAlignnullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(Align|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(Align|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefAlignnullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefAlignnullExprRef, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefColornullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefColornullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefColornullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(Color|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(Color|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefColornullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefColornullExprRef, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefFontStylenullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefFontStylenullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefFontStylenullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(FontStyle|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(FontStyle|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefFontStylenullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefFontStylenullExprRef, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefFontWeightnullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefFontWeightnullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefFontWeightnullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(FontWeight|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(FontWeight|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefFontWeightnullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefFontWeightnullExprRef, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefTextBaselinenullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefTextBaselinenullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefTextBaselinenullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(TextBaseline|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(TextBaseline|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefTextBaselinenullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefTextBaselinenullExprRef, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefnumberArraynullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefnumberArraynullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefnumberArraynullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(number[]|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(number[]|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefnumberArraynullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefnumberArraynullExprRef, self).__init__( + *args, **kwds + ) class ConditionalPredicateValueDefnumbernullExprRef(VegaLiteSchema): """ConditionalPredicateValueDefnumbernullExprRef schema wrapper - anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test])) + :class:`ConditionalPredicateValueDefnumbernullExprRef`, Dict[required=[expr, test]], + Dict[required=[test, value]] """ - _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(number|null)>|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalPredicate<(ValueDef<(number|null)>|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalPredicateValueDefnumbernullExprRef, self).__init__(*args, **kwds) + super(ConditionalPredicateValueDefnumbernullExprRef, self).__init__( + *args, **kwds + ) class ConditionalStringFieldDef(VegaLiteSchema): """ConditionalStringFieldDef schema wrapper - anyOf(:class:`ConditionalPredicateStringFieldDef`, - :class:`ConditionalParameterStringFieldDef`) + :class:`ConditionalParameterStringFieldDef`, Dict[required=[param]], + :class:`ConditionalPredicateStringFieldDef`, Dict[required=[test]], + :class:`ConditionalStringFieldDef` """ - _schema = {'$ref': '#/definitions/ConditionalStringFieldDef'} + + _schema = {"$ref": "#/definitions/ConditionalStringFieldDef"} def __init__(self, *args, **kwds): super(ConditionalStringFieldDef, self).__init__(*args, **kwds) @@ -3026,14 +8958,14 @@ def __init__(self, *args, **kwds): class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): """ConditionalParameterStringFieldDef schema wrapper - Mapping(required=[param]) + :class:`ConditionalParameterStringFieldDef`, Dict[required=[param]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -3045,7 +8977,7 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -3066,10 +8998,10 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): **See also:** `bin `__ documentation. - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -3084,7 +9016,7 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -3107,7 +9039,7 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -3118,7 +9050,7 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -3127,7 +9059,7 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -3147,7 +9079,7 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -3217,30 +9149,246 @@ class ConditionalParameterStringFieldDef(ConditionalStringFieldDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/ConditionalParameter'} - def __init__(self, param=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - empty=Undefined, field=Undefined, format=Undefined, formatType=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(ConditionalParameterStringFieldDef, self).__init__(param=param, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, - empty=empty, field=field, - format=format, formatType=formatType, - timeUnit=timeUnit, title=title, - type=type, **kwds) + _schema = {"$ref": "#/definitions/ConditionalParameter"} + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ConditionalParameterStringFieldDef, self).__init__( + param=param, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + empty=empty, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): """ConditionalPredicateStringFieldDef schema wrapper - Mapping(required=[test]) + :class:`ConditionalPredicateStringFieldDef`, Dict[required=[test]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -3252,7 +9400,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -3273,7 +9421,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -3288,7 +9436,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -3311,7 +9459,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -3322,7 +9470,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -3331,7 +9479,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -3351,7 +9499,7 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -3421,86 +9569,397 @@ class ConditionalPredicateStringFieldDef(ConditionalStringFieldDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/ConditionalPredicate'} - def __init__(self, test=Undefined, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, format=Undefined, formatType=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(ConditionalPredicateStringFieldDef, self).__init__(test=test, aggregate=aggregate, - bandPosition=bandPosition, bin=bin, - field=field, format=format, - formatType=formatType, - timeUnit=timeUnit, title=title, - type=type, **kwds) + _schema = {"$ref": "#/definitions/ConditionalPredicate"} + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateStringFieldDef, self).__init__( + test=test, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class ConditionalValueDefGradientstringnullExprRef(VegaLiteSchema): """ConditionalValueDefGradientstringnullExprRef schema wrapper - anyOf(:class:`ConditionalPredicateValueDefGradientstringnullExprRef`, - :class:`ConditionalParameterValueDefGradientstringnullExprRef`) + :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, + value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, + Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef<(Gradient|string|null|ExprRef)>'} + + _schema = { + "$ref": "#/definitions/ConditionalValueDef<(Gradient|string|null|ExprRef)>" + } def __init__(self, *args, **kwds): - super(ConditionalValueDefGradientstringnullExprRef, self).__init__(*args, **kwds) + super(ConditionalValueDefGradientstringnullExprRef, self).__init__( + *args, **kwds + ) -class ConditionalParameterValueDefGradientstringnullExprRef(ConditionalValueDefGradientstringnullExprRef): +class ConditionalParameterValueDefGradientstringnullExprRef( + ConditionalValueDefGradientstringnullExprRef +): """ConditionalParameterValueDefGradientstringnullExprRef schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, + value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefGradientstringnullExprRef, self).__init__(param=param, - value=value, - empty=empty, **kwds) - -class ConditionalPredicateValueDefGradientstringnullExprRef(ConditionalValueDefGradientstringnullExprRef): + _schema = { + "$ref": "#/definitions/ConditionalParameter>" + } + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefGradientstringnullExprRef, self).__init__( + param=param, value=value, empty=empty, **kwds + ) + + +class ConditionalPredicateValueDefGradientstringnullExprRef( + ConditionalValueDefGradientstringnullExprRef +): """ConditionalPredicateValueDefGradientstringnullExprRef schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefGradientstringnullExprRef, self).__init__(test=test, - value=value, **kwds) + _schema = { + "$ref": "#/definitions/ConditionalPredicate>" + } + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefGradientstringnullExprRef, self).__init__( + test=test, value=value, **kwds + ) class ConditionalValueDefTextExprRef(VegaLiteSchema): """ConditionalValueDefTextExprRef schema wrapper - anyOf(:class:`ConditionalPredicateValueDefTextExprRef`, - :class:`ConditionalParameterValueDefTextExprRef`) + :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], + :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], + :class:`ConditionalValueDefTextExprRef` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef<(Text|ExprRef)>'} + + _schema = {"$ref": "#/definitions/ConditionalValueDef<(Text|ExprRef)>"} def __init__(self, *args, **kwds): super(ConditionalValueDefTextExprRef, self).__init__(*args, **kwds) @@ -3509,56 +9968,105 @@ def __init__(self, *args, **kwds): class ConditionalParameterValueDefTextExprRef(ConditionalValueDefTextExprRef): """ConditionalParameterValueDefTextExprRef schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - value : anyOf(:class:`Text`, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefTextExprRef, self).__init__(param=param, value=value, - empty=empty, **kwds) + _schema = {"$ref": "#/definitions/ConditionalParameter>"} + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefTextExprRef, self).__init__( + param=param, value=value, empty=empty, **kwds + ) class ConditionalPredicateValueDefTextExprRef(ConditionalValueDefTextExprRef): """ConditionalPredicateValueDefTextExprRef schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - value : anyOf(:class:`Text`, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefTextExprRef, self).__init__(test=test, value=value, **kwds) + _schema = {"$ref": "#/definitions/ConditionalPredicate>"} + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefTextExprRef, self).__init__( + test=test, value=value, **kwds + ) class ConditionalValueDefnumber(VegaLiteSchema): """ConditionalValueDefnumber schema wrapper - anyOf(:class:`ConditionalPredicateValueDefnumber`, - :class:`ConditionalParameterValueDefnumber`) + :class:`ConditionalParameterValueDefnumber`, Dict[required=[param, value]], + :class:`ConditionalPredicateValueDefnumber`, Dict[required=[test, value]], + :class:`ConditionalValueDefnumber` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef'} + + _schema = {"$ref": "#/definitions/ConditionalValueDef"} def __init__(self, *args, **kwds): super(ConditionalValueDefnumber, self).__init__(*args, **kwds) @@ -3567,115 +10075,204 @@ def __init__(self, *args, **kwds): class ConditionalParameterValueDefnumber(ConditionalValueDefnumber): """ConditionalParameterValueDefnumber schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefnumber`, Dict[required=[param, value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. value : float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefnumber, self).__init__(param=param, value=value, empty=empty, - **kwds) + _schema = {"$ref": "#/definitions/ConditionalParameter>"} + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[float, UndefinedType] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefnumber, self).__init__( + param=param, value=value, empty=empty, **kwds + ) class ConditionalPredicateValueDefnumber(ConditionalValueDefnumber): """ConditionalPredicateValueDefnumber schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefnumber`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition value : float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefnumber, self).__init__(test=test, value=value, **kwds) + _schema = {"$ref": "#/definitions/ConditionalPredicate>"} + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefnumber, self).__init__( + test=test, value=value, **kwds + ) class ConditionalValueDefnumberArrayExprRef(VegaLiteSchema): """ConditionalValueDefnumberArrayExprRef schema wrapper - anyOf(:class:`ConditionalPredicateValueDefnumberArrayExprRef`, - :class:`ConditionalParameterValueDefnumberArrayExprRef`) + :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], + :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], + :class:`ConditionalValueDefnumberArrayExprRef` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef<(number[]|ExprRef)>'} + + _schema = {"$ref": "#/definitions/ConditionalValueDef<(number[]|ExprRef)>"} def __init__(self, *args, **kwds): super(ConditionalValueDefnumberArrayExprRef, self).__init__(*args, **kwds) -class ConditionalParameterValueDefnumberArrayExprRef(ConditionalValueDefnumberArrayExprRef): +class ConditionalParameterValueDefnumberArrayExprRef( + ConditionalValueDefnumberArrayExprRef +): """ConditionalParameterValueDefnumberArrayExprRef schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - value : anyOf(List(float), :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefnumberArrayExprRef, self).__init__(param=param, value=value, - empty=empty, **kwds) + _schema = { + "$ref": "#/definitions/ConditionalParameter>" + } + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefnumberArrayExprRef, self).__init__( + param=param, value=value, empty=empty, **kwds + ) -class ConditionalPredicateValueDefnumberArrayExprRef(ConditionalValueDefnumberArrayExprRef): +class ConditionalPredicateValueDefnumberArrayExprRef( + ConditionalValueDefnumberArrayExprRef +): """ConditionalPredicateValueDefnumberArrayExprRef schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - value : anyOf(List(float), :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefnumberArrayExprRef, self).__init__(test=test, value=value, - **kwds) + _schema = { + "$ref": "#/definitions/ConditionalPredicate>" + } + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefnumberArrayExprRef, self).__init__( + test=test, value=value, **kwds + ) class ConditionalValueDefnumberExprRef(VegaLiteSchema): """ConditionalValueDefnumberExprRef schema wrapper - anyOf(:class:`ConditionalPredicateValueDefnumberExprRef`, - :class:`ConditionalParameterValueDefnumberExprRef`) + :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], + :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], + :class:`ConditionalValueDefnumberExprRef` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef<(number|ExprRef)>'} + + _schema = {"$ref": "#/definitions/ConditionalValueDef<(number|ExprRef)>"} def __init__(self, *args, **kwds): super(ConditionalValueDefnumberExprRef, self).__init__(*args, **kwds) @@ -3684,56 +10281,99 @@ def __init__(self, *args, **kwds): class ConditionalParameterValueDefnumberExprRef(ConditionalValueDefnumberExprRef): """ConditionalParameterValueDefnumberExprRef schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefnumberExprRef, self).__init__(param=param, value=value, - empty=empty, **kwds) + _schema = {"$ref": "#/definitions/ConditionalParameter>"} + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefnumberExprRef, self).__init__( + param=param, value=value, empty=empty, **kwds + ) class ConditionalPredicateValueDefnumberExprRef(ConditionalValueDefnumberExprRef): """ConditionalPredicateValueDefnumberExprRef schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefnumberExprRef, self).__init__(test=test, value=value, **kwds) + _schema = {"$ref": "#/definitions/ConditionalPredicate>"} + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefnumberExprRef, self).__init__( + test=test, value=value, **kwds + ) class ConditionalValueDefstringExprRef(VegaLiteSchema): """ConditionalValueDefstringExprRef schema wrapper - anyOf(:class:`ConditionalPredicateValueDefstringExprRef`, - :class:`ConditionalParameterValueDefstringExprRef`) + :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], + :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], + :class:`ConditionalValueDefstringExprRef` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef<(string|ExprRef)>'} + + _schema = {"$ref": "#/definitions/ConditionalValueDef<(string|ExprRef)>"} def __init__(self, *args, **kwds): super(ConditionalValueDefstringExprRef, self).__init__(*args, **kwds) @@ -3742,208 +10382,299 @@ def __init__(self, *args, **kwds): class ConditionalParameterValueDefstringExprRef(ConditionalValueDefstringExprRef): """ConditionalParameterValueDefstringExprRef schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - value : anyOf(string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefstringExprRef, self).__init__(param=param, value=value, - empty=empty, **kwds) + _schema = {"$ref": "#/definitions/ConditionalParameter>"} + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefstringExprRef, self).__init__( + param=param, value=value, empty=empty, **kwds + ) class ConditionalPredicateValueDefstringExprRef(ConditionalValueDefstringExprRef): """ConditionalPredicateValueDefstringExprRef schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - value : anyOf(string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefstringExprRef, self).__init__(test=test, value=value, **kwds) + _schema = {"$ref": "#/definitions/ConditionalPredicate>"} + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefstringExprRef, self).__init__( + test=test, value=value, **kwds + ) class ConditionalValueDefstringnullExprRef(VegaLiteSchema): """ConditionalValueDefstringnullExprRef schema wrapper - anyOf(:class:`ConditionalPredicateValueDefstringnullExprRef`, - :class:`ConditionalParameterValueDefstringnullExprRef`) + :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], + :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], + :class:`ConditionalValueDefstringnullExprRef` """ - _schema = {'$ref': '#/definitions/ConditionalValueDef<(string|null|ExprRef)>'} + + _schema = {"$ref": "#/definitions/ConditionalValueDef<(string|null|ExprRef)>"} def __init__(self, *args, **kwds): super(ConditionalValueDefstringnullExprRef, self).__init__(*args, **kwds) -class ConditionalParameterValueDefstringnullExprRef(ConditionalValueDefstringnullExprRef): +class ConditionalParameterValueDefstringnullExprRef( + ConditionalValueDefstringnullExprRef +): """ConditionalParameterValueDefstringnullExprRef schema wrapper - Mapping(required=[param, value]) + :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ConditionalParameter>'} - def __init__(self, param=Undefined, value=Undefined, empty=Undefined, **kwds): - super(ConditionalParameterValueDefstringnullExprRef, self).__init__(param=param, value=value, - empty=empty, **kwds) + _schema = { + "$ref": "#/definitions/ConditionalParameter>" + } + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + value: Union[ + Union[None, Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ConditionalParameterValueDefstringnullExprRef, self).__init__( + param=param, value=value, empty=empty, **kwds + ) -class ConditionalPredicateValueDefstringnullExprRef(ConditionalValueDefstringnullExprRef): +class ConditionalPredicateValueDefstringnullExprRef( + ConditionalValueDefstringnullExprRef +): """ConditionalPredicateValueDefstringnullExprRef schema wrapper - Mapping(required=[test, value]) + :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]] Parameters ---------- - test : :class:`PredicateComposition` + test : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` Predicate for triggering the condition - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ConditionalPredicate>'} - def __init__(self, test=Undefined, value=Undefined, **kwds): - super(ConditionalPredicateValueDefstringnullExprRef, self).__init__(test=test, value=value, - **kwds) + _schema = { + "$ref": "#/definitions/ConditionalPredicate>" + } + + def __init__( + self, + test: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + **kwds, + ): + super(ConditionalPredicateValueDefstringnullExprRef, self).__init__( + test=test, value=value, **kwds + ) class Config(VegaLiteSchema): """Config schema wrapper - Mapping(required=[]) + :class:`Config`, Dict Parameters ---------- - arc : :class:`RectConfig` + arc : :class:`RectConfig`, Dict Arc-specific Config - area : :class:`AreaConfig` + area : :class:`AreaConfig`, Dict Area-Specific Config - aria : boolean + aria : bool A boolean flag indicating if ARIA default attributes should be included for marks and guides (SVG output only). If false, the ``"aria-hidden"`` attribute will be set for all guides, removing them from the ARIA accessibility tree and Vega-Lite will not generate default descriptions for marks. **Default value:** ``true``. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - axis : :class:`AxisConfig` + axis : :class:`AxisConfig`, Dict Axis configuration, which determines default properties for all ``x`` and ``y`` `axes `__. For a full list of axis configuration options, please see the `corresponding section of the axis documentation `__. - axisBand : :class:`AxisConfig` + axisBand : :class:`AxisConfig`, Dict Config for axes with "band" scales. - axisBottom : :class:`AxisConfig` + axisBottom : :class:`AxisConfig`, Dict Config for x-axis along the bottom edge of the chart. - axisDiscrete : :class:`AxisConfig` + axisDiscrete : :class:`AxisConfig`, Dict Config for axes with "point" or "band" scales. - axisLeft : :class:`AxisConfig` + axisLeft : :class:`AxisConfig`, Dict Config for y-axis along the left edge of the chart. - axisPoint : :class:`AxisConfig` + axisPoint : :class:`AxisConfig`, Dict Config for axes with "point" scales. - axisQuantitative : :class:`AxisConfig` + axisQuantitative : :class:`AxisConfig`, Dict Config for quantitative axes. - axisRight : :class:`AxisConfig` + axisRight : :class:`AxisConfig`, Dict Config for y-axis along the right edge of the chart. - axisTemporal : :class:`AxisConfig` + axisTemporal : :class:`AxisConfig`, Dict Config for temporal axes. - axisTop : :class:`AxisConfig` + axisTop : :class:`AxisConfig`, Dict Config for x-axis along the top edge of the chart. - axisX : :class:`AxisConfig` + axisX : :class:`AxisConfig`, Dict X-axis specific config. - axisXBand : :class:`AxisConfig` + axisXBand : :class:`AxisConfig`, Dict Config for x-axes with "band" scales. - axisXDiscrete : :class:`AxisConfig` + axisXDiscrete : :class:`AxisConfig`, Dict Config for x-axes with "point" or "band" scales. - axisXPoint : :class:`AxisConfig` + axisXPoint : :class:`AxisConfig`, Dict Config for x-axes with "point" scales. - axisXQuantitative : :class:`AxisConfig` + axisXQuantitative : :class:`AxisConfig`, Dict Config for x-quantitative axes. - axisXTemporal : :class:`AxisConfig` + axisXTemporal : :class:`AxisConfig`, Dict Config for x-temporal axes. - axisY : :class:`AxisConfig` + axisY : :class:`AxisConfig`, Dict Y-axis specific config. - axisYBand : :class:`AxisConfig` + axisYBand : :class:`AxisConfig`, Dict Config for y-axes with "band" scales. - axisYDiscrete : :class:`AxisConfig` + axisYDiscrete : :class:`AxisConfig`, Dict Config for y-axes with "point" or "band" scales. - axisYPoint : :class:`AxisConfig` + axisYPoint : :class:`AxisConfig`, Dict Config for y-axes with "point" scales. - axisYQuantitative : :class:`AxisConfig` + axisYQuantitative : :class:`AxisConfig`, Dict Config for y-quantitative axes. - axisYTemporal : :class:`AxisConfig` + axisYTemporal : :class:`AxisConfig`, Dict Config for y-temporal axes. - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - bar : :class:`BarConfig` + bar : :class:`BarConfig`, Dict Bar-Specific Config - boxplot : :class:`BoxPlotConfig` + boxplot : :class:`BoxPlotConfig`, Dict Box Config - circle : :class:`MarkConfig` + circle : :class:`MarkConfig`, Dict Circle-Specific Config - concat : :class:`CompositionConfig` + concat : :class:`CompositionConfig`, Dict Default configuration for all concatenation and repeat view composition operators ( ``concat``, ``hconcat``, ``vconcat``, and ``repeat`` ) - countTitle : string + countTitle : str Default axis and legend title for count fields. **Default value:** ``'Count of Records``. - customFormatTypes : boolean + customFormatTypes : bool Allow the ``formatType`` property for text marks and guides to accept a custom formatter function `registered as a Vega expression `__. - errorband : :class:`ErrorBandConfig` + errorband : :class:`ErrorBandConfig`, Dict ErrorBand Config - errorbar : :class:`ErrorBarConfig` + errorbar : :class:`ErrorBarConfig`, Dict ErrorBar Config - facet : :class:`CompositionConfig` + facet : :class:`CompositionConfig`, Dict Default configuration for the ``facet`` view composition operator - fieldTitle : enum('verbal', 'functional', 'plain') + fieldTitle : Literal['verbal', 'functional', 'plain'] Defines how Vega-Lite generates title for fields. There are three possible styles: @@ -3953,62 +10684,62 @@ class Config(VegaLiteSchema): "SUM(field)", "YEARMONTH(date)", "BIN(field)"). * ``"plain"`` - displays only the field name without functions (e.g., "field", "date", "field"). - font : string + font : str Default font for all text marks, titles, and labels. - geoshape : :class:`MarkConfig` + geoshape : :class:`MarkConfig`, Dict Geoshape-Specific Config - header : :class:`HeaderConfig` + header : :class:`HeaderConfig`, Dict Header configuration, which determines default properties for all `headers `__. For a full list of header configuration options, please see the `corresponding section of in the header documentation `__. - headerColumn : :class:`HeaderConfig` + headerColumn : :class:`HeaderConfig`, Dict Header configuration, which determines default properties for column `headers `__. For a full list of header configuration options, please see the `corresponding section of in the header documentation `__. - headerFacet : :class:`HeaderConfig` + headerFacet : :class:`HeaderConfig`, Dict Header configuration, which determines default properties for non-row/column facet `headers `__. For a full list of header configuration options, please see the `corresponding section of in the header documentation `__. - headerRow : :class:`HeaderConfig` + headerRow : :class:`HeaderConfig`, Dict Header configuration, which determines default properties for row `headers `__. For a full list of header configuration options, please see the `corresponding section of in the header documentation `__. - image : :class:`RectConfig` + image : :class:`RectConfig`, Dict Image-specific Config - legend : :class:`LegendConfig` + legend : :class:`LegendConfig`, Dict Legend configuration, which determines default properties for all `legends `__. For a full list of legend configuration options, please see the `corresponding section of in the legend documentation `__. - line : :class:`LineConfig` + line : :class:`LineConfig`, Dict Line-Specific Config - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property provides a global default for text marks, which is overridden by mark or style config settings, and by the lineBreak mark encoding channel. If signal-valued, either string or regular expression (regexp) values are valid. - locale : :class:`Locale` + locale : :class:`Locale`, Dict Locale definitions for string parsing and formatting of number and date values. The locale object should contain ``number`` and/or ``time`` properties with `locale definitions `__. Locale definitions provided in the config block may be overridden by the View constructor locale option. - mark : :class:`MarkConfig` + mark : :class:`MarkConfig`, Dict Mark Config - normalizedNumberFormat : string + normalizedNumberFormat : str If normalizedNumberFormatType is not specified, D3 number format for axis labels, text marks, and tooltips of normalized stacked fields (fields with ``stack: "normalize"`` ). For example ``"s"`` for SI units. Use `D3's number format pattern @@ -4018,7 +10749,7 @@ class Config(VegaLiteSchema): ``config.customFormatTypes`` is ``true``, this value will be passed as ``format`` alongside ``datum.value`` to the ``config.numberFormatType`` function. **Default value:** ``%`` - normalizedNumberFormatType : string + normalizedNumberFormatType : str `Custom format type `__ for ``config.normalizedNumberFormat``. @@ -4027,7 +10758,7 @@ class Config(VegaLiteSchema): exposed as `format in Vega-Expression `__. **Note:** You must also set ``customFormatTypes`` to ``true`` to use this feature. - numberFormat : string + numberFormat : str If numberFormatType is not specified, D3 number format for guide labels, text marks, and tooltips of non-normalized fields (fields *without* ``stack: "normalize"`` ). For example ``"s"`` for SI units. Use `D3's number format pattern @@ -4036,7 +10767,7 @@ class Config(VegaLiteSchema): If ``config.numberFormatType`` is specified and ``config.customFormatTypes`` is ``true``, this value will be passed as ``format`` alongside ``datum.value`` to the ``config.numberFormatType`` function. - numberFormatType : string + numberFormatType : str `Custom format type `__ for ``config.numberFormat``. @@ -4045,58 +10776,58 @@ class Config(VegaLiteSchema): exposed as `format in Vega-Expression `__. **Note:** You must also set ``customFormatTypes`` to ``true`` to use this feature. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] Dynamic variables or selections that parameterize a visualization. - point : :class:`MarkConfig` + point : :class:`MarkConfig`, Dict Point-Specific Config - projection : :class:`ProjectionConfig` + projection : :class:`ProjectionConfig`, Dict Projection configuration, which determines default properties for all `projections `__. For a full list of projection configuration options, please see the `corresponding section of the projection documentation `__. - range : :class:`RangeConfig` + range : :class:`RangeConfig`, Dict An object hash that defines default range arrays or schemes for using with scales. For a full list of scale range configuration options, please see the `corresponding section of the scale documentation `__. - rect : :class:`RectConfig` + rect : :class:`RectConfig`, Dict Rect-Specific Config - rule : :class:`MarkConfig` + rule : :class:`MarkConfig`, Dict Rule-Specific Config - scale : :class:`ScaleConfig` + scale : :class:`ScaleConfig`, Dict Scale configuration determines default properties for all `scales `__. For a full list of scale configuration options, please see the `corresponding section of the scale documentation `__. - selection : :class:`SelectionConfig` + selection : :class:`SelectionConfig`, Dict An object hash for defining default properties for each type of selections. - square : :class:`MarkConfig` + square : :class:`MarkConfig`, Dict Square-Specific Config - style : :class:`StyleConfigIndex` + style : :class:`StyleConfigIndex`, Dict An object hash that defines key-value mappings to determine default properties for marks with a given `style `__. The keys represent styles names; the values have to be valid `mark configuration objects `__. - text : :class:`MarkConfig` + text : :class:`MarkConfig`, Dict Text-Specific Config - tick : :class:`TickConfig` + tick : :class:`TickConfig`, Dict Tick-Specific Config - timeFormat : string + timeFormat : str Default time format for raw time values (without time units) in text marks, legend labels and header labels. **Default value:** ``"%b %d, %Y"`` **Note:** Axes automatically determine the format for each label automatically so this config does not affect axes. - timeFormatType : string + timeFormatType : str `Custom format type `__ for ``config.timeFormat``. @@ -4106,82 +10837,374 @@ class Config(VegaLiteSchema): `__. **Note:** You must also set ``customFormatTypes`` to ``true`` and there must *not* be a ``timeUnit`` defined to use this feature. - title : :class:`TitleConfig` + title : :class:`TitleConfig`, Dict Title configuration, which determines default properties for all `titles `__. For a full list of title configuration options, please see the `corresponding section of the title documentation `__. - tooltipFormat : :class:`FormatConfig` + tooltipFormat : :class:`FormatConfig`, Dict Define `custom format configuration `__ for tooltips. If unspecified, default format config will be applied. - trail : :class:`LineConfig` + trail : :class:`LineConfig`, Dict Trail-Specific Config - view : :class:`ViewConfig` + view : :class:`ViewConfig`, Dict Default properties for `single view plots `__. """ - _schema = {'$ref': '#/definitions/Config'} - - def __init__(self, arc=Undefined, area=Undefined, aria=Undefined, autosize=Undefined, - axis=Undefined, axisBand=Undefined, axisBottom=Undefined, axisDiscrete=Undefined, - axisLeft=Undefined, axisPoint=Undefined, axisQuantitative=Undefined, - axisRight=Undefined, axisTemporal=Undefined, axisTop=Undefined, axisX=Undefined, - axisXBand=Undefined, axisXDiscrete=Undefined, axisXPoint=Undefined, - axisXQuantitative=Undefined, axisXTemporal=Undefined, axisY=Undefined, - axisYBand=Undefined, axisYDiscrete=Undefined, axisYPoint=Undefined, - axisYQuantitative=Undefined, axisYTemporal=Undefined, background=Undefined, - bar=Undefined, boxplot=Undefined, circle=Undefined, concat=Undefined, - countTitle=Undefined, customFormatTypes=Undefined, errorband=Undefined, - errorbar=Undefined, facet=Undefined, fieldTitle=Undefined, font=Undefined, - geoshape=Undefined, header=Undefined, headerColumn=Undefined, headerFacet=Undefined, - headerRow=Undefined, image=Undefined, legend=Undefined, line=Undefined, - lineBreak=Undefined, locale=Undefined, mark=Undefined, - normalizedNumberFormat=Undefined, normalizedNumberFormatType=Undefined, - numberFormat=Undefined, numberFormatType=Undefined, padding=Undefined, - params=Undefined, point=Undefined, projection=Undefined, range=Undefined, - rect=Undefined, rule=Undefined, scale=Undefined, selection=Undefined, square=Undefined, - style=Undefined, text=Undefined, tick=Undefined, timeFormat=Undefined, - timeFormatType=Undefined, title=Undefined, tooltipFormat=Undefined, trail=Undefined, - view=Undefined, **kwds): - super(Config, self).__init__(arc=arc, area=area, aria=aria, autosize=autosize, axis=axis, - axisBand=axisBand, axisBottom=axisBottom, - axisDiscrete=axisDiscrete, axisLeft=axisLeft, axisPoint=axisPoint, - axisQuantitative=axisQuantitative, axisRight=axisRight, - axisTemporal=axisTemporal, axisTop=axisTop, axisX=axisX, - axisXBand=axisXBand, axisXDiscrete=axisXDiscrete, - axisXPoint=axisXPoint, axisXQuantitative=axisXQuantitative, - axisXTemporal=axisXTemporal, axisY=axisY, axisYBand=axisYBand, - axisYDiscrete=axisYDiscrete, axisYPoint=axisYPoint, - axisYQuantitative=axisYQuantitative, axisYTemporal=axisYTemporal, - background=background, bar=bar, boxplot=boxplot, circle=circle, - concat=concat, countTitle=countTitle, - customFormatTypes=customFormatTypes, errorband=errorband, - errorbar=errorbar, facet=facet, fieldTitle=fieldTitle, font=font, - geoshape=geoshape, header=header, headerColumn=headerColumn, - headerFacet=headerFacet, headerRow=headerRow, image=image, - legend=legend, line=line, lineBreak=lineBreak, locale=locale, - mark=mark, normalizedNumberFormat=normalizedNumberFormat, - normalizedNumberFormatType=normalizedNumberFormatType, - numberFormat=numberFormat, numberFormatType=numberFormatType, - padding=padding, params=params, point=point, projection=projection, - range=range, rect=rect, rule=rule, scale=scale, - selection=selection, square=square, style=style, text=text, - tick=tick, timeFormat=timeFormat, timeFormatType=timeFormatType, - title=title, tooltipFormat=tooltipFormat, trail=trail, view=view, - **kwds) + + _schema = {"$ref": "#/definitions/Config"} + + def __init__( + self, + arc: Union[Union["RectConfig", dict], UndefinedType] = Undefined, + area: Union[Union["AreaConfig", dict], UndefinedType] = Undefined, + aria: Union[bool, UndefinedType] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + axis: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisBand: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisBottom: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisDiscrete: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisLeft: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisPoint: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisQuantitative: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisRight: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisTemporal: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisTop: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisX: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisXBand: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisXDiscrete: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisXPoint: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisXQuantitative: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisXTemporal: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisY: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisYBand: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisYDiscrete: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisYPoint: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisYQuantitative: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + axisYTemporal: Union[Union["AxisConfig", dict], UndefinedType] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + bar: Union[Union["BarConfig", dict], UndefinedType] = Undefined, + boxplot: Union[Union["BoxPlotConfig", dict], UndefinedType] = Undefined, + circle: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + concat: Union[Union["CompositionConfig", dict], UndefinedType] = Undefined, + countTitle: Union[str, UndefinedType] = Undefined, + customFormatTypes: Union[bool, UndefinedType] = Undefined, + errorband: Union[Union["ErrorBandConfig", dict], UndefinedType] = Undefined, + errorbar: Union[Union["ErrorBarConfig", dict], UndefinedType] = Undefined, + facet: Union[Union["CompositionConfig", dict], UndefinedType] = Undefined, + fieldTitle: Union[ + Literal["verbal", "functional", "plain"], UndefinedType + ] = Undefined, + font: Union[str, UndefinedType] = Undefined, + geoshape: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + header: Union[Union["HeaderConfig", dict], UndefinedType] = Undefined, + headerColumn: Union[Union["HeaderConfig", dict], UndefinedType] = Undefined, + headerFacet: Union[Union["HeaderConfig", dict], UndefinedType] = Undefined, + headerRow: Union[Union["HeaderConfig", dict], UndefinedType] = Undefined, + image: Union[Union["RectConfig", dict], UndefinedType] = Undefined, + legend: Union[Union["LegendConfig", dict], UndefinedType] = Undefined, + line: Union[Union["LineConfig", dict], UndefinedType] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + locale: Union[Union["Locale", dict], UndefinedType] = Undefined, + mark: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + normalizedNumberFormat: Union[str, UndefinedType] = Undefined, + normalizedNumberFormatType: Union[str, UndefinedType] = Undefined, + numberFormat: Union[str, UndefinedType] = Undefined, + numberFormatType: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + point: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + projection: Union[Union["ProjectionConfig", dict], UndefinedType] = Undefined, + range: Union[Union["RangeConfig", dict], UndefinedType] = Undefined, + rect: Union[Union["RectConfig", dict], UndefinedType] = Undefined, + rule: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + scale: Union[Union["ScaleConfig", dict], UndefinedType] = Undefined, + selection: Union[Union["SelectionConfig", dict], UndefinedType] = Undefined, + square: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + style: Union[Union["StyleConfigIndex", dict], UndefinedType] = Undefined, + text: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + tick: Union[Union["TickConfig", dict], UndefinedType] = Undefined, + timeFormat: Union[str, UndefinedType] = Undefined, + timeFormatType: Union[str, UndefinedType] = Undefined, + title: Union[Union["TitleConfig", dict], UndefinedType] = Undefined, + tooltipFormat: Union[Union["FormatConfig", dict], UndefinedType] = Undefined, + trail: Union[Union["LineConfig", dict], UndefinedType] = Undefined, + view: Union[Union["ViewConfig", dict], UndefinedType] = Undefined, + **kwds, + ): + super(Config, self).__init__( + arc=arc, + area=area, + aria=aria, + autosize=autosize, + axis=axis, + axisBand=axisBand, + axisBottom=axisBottom, + axisDiscrete=axisDiscrete, + axisLeft=axisLeft, + axisPoint=axisPoint, + axisQuantitative=axisQuantitative, + axisRight=axisRight, + axisTemporal=axisTemporal, + axisTop=axisTop, + axisX=axisX, + axisXBand=axisXBand, + axisXDiscrete=axisXDiscrete, + axisXPoint=axisXPoint, + axisXQuantitative=axisXQuantitative, + axisXTemporal=axisXTemporal, + axisY=axisY, + axisYBand=axisYBand, + axisYDiscrete=axisYDiscrete, + axisYPoint=axisYPoint, + axisYQuantitative=axisYQuantitative, + axisYTemporal=axisYTemporal, + background=background, + bar=bar, + boxplot=boxplot, + circle=circle, + concat=concat, + countTitle=countTitle, + customFormatTypes=customFormatTypes, + errorband=errorband, + errorbar=errorbar, + facet=facet, + fieldTitle=fieldTitle, + font=font, + geoshape=geoshape, + header=header, + headerColumn=headerColumn, + headerFacet=headerFacet, + headerRow=headerRow, + image=image, + legend=legend, + line=line, + lineBreak=lineBreak, + locale=locale, + mark=mark, + normalizedNumberFormat=normalizedNumberFormat, + normalizedNumberFormatType=normalizedNumberFormatType, + numberFormat=numberFormat, + numberFormatType=numberFormatType, + padding=padding, + params=params, + point=point, + projection=projection, + range=range, + rect=rect, + rule=rule, + scale=scale, + selection=selection, + square=square, + style=style, + text=text, + tick=tick, + timeFormat=timeFormat, + timeFormatType=timeFormatType, + title=title, + tooltipFormat=tooltipFormat, + trail=trail, + view=view, + **kwds, + ) class Cursor(VegaLiteSchema): """Cursor schema wrapper - enum('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') + :class:`Cursor`, 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'] """ - _schema = {'$ref': '#/definitions/Cursor'} + + _schema = {"$ref": "#/definitions/Cursor"} def __init__(self, *args): super(Cursor, self).__init__(*args) @@ -4190,9 +11213,10 @@ def __init__(self, *args): class Cyclical(ColorScheme): """Cyclical schema wrapper - enum('rainbow', 'sinebow') + :class:`Cyclical`, Literal['rainbow', 'sinebow'] """ - _schema = {'$ref': '#/definitions/Cyclical'} + + _schema = {"$ref": "#/definitions/Cyclical"} def __init__(self, *args): super(Cyclical, self).__init__(*args) @@ -4201,9 +11225,14 @@ def __init__(self, *args): class Data(VegaLiteSchema): """Data schema wrapper - anyOf(:class:`DataSource`, :class:`Generator`) + :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, + Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, + :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], + :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, + Dict[required=[sphere]] """ - _schema = {'$ref': '#/definitions/Data'} + + _schema = {"$ref": "#/definitions/Data"} def __init__(self, *args, **kwds): super(Data, self).__init__(*args, **kwds) @@ -4212,10 +11241,11 @@ def __init__(self, *args, **kwds): class DataFormat(VegaLiteSchema): """DataFormat schema wrapper - anyOf(:class:`CsvDataFormat`, :class:`DsvDataFormat`, :class:`JsonDataFormat`, - :class:`TopoDataFormat`) + :class:`CsvDataFormat`, Dict, :class:`DataFormat`, :class:`DsvDataFormat`, + Dict[required=[delimiter]], :class:`JsonDataFormat`, Dict, :class:`TopoDataFormat`, Dict """ - _schema = {'$ref': '#/definitions/DataFormat'} + + _schema = {"$ref": "#/definitions/DataFormat"} def __init__(self, *args, **kwds): super(DataFormat, self).__init__(*args, **kwds) @@ -4224,12 +11254,12 @@ def __init__(self, *args, **kwds): class CsvDataFormat(DataFormat): """CsvDataFormat schema wrapper - Mapping(required=[]) + :class:`CsvDataFormat`, Dict Parameters ---------- - parse : anyOf(:class:`Parse`, None) + parse : :class:`Parse`, Dict, None If set to ``null``, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field @@ -4245,24 +11275,32 @@ class CsvDataFormat(DataFormat): UTC date format parsing is supported similarly (e.g., ``{foo: "utc:'%m%d%Y'"}`` ). See more about `UTC time `__ - type : enum('csv', 'tsv') + type : Literal['csv', 'tsv'] Type of input data: ``"json"``, ``"csv"``, ``"tsv"``, ``"dsv"``. **Default value:** The default format type is determined by the extension of the file URL. If no extension is detected, ``"json"`` will be used by default. """ - _schema = {'$ref': '#/definitions/CsvDataFormat'} - def __init__(self, parse=Undefined, type=Undefined, **kwds): + _schema = {"$ref": "#/definitions/CsvDataFormat"} + + def __init__( + self, + parse: Union[Union[None, Union["Parse", dict]], UndefinedType] = Undefined, + type: Union[Literal["csv", "tsv"], UndefinedType] = Undefined, + **kwds, + ): super(CsvDataFormat, self).__init__(parse=parse, type=type, **kwds) class DataSource(Data): """DataSource schema wrapper - anyOf(:class:`UrlData`, :class:`InlineData`, :class:`NamedData`) + :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, + Dict[required=[name]], :class:`UrlData`, Dict[required=[url]] """ - _schema = {'$ref': '#/definitions/DataSource'} + + _schema = {"$ref": "#/definitions/DataSource"} def __init__(self, *args, **kwds): super(DataSource, self).__init__(*args, **kwds) @@ -4271,9 +11309,10 @@ def __init__(self, *args, **kwds): class Datasets(VegaLiteSchema): """Datasets schema wrapper - Mapping(required=[]) + :class:`Datasets`, Dict """ - _schema = {'$ref': '#/definitions/Datasets'} + + _schema = {"$ref": "#/definitions/Datasets"} def __init__(self, **kwds): super(Datasets, self).__init__(**kwds) @@ -4282,9 +11321,10 @@ def __init__(self, **kwds): class Day(VegaLiteSchema): """Day schema wrapper - float + :class:`Day`, float """ - _schema = {'$ref': '#/definitions/Day'} + + _schema = {"$ref": "#/definitions/Day"} def __init__(self, *args): super(Day, self).__init__(*args) @@ -4293,9 +11333,10 @@ def __init__(self, *args): class Dict(VegaLiteSchema): """Dict schema wrapper - Mapping(required=[]) + :class:`Dict`, Dict """ - _schema = {'$ref': '#/definitions/Dict'} + + _schema = {"$ref": "#/definitions/Dict"} def __init__(self, **kwds): super(Dict, self).__init__(**kwds) @@ -4304,9 +11345,10 @@ def __init__(self, **kwds): class DictInlineDataset(VegaLiteSchema): """DictInlineDataset schema wrapper - Mapping(required=[]) + :class:`DictInlineDataset`, Dict """ - _schema = {'$ref': '#/definitions/Dict'} + + _schema = {"$ref": "#/definitions/Dict"} def __init__(self, **kwds): super(DictInlineDataset, self).__init__(**kwds) @@ -4315,9 +11357,10 @@ def __init__(self, **kwds): class DictSelectionInit(VegaLiteSchema): """DictSelectionInit schema wrapper - Mapping(required=[]) + :class:`DictSelectionInit`, Dict """ - _schema = {'$ref': '#/definitions/Dict'} + + _schema = {"$ref": "#/definitions/Dict"} def __init__(self, **kwds): super(DictSelectionInit, self).__init__(**kwds) @@ -4326,9 +11369,10 @@ def __init__(self, **kwds): class DictSelectionInitInterval(VegaLiteSchema): """DictSelectionInitInterval schema wrapper - Mapping(required=[]) + :class:`DictSelectionInitInterval`, Dict """ - _schema = {'$ref': '#/definitions/Dict'} + + _schema = {"$ref": "#/definitions/Dict"} def __init__(self, **kwds): super(DictSelectionInitInterval, self).__init__(**kwds) @@ -4337,29 +11381,30 @@ def __init__(self, **kwds): class Diverging(ColorScheme): """Diverging schema wrapper - enum('blueorange', 'blueorange-3', 'blueorange-4', 'blueorange-5', 'blueorange-6', - 'blueorange-7', 'blueorange-8', 'blueorange-9', 'blueorange-10', 'blueorange-11', - 'brownbluegreen', 'brownbluegreen-3', 'brownbluegreen-4', 'brownbluegreen-5', - 'brownbluegreen-6', 'brownbluegreen-7', 'brownbluegreen-8', 'brownbluegreen-9', - 'brownbluegreen-10', 'brownbluegreen-11', 'purplegreen', 'purplegreen-3', 'purplegreen-4', - 'purplegreen-5', 'purplegreen-6', 'purplegreen-7', 'purplegreen-8', 'purplegreen-9', - 'purplegreen-10', 'purplegreen-11', 'pinkyellowgreen', 'pinkyellowgreen-3', - 'pinkyellowgreen-4', 'pinkyellowgreen-5', 'pinkyellowgreen-6', 'pinkyellowgreen-7', - 'pinkyellowgreen-8', 'pinkyellowgreen-9', 'pinkyellowgreen-10', 'pinkyellowgreen-11', - 'purpleorange', 'purpleorange-3', 'purpleorange-4', 'purpleorange-5', 'purpleorange-6', - 'purpleorange-7', 'purpleorange-8', 'purpleorange-9', 'purpleorange-10', 'purpleorange-11', - 'redblue', 'redblue-3', 'redblue-4', 'redblue-5', 'redblue-6', 'redblue-7', 'redblue-8', - 'redblue-9', 'redblue-10', 'redblue-11', 'redgrey', 'redgrey-3', 'redgrey-4', 'redgrey-5', - 'redgrey-6', 'redgrey-7', 'redgrey-8', 'redgrey-9', 'redgrey-10', 'redgrey-11', - 'redyellowblue', 'redyellowblue-3', 'redyellowblue-4', 'redyellowblue-5', 'redyellowblue-6', - 'redyellowblue-7', 'redyellowblue-8', 'redyellowblue-9', 'redyellowblue-10', - 'redyellowblue-11', 'redyellowgreen', 'redyellowgreen-3', 'redyellowgreen-4', - 'redyellowgreen-5', 'redyellowgreen-6', 'redyellowgreen-7', 'redyellowgreen-8', - 'redyellowgreen-9', 'redyellowgreen-10', 'redyellowgreen-11', 'spectral', 'spectral-3', - 'spectral-4', 'spectral-5', 'spectral-6', 'spectral-7', 'spectral-8', 'spectral-9', - 'spectral-10', 'spectral-11') - """ - _schema = {'$ref': '#/definitions/Diverging'} + :class:`Diverging`, Literal['blueorange', 'blueorange-3', 'blueorange-4', 'blueorange-5', + 'blueorange-6', 'blueorange-7', 'blueorange-8', 'blueorange-9', 'blueorange-10', + 'blueorange-11', 'brownbluegreen', 'brownbluegreen-3', 'brownbluegreen-4', + 'brownbluegreen-5', 'brownbluegreen-6', 'brownbluegreen-7', 'brownbluegreen-8', + 'brownbluegreen-9', 'brownbluegreen-10', 'brownbluegreen-11', 'purplegreen', + 'purplegreen-3', 'purplegreen-4', 'purplegreen-5', 'purplegreen-6', 'purplegreen-7', + 'purplegreen-8', 'purplegreen-9', 'purplegreen-10', 'purplegreen-11', 'pinkyellowgreen', + 'pinkyellowgreen-3', 'pinkyellowgreen-4', 'pinkyellowgreen-5', 'pinkyellowgreen-6', + 'pinkyellowgreen-7', 'pinkyellowgreen-8', 'pinkyellowgreen-9', 'pinkyellowgreen-10', + 'pinkyellowgreen-11', 'purpleorange', 'purpleorange-3', 'purpleorange-4', 'purpleorange-5', + 'purpleorange-6', 'purpleorange-7', 'purpleorange-8', 'purpleorange-9', 'purpleorange-10', + 'purpleorange-11', 'redblue', 'redblue-3', 'redblue-4', 'redblue-5', 'redblue-6', + 'redblue-7', 'redblue-8', 'redblue-9', 'redblue-10', 'redblue-11', 'redgrey', 'redgrey-3', + 'redgrey-4', 'redgrey-5', 'redgrey-6', 'redgrey-7', 'redgrey-8', 'redgrey-9', 'redgrey-10', + 'redgrey-11', 'redyellowblue', 'redyellowblue-3', 'redyellowblue-4', 'redyellowblue-5', + 'redyellowblue-6', 'redyellowblue-7', 'redyellowblue-8', 'redyellowblue-9', + 'redyellowblue-10', 'redyellowblue-11', 'redyellowgreen', 'redyellowgreen-3', + 'redyellowgreen-4', 'redyellowgreen-5', 'redyellowgreen-6', 'redyellowgreen-7', + 'redyellowgreen-8', 'redyellowgreen-9', 'redyellowgreen-10', 'redyellowgreen-11', + 'spectral', 'spectral-3', 'spectral-4', 'spectral-5', 'spectral-6', 'spectral-7', + 'spectral-8', 'spectral-9', 'spectral-10', 'spectral-11'] + """ + + _schema = {"$ref": "#/definitions/Diverging"} def __init__(self, *args): super(Diverging, self).__init__(*args) @@ -4368,34 +11413,47 @@ def __init__(self, *args): class DomainUnionWith(VegaLiteSchema): """DomainUnionWith schema wrapper - Mapping(required=[unionWith]) + :class:`DomainUnionWith`, Dict[required=[unionWith]] Parameters ---------- - unionWith : anyOf(List(float), List(string), List(boolean), List(:class:`DateTime`)) + unionWith : Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str] Customized domain values to be union with the field's values or explicitly defined domain. Should be an array of valid scale domain values. """ - _schema = {'$ref': '#/definitions/DomainUnionWith'} - def __init__(self, unionWith=Undefined, **kwds): + _schema = {"$ref": "#/definitions/DomainUnionWith"} + + def __init__( + self, + unionWith: Union[ + Union[ + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(DomainUnionWith, self).__init__(unionWith=unionWith, **kwds) class DsvDataFormat(DataFormat): """DsvDataFormat schema wrapper - Mapping(required=[delimiter]) + :class:`DsvDataFormat`, Dict[required=[delimiter]] Parameters ---------- - delimiter : string + delimiter : str The delimiter between records. The delimiter must be a single character (i.e., a single 16-bit code unit); so, ASCII delimiters are fine, but emoji delimiters are not. - parse : anyOf(:class:`Parse`, None) + parse : :class:`Parse`, Dict, None If set to ``null``, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field @@ -4411,24 +11469,34 @@ class DsvDataFormat(DataFormat): UTC date format parsing is supported similarly (e.g., ``{foo: "utc:'%m%d%Y'"}`` ). See more about `UTC time `__ - type : string + type : str Type of input data: ``"json"``, ``"csv"``, ``"tsv"``, ``"dsv"``. **Default value:** The default format type is determined by the extension of the file URL. If no extension is detected, ``"json"`` will be used by default. """ - _schema = {'$ref': '#/definitions/DsvDataFormat'} - def __init__(self, delimiter=Undefined, parse=Undefined, type=Undefined, **kwds): - super(DsvDataFormat, self).__init__(delimiter=delimiter, parse=parse, type=type, **kwds) + _schema = {"$ref": "#/definitions/DsvDataFormat"} + + def __init__( + self, + delimiter: Union[str, UndefinedType] = Undefined, + parse: Union[Union[None, Union["Parse", dict]], UndefinedType] = Undefined, + type: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(DsvDataFormat, self).__init__( + delimiter=delimiter, parse=parse, type=type, **kwds + ) class Element(VegaLiteSchema): """Element schema wrapper - string + :class:`Element`, str """ - _schema = {'$ref': '#/definitions/Element'} + + _schema = {"$ref": "#/definitions/Element"} def __init__(self, *args): super(Element, self).__init__(*args) @@ -4437,14 +11505,14 @@ def __init__(self, *args): class Encoding(VegaLiteSchema): """Encoding schema wrapper - Mapping(required=[]) + :class:`Encoding`, Dict Parameters ---------- - angle : :class:`NumericMarkPropDef` + angle : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Rotation angle of point and text marks. - color : :class:`ColorDef` + color : :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, Dict[required=[shorthand]], :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Color of the marks – either fill or stroke color based on the ``filled`` property of mark definition. By default, ``color`` represents fill color for ``"area"``, ``"bar"``, ``"tick"``, ``"text"``, ``"trail"``, ``"circle"``, and ``"square"`` / @@ -4460,49 +11528,49 @@ class Encoding(VegaLiteSchema): encoding if conflicting encodings are specified. 2) See the scale documentation for more information about customizing `color scheme `__. - description : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`) + description : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict A text description of this mark for ARIA accessibility (SVG output only). For SVG output the ``"aria-label"`` attribute will be set to this description. - detail : anyOf(:class:`FieldDefWithoutScale`, List(:class:`FieldDefWithoutScale`)) + detail : :class:`FieldDefWithoutScale`, Dict[required=[shorthand]], Sequence[:class:`FieldDefWithoutScale`, Dict[required=[shorthand]]] Additional levels of detail for grouping data in aggregate views and in line, trail, and area marks without mapping data to a specific visual channel. - fill : :class:`ColorDef` + fill : :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, Dict[required=[shorthand]], :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Fill color of the marks. **Default value:** If undefined, the default color depends on `mark config `__ 's ``color`` property. *Note:* The ``fill`` encoding has higher precedence than ``color``, thus may override the ``color`` encoding if conflicting encodings are specified. - fillOpacity : :class:`NumericMarkPropDef` + fillOpacity : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Fill opacity of the marks. **Default value:** If undefined, the default opacity depends on `mark config `__ 's ``fillOpacity`` property. - href : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`) + href : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict A URL to load upon mouse click. - key : :class:`FieldDefWithoutScale` + key : :class:`FieldDefWithoutScale`, Dict[required=[shorthand]] A data field to use as a unique key for data binding. When a visualization’s data is updated, the key value will be used to match data elements to existing mark instances. Use a key channel to enable object constancy for transitions over dynamic data. - latitude : :class:`LatLongDef` + latitude : :class:`DatumDef`, Dict, :class:`LatLongDef`, :class:`LatLongFieldDef`, Dict[required=[shorthand]] Latitude position of geographically projected marks. - latitude2 : :class:`Position2Def` + latitude2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] Latitude-2 position for geographically projected ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. - longitude : :class:`LatLongDef` + longitude : :class:`DatumDef`, Dict, :class:`LatLongDef`, :class:`LatLongFieldDef`, Dict[required=[shorthand]] Longitude position of geographically projected marks. - longitude2 : :class:`Position2Def` + longitude2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] Longitude-2 position for geographically projected ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. - opacity : :class:`NumericMarkPropDef` + opacity : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Opacity of the marks. **Default value:** If undefined, the default opacity depends on `mark config `__ 's ``opacity`` property. - order : anyOf(:class:`OrderFieldDef`, List(:class:`OrderFieldDef`), :class:`OrderValueDef`, :class:`OrderOnlyDef`) + order : :class:`OrderFieldDef`, Dict[required=[shorthand]], :class:`OrderOnlyDef`, Dict, :class:`OrderValueDef`, Dict[required=[value]], Sequence[:class:`OrderFieldDef`, Dict[required=[shorthand]]] Order of the marks. @@ -4517,11 +11585,11 @@ class Encoding(VegaLiteSchema): **Note** : In aggregate plots, ``order`` field should be ``aggregate`` d to avoid creating additional aggregation grouping. - radius : :class:`PolarDef` + radius : :class:`PolarDef`, :class:`PositionDatumDefBase`, Dict, :class:`PositionFieldDefBase`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] The outer radius in pixels of arc marks. - radius2 : :class:`Position2Def` + radius2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] The inner radius in pixels of arc marks. - shape : :class:`ShapeDef` + shape : :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, Dict[required=[shorthand]], :class:`ShapeDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`, Dict Shape of the mark. @@ -4541,7 +11609,7 @@ class Encoding(VegaLiteSchema): **Default value:** If undefined, the default shape depends on `mark config `__ 's ``shape`` property. ( ``"circle"`` if unset.) - size : :class:`NumericMarkPropDef` + size : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Size of the mark. @@ -4551,7 +11619,7 @@ class Encoding(VegaLiteSchema): * For ``"text"`` – the text's font size. * Size is unsupported for ``"line"``, ``"area"``, and ``"rect"``. (Use ``"trail"`` instead of line with varying size) - stroke : :class:`ColorDef` + stroke : :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, Dict[required=[shorthand]], :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Stroke color of the marks. **Default value:** If undefined, the default color depends on `mark config `__ 's ``color`` @@ -4559,108 +11627,450 @@ class Encoding(VegaLiteSchema): *Note:* The ``stroke`` encoding has higher precedence than ``color``, thus may override the ``color`` encoding if conflicting encodings are specified. - strokeDash : :class:`NumericArrayMarkPropDef` + strokeDash : :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, Dict[required=[shorthand]], :class:`NumericArrayMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`, Dict Stroke dash of the marks. **Default value:** ``[1,0]`` (No dash). - strokeOpacity : :class:`NumericMarkPropDef` + strokeOpacity : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Stroke opacity of the marks. **Default value:** If undefined, the default opacity depends on `mark config `__ 's ``strokeOpacity`` property. - strokeWidth : :class:`NumericMarkPropDef` + strokeWidth : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Stroke width of the marks. **Default value:** If undefined, the default stroke width depends on `mark config `__ 's ``strokeWidth`` property. - text : :class:`TextDef` + text : :class:`FieldOrDatumDefWithConditionStringDatumDefText`, Dict, :class:`FieldOrDatumDefWithConditionStringFieldDefText`, Dict[required=[shorthand]], :class:`TextDef`, :class:`ValueDefWithConditionStringFieldDefText`, Dict Text of the ``text`` mark. - theta : :class:`PolarDef` + theta : :class:`PolarDef`, :class:`PositionDatumDefBase`, Dict, :class:`PositionFieldDefBase`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : :class:`Position2Def` + theta2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. - tooltip : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`, List(:class:`StringFieldDef`), None) + tooltip : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict, None, Sequence[:class:`StringFieldDef`, Dict] The tooltip text to show upon mouse hover. Specifying ``tooltip`` encoding overrides `the tooltip property in the mark definition `__. See the `tooltip `__ documentation for a detailed discussion about tooltip in Vega-Lite. - url : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`) + url : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict The URL of an image mark. - x : :class:`PositionDef` + x : :class:`PositionDatumDef`, Dict, :class:`PositionDef`, :class:`PositionFieldDef`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : :class:`Position2Def` + x2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - xError : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + xError : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Error value of x coordinates for error specified ``"errorbar"`` and ``"errorband"``. - xError2 : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + xError2 : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Secondary error value of x coordinates for error specified ``"errorbar"`` and ``"errorband"``. - xOffset : :class:`OffsetDef` + xOffset : :class:`OffsetDef`, :class:`ScaleDatumDef`, Dict, :class:`ScaleFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Offset of x-position of the marks - y : :class:`PositionDef` + y : :class:`PositionDatumDef`, Dict, :class:`PositionDef`, :class:`PositionFieldDef`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : :class:`Position2Def` + y2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - yError : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + yError : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Error value of y coordinates for error specified ``"errorbar"`` and ``"errorband"``. - yError2 : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + yError2 : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Secondary error value of y coordinates for error specified ``"errorbar"`` and ``"errorband"``. - yOffset : :class:`OffsetDef` + yOffset : :class:`OffsetDef`, :class:`ScaleDatumDef`, Dict, :class:`ScaleFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Offset of y-position of the marks """ - _schema = {'$ref': '#/definitions/Encoding'} - - def __init__(self, angle=Undefined, color=Undefined, description=Undefined, detail=Undefined, - fill=Undefined, fillOpacity=Undefined, href=Undefined, key=Undefined, - latitude=Undefined, latitude2=Undefined, longitude=Undefined, longitude2=Undefined, - opacity=Undefined, order=Undefined, radius=Undefined, radius2=Undefined, - shape=Undefined, size=Undefined, stroke=Undefined, strokeDash=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, text=Undefined, theta=Undefined, - theta2=Undefined, tooltip=Undefined, url=Undefined, x=Undefined, x2=Undefined, - xError=Undefined, xError2=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, - yError=Undefined, yError2=Undefined, yOffset=Undefined, **kwds): - super(Encoding, self).__init__(angle=angle, color=color, description=description, detail=detail, - fill=fill, fillOpacity=fillOpacity, href=href, key=key, - latitude=latitude, latitude2=latitude2, longitude=longitude, - longitude2=longitude2, opacity=opacity, order=order, - radius=radius, radius2=radius2, shape=shape, size=size, - stroke=stroke, strokeDash=strokeDash, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, text=text, - theta=theta, theta2=theta2, tooltip=tooltip, url=url, x=x, x2=x2, - xError=xError, xError2=xError2, xOffset=xOffset, y=y, y2=y2, - yError=yError, yError2=yError2, yOffset=yOffset, **kwds) + + _schema = {"$ref": "#/definitions/Encoding"} + + def __init__( + self, + angle: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + "ColorDef", + Union["FieldOrDatumDefWithConditionDatumDefGradientstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[ + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + detail: Union[ + Union[ + Sequence[Union["FieldDefWithoutScale", dict]], + Union["FieldDefWithoutScale", dict], + ], + UndefinedType, + ] = Undefined, + fill: Union[ + Union[ + "ColorDef", + Union["FieldOrDatumDefWithConditionDatumDefGradientstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + href: Union[ + Union[ + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + key: Union[Union["FieldDefWithoutScale", dict], UndefinedType] = Undefined, + latitude: Union[ + Union[ + "LatLongDef", Union["DatumDef", dict], Union["LatLongFieldDef", dict] + ], + UndefinedType, + ] = Undefined, + latitude2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + longitude: Union[ + Union[ + "LatLongDef", Union["DatumDef", dict], Union["LatLongFieldDef", dict] + ], + UndefinedType, + ] = Undefined, + longitude2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + opacity: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[ + Sequence[Union["OrderFieldDef", dict]], + Union["OrderFieldDef", dict], + Union["OrderOnlyDef", dict], + Union["OrderValueDef", dict], + ], + UndefinedType, + ] = Undefined, + radius: Union[ + Union[ + "PolarDef", + Union["PositionDatumDefBase", dict], + Union["PositionFieldDefBase", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + radius2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + shape: Union[ + Union[ + "ShapeDef", + Union["FieldOrDatumDefWithConditionDatumDefstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + stroke: Union[ + Union[ + "ColorDef", + Union["FieldOrDatumDefWithConditionDatumDefGradientstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[ + "NumericArrayMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumberArray", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray", dict], + ], + UndefinedType, + ] = Undefined, + strokeOpacity: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + strokeWidth: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + text: Union[ + Union[ + "TextDef", + Union["FieldOrDatumDefWithConditionStringDatumDefText", dict], + Union["FieldOrDatumDefWithConditionStringFieldDefText", dict], + Union["ValueDefWithConditionStringFieldDefText", dict], + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[ + "PolarDef", + Union["PositionDatumDefBase", dict], + Union["PositionFieldDefBase", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + theta2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + tooltip: Union[ + Union[ + None, + Sequence[Union["StringFieldDef", dict]], + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[ + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + x: Union[ + Union[ + "PositionDef", + Union["PositionDatumDef", dict], + Union["PositionFieldDef", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + x2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + xError: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + xError2: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + xOffset: Union[ + Union[ + "OffsetDef", + Union["ScaleDatumDef", dict], + Union["ScaleFieldDef", dict], + Union["ValueDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + y: Union[ + Union[ + "PositionDef", + Union["PositionDatumDef", dict], + Union["PositionFieldDef", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + y2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + yError: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + yError2: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + yOffset: Union[ + Union[ + "OffsetDef", + Union["ScaleDatumDef", dict], + Union["ScaleFieldDef", dict], + Union["ValueDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Encoding, self).__init__( + angle=angle, + color=color, + description=description, + detail=detail, + fill=fill, + fillOpacity=fillOpacity, + href=href, + key=key, + latitude=latitude, + latitude2=latitude2, + longitude=longitude, + longitude2=longitude2, + opacity=opacity, + order=order, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + stroke=stroke, + strokeDash=strokeDash, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + text=text, + theta=theta, + theta2=theta2, + tooltip=tooltip, + url=url, + x=x, + x2=x2, + xError=xError, + xError2=xError2, + xOffset=xOffset, + y=y, + y2=y2, + yError=yError, + yError2=yError2, + yOffset=yOffset, + **kwds, + ) class ErrorBand(CompositeMark): """ErrorBand schema wrapper - string + :class:`ErrorBand`, str """ - _schema = {'$ref': '#/definitions/ErrorBand'} + + _schema = {"$ref": "#/definitions/ErrorBand"} def __init__(self, *args): super(ErrorBand, self).__init__(*args) @@ -4669,16 +12079,16 @@ def __init__(self, *args): class ErrorBandConfig(VegaLiteSchema): """ErrorBandConfig schema wrapper - Mapping(required=[]) + :class:`ErrorBandConfig`, Dict Parameters ---------- - band : anyOf(boolean, :class:`AnyMarkConfig`) + band : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - borders : anyOf(boolean, :class:`AnyMarkConfig`) + borders : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - extent : :class:`ErrorBarExtent` + extent : :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev'] The extent of the band. Available options include: @@ -4690,7 +12100,7 @@ class ErrorBandConfig(VegaLiteSchema): * ``"iqr"`` : Extend the band to the q1 and q3. **Default value:** ``"stderr"``. - interpolate : :class:`Interpolate` + interpolate : :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method for the error band. One of the following: @@ -4716,34 +12126,101 @@ class ErrorBandConfig(VegaLiteSchema): tension : float The tension parameter for the interpolation type of the error band. """ - _schema = {'$ref': '#/definitions/ErrorBandConfig'} - def __init__(self, band=Undefined, borders=Undefined, extent=Undefined, interpolate=Undefined, - tension=Undefined, **kwds): - super(ErrorBandConfig, self).__init__(band=band, borders=borders, extent=extent, - interpolate=interpolate, tension=tension, **kwds) + _schema = {"$ref": "#/definitions/ErrorBandConfig"} + + def __init__( + self, + band: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + borders: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + extent: Union[ + Union["ErrorBarExtent", Literal["ci", "iqr", "stderr", "stdev"]], + UndefinedType, + ] = Undefined, + interpolate: Union[ + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + UndefinedType, + ] = Undefined, + tension: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(ErrorBandConfig, self).__init__( + band=band, + borders=borders, + extent=extent, + interpolate=interpolate, + tension=tension, + **kwds, + ) class ErrorBandDef(CompositeMarkDef): """ErrorBandDef schema wrapper - Mapping(required=[type]) + :class:`ErrorBandDef`, Dict[required=[type]] Parameters ---------- - type : :class:`ErrorBand` + type : :class:`ErrorBand`, str The mark type. This could a primitive mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"geoshape"``, ``"rule"``, and ``"text"`` ) or a composite mark type ( ``"boxplot"``, ``"errorband"``, ``"errorbar"`` ). - band : anyOf(boolean, :class:`AnyMarkConfig`) + band : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - borders : anyOf(boolean, :class:`AnyMarkConfig`) + borders : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool - clip : boolean + clip : bool Whether a composite mark be clipped to the enclosing group’s width and height. - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -4756,7 +12233,7 @@ class ErrorBandDef(CompositeMarkDef): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - extent : :class:`ErrorBarExtent` + extent : :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev'] The extent of the band. Available options include: @@ -4768,7 +12245,7 @@ class ErrorBandDef(CompositeMarkDef): * ``"iqr"`` : Extend the band to the q1 and q3. **Default value:** ``"stderr"``. - interpolate : :class:`Interpolate` + interpolate : :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method for the error band. One of the following: @@ -4793,28 +12270,274 @@ class ErrorBandDef(CompositeMarkDef): * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. opacity : float The opacity (value between [0,1]) of the mark. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] Orientation of the error band. This is normally automatically determined, but can be specified when the orientation is ambiguous and cannot be automatically determined. tension : float The tension parameter for the interpolation type of the error band. """ - _schema = {'$ref': '#/definitions/ErrorBandDef'} - def __init__(self, type=Undefined, band=Undefined, borders=Undefined, clip=Undefined, - color=Undefined, extent=Undefined, interpolate=Undefined, opacity=Undefined, - orient=Undefined, tension=Undefined, **kwds): - super(ErrorBandDef, self).__init__(type=type, band=band, borders=borders, clip=clip, - color=color, extent=extent, interpolate=interpolate, - opacity=opacity, orient=orient, tension=tension, **kwds) + _schema = {"$ref": "#/definitions/ErrorBandDef"} + + def __init__( + self, + type: Union[Union["ErrorBand", str], UndefinedType] = Undefined, + band: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + borders: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + clip: Union[bool, UndefinedType] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + extent: Union[ + Union["ErrorBarExtent", Literal["ci", "iqr", "stderr", "stdev"]], + UndefinedType, + ] = Undefined, + interpolate: Union[ + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + UndefinedType, + ] = Undefined, + opacity: Union[float, UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + tension: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(ErrorBandDef, self).__init__( + type=type, + band=band, + borders=borders, + clip=clip, + color=color, + extent=extent, + interpolate=interpolate, + opacity=opacity, + orient=orient, + tension=tension, + **kwds, + ) class ErrorBar(CompositeMark): """ErrorBar schema wrapper - string + :class:`ErrorBar`, str """ - _schema = {'$ref': '#/definitions/ErrorBar'} + + _schema = {"$ref": "#/definitions/ErrorBar"} def __init__(self, *args): super(ErrorBar, self).__init__(*args) @@ -4823,12 +12546,12 @@ def __init__(self, *args): class ErrorBarConfig(VegaLiteSchema): """ErrorBarConfig schema wrapper - Mapping(required=[]) + :class:`ErrorBarConfig`, Dict Parameters ---------- - extent : :class:`ErrorBarExtent` + extent : :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev'] The extent of the rule. Available options include: @@ -4840,39 +12563,84 @@ class ErrorBarConfig(VegaLiteSchema): * ``"iqr"`` : Extend the rule to the q1 and q3. **Default value:** ``"stderr"``. - rule : anyOf(boolean, :class:`AnyMarkConfig`) + rule : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool size : float Size of the ticks of an error bar thickness : float Thickness of the ticks and the bar of an error bar - ticks : anyOf(boolean, :class:`AnyMarkConfig`) - - """ - _schema = {'$ref': '#/definitions/ErrorBarConfig'} - - def __init__(self, extent=Undefined, rule=Undefined, size=Undefined, thickness=Undefined, - ticks=Undefined, **kwds): - super(ErrorBarConfig, self).__init__(extent=extent, rule=rule, size=size, thickness=thickness, - ticks=ticks, **kwds) + ticks : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool + + """ + + _schema = {"$ref": "#/definitions/ErrorBarConfig"} + + def __init__( + self, + extent: Union[ + Union["ErrorBarExtent", Literal["ci", "iqr", "stderr", "stdev"]], + UndefinedType, + ] = Undefined, + rule: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + size: Union[float, UndefinedType] = Undefined, + thickness: Union[float, UndefinedType] = Undefined, + ticks: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ErrorBarConfig, self).__init__( + extent=extent, + rule=rule, + size=size, + thickness=thickness, + ticks=ticks, + **kwds, + ) class ErrorBarDef(CompositeMarkDef): """ErrorBarDef schema wrapper - Mapping(required=[type]) + :class:`ErrorBarDef`, Dict[required=[type]] Parameters ---------- - type : :class:`ErrorBar` + type : :class:`ErrorBar`, str The mark type. This could a primitive mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"geoshape"``, ``"rule"``, and ``"text"`` ) or a composite mark type ( ``"boxplot"``, ``"errorband"``, ``"errorbar"`` ). - clip : boolean + clip : bool Whether a composite mark be clipped to the enclosing group’s width and height. - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -4885,7 +12653,7 @@ class ErrorBarDef(CompositeMarkDef): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - extent : :class:`ErrorBarExtent` + extent : :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev'] The extent of the rule. Available options include: @@ -4899,34 +12667,258 @@ class ErrorBarDef(CompositeMarkDef): **Default value:** ``"stderr"``. opacity : float The opacity (value between [0,1]) of the mark. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] Orientation of the error bar. This is normally automatically determined, but can be specified when the orientation is ambiguous and cannot be automatically determined. - rule : anyOf(boolean, :class:`AnyMarkConfig`) + rule : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool size : float Size of the ticks of an error bar thickness : float Thickness of the ticks and the bar of an error bar - ticks : anyOf(boolean, :class:`AnyMarkConfig`) - - """ - _schema = {'$ref': '#/definitions/ErrorBarDef'} - - def __init__(self, type=Undefined, clip=Undefined, color=Undefined, extent=Undefined, - opacity=Undefined, orient=Undefined, rule=Undefined, size=Undefined, - thickness=Undefined, ticks=Undefined, **kwds): - super(ErrorBarDef, self).__init__(type=type, clip=clip, color=color, extent=extent, - opacity=opacity, orient=orient, rule=rule, size=size, - thickness=thickness, ticks=ticks, **kwds) + ticks : :class:`AnyMarkConfig`, :class:`AreaConfig`, Dict, :class:`BarConfig`, Dict, :class:`LineConfig`, Dict, :class:`MarkConfig`, Dict, :class:`RectConfig`, Dict, :class:`TickConfig`, Dict, bool + + """ + + _schema = {"$ref": "#/definitions/ErrorBarDef"} + + def __init__( + self, + type: Union[Union["ErrorBar", str], UndefinedType] = Undefined, + clip: Union[bool, UndefinedType] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + extent: Union[ + Union["ErrorBarExtent", Literal["ci", "iqr", "stderr", "stdev"]], + UndefinedType, + ] = Undefined, + opacity: Union[float, UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + rule: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + size: Union[float, UndefinedType] = Undefined, + thickness: Union[float, UndefinedType] = Undefined, + ticks: Union[ + Union[ + Union[ + "AnyMarkConfig", + Union["AreaConfig", dict], + Union["BarConfig", dict], + Union["LineConfig", dict], + Union["MarkConfig", dict], + Union["RectConfig", dict], + Union["TickConfig", dict], + ], + bool, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ErrorBarDef, self).__init__( + type=type, + clip=clip, + color=color, + extent=extent, + opacity=opacity, + orient=orient, + rule=rule, + size=size, + thickness=thickness, + ticks=ticks, + **kwds, + ) class ErrorBarExtent(VegaLiteSchema): """ErrorBarExtent schema wrapper - enum('ci', 'iqr', 'stderr', 'stdev') + :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev'] """ - _schema = {'$ref': '#/definitions/ErrorBarExtent'} + + _schema = {"$ref": "#/definitions/ErrorBarExtent"} def __init__(self, *args): super(ErrorBarExtent, self).__init__(*args) @@ -4935,9 +12927,10 @@ def __init__(self, *args): class Expr(VegaLiteSchema): """Expr schema wrapper - string + :class:`Expr`, str """ - _schema = {'$ref': '#/definitions/Expr'} + + _schema = {"$ref": "#/definitions/Expr"} def __init__(self, *args): super(Expr, self).__init__(*args) @@ -4946,29 +12939,32 @@ def __init__(self, *args): class ExprRef(VegaLiteSchema): """ExprRef schema wrapper - Mapping(required=[expr]) + :class:`ExprRef`, Dict[required=[expr]] Parameters ---------- - expr : string + expr : str Vega expression (which can refer to Vega-Lite parameters). """ - _schema = {'$ref': '#/definitions/ExprRef'} - def __init__(self, expr=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ExprRef"} + + def __init__(self, expr: Union[str, UndefinedType] = Undefined, **kwds): super(ExprRef, self).__init__(expr=expr, **kwds) class FacetEncodingFieldDef(VegaLiteSchema): """FacetEncodingFieldDef schema wrapper - Mapping(required=[]) + :class:`FacetEncodingFieldDef`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -4976,7 +12972,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): **See also:** `aggregate `__ documentation. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -4997,7 +12993,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -5018,7 +13014,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): **See also:** `bin `__ documentation. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -5030,7 +13026,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -5056,7 +13052,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -5071,9 +13067,9 @@ class FacetEncodingFieldDef(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - header : anyOf(:class:`Header`, None) + header : :class:`Header`, Dict, None An object defining properties of a facet's header. - sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None) + sort : :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortOrder`, Literal['ascending', 'descending'], None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -5100,7 +13096,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): **Default value:** ``"ascending"`` **Note:** ``null`` is not supported for ``row`` and ``column``. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -5108,7 +13104,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -5117,7 +13113,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5137,7 +13133,7 @@ class FacetEncodingFieldDef(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5207,28 +13203,278 @@ class FacetEncodingFieldDef(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FacetEncodingFieldDef'} - def __init__(self, aggregate=Undefined, align=Undefined, bandPosition=Undefined, bin=Undefined, - bounds=Undefined, center=Undefined, columns=Undefined, field=Undefined, - header=Undefined, sort=Undefined, spacing=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FacetEncodingFieldDef, self).__init__(aggregate=aggregate, align=align, - bandPosition=bandPosition, bin=bin, bounds=bounds, - center=center, columns=columns, field=field, - header=header, sort=sort, spacing=spacing, - timeUnit=timeUnit, title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/FacetEncodingFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + header: Union[Union[None, Union["Header", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + UndefinedType, + ] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FacetEncodingFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + align=align, + bandPosition=bandPosition, + bin=bin, + bounds=bounds, + center=center, + columns=columns, + field=field, + header=header, + sort=sort, + spacing=spacing, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class FacetFieldDef(VegaLiteSchema): """FacetFieldDef schema wrapper - Mapping(required=[]) + :class:`FacetFieldDef`, Dict Parameters ---------- - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -5240,7 +13486,7 @@ class FacetFieldDef(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -5261,7 +13507,7 @@ class FacetFieldDef(VegaLiteSchema): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -5276,9 +13522,9 @@ class FacetFieldDef(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - header : anyOf(:class:`Header`, None) + header : :class:`Header`, Dict, None An object defining properties of a facet's header. - sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None) + sort : :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortOrder`, Literal['ascending', 'descending'], None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -5305,7 +13551,7 @@ class FacetFieldDef(VegaLiteSchema): **Default value:** ``"ascending"`` **Note:** ``null`` is not supported for ``row`` and ``column``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -5314,7 +13560,7 @@ class FacetFieldDef(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5334,7 +13580,7 @@ class FacetFieldDef(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5404,46 +13650,281 @@ class FacetFieldDef(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FacetFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - header=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, - **kwds): - super(FacetFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, header=header, sort=sort, timeUnit=timeUnit, - title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/FacetFieldDef"} + + def __init__( + self, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + header: Union[Union[None, Union["Header", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FacetFieldDef, self).__init__( + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + header=header, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class FacetMapping(VegaLiteSchema): """FacetMapping schema wrapper - Mapping(required=[]) + :class:`FacetMapping`, Dict Parameters ---------- - column : :class:`FacetFieldDef` + column : :class:`FacetFieldDef`, Dict A field definition for the horizontal facet of trellis plots. - row : :class:`FacetFieldDef` + row : :class:`FacetFieldDef`, Dict A field definition for the vertical facet of trellis plots. """ - _schema = {'$ref': '#/definitions/FacetMapping'} - def __init__(self, column=Undefined, row=Undefined, **kwds): + _schema = {"$ref": "#/definitions/FacetMapping"} + + def __init__( + self, + column: Union[Union["FacetFieldDef", dict], UndefinedType] = Undefined, + row: Union[Union["FacetFieldDef", dict], UndefinedType] = Undefined, + **kwds, + ): super(FacetMapping, self).__init__(column=column, row=row, **kwds) class FacetedEncoding(VegaLiteSchema): """FacetedEncoding schema wrapper - Mapping(required=[]) + :class:`FacetedEncoding`, Dict Parameters ---------- - angle : :class:`NumericMarkPropDef` + angle : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Rotation angle of point and text marks. - color : :class:`ColorDef` + color : :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, Dict[required=[shorthand]], :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Color of the marks – either fill or stroke color based on the ``filled`` property of mark definition. By default, ``color`` represents fill color for ``"area"``, ``"bar"``, ``"tick"``, ``"text"``, ``"trail"``, ``"circle"``, and ``"square"`` / @@ -5459,55 +13940,55 @@ class FacetedEncoding(VegaLiteSchema): encoding if conflicting encodings are specified. 2) See the scale documentation for more information about customizing `color scheme `__. - column : :class:`RowColumnEncodingFieldDef` + column : :class:`RowColumnEncodingFieldDef`, Dict[required=[shorthand]] A field definition for the horizontal facet of trellis plots. - description : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`) + description : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict A text description of this mark for ARIA accessibility (SVG output only). For SVG output the ``"aria-label"`` attribute will be set to this description. - detail : anyOf(:class:`FieldDefWithoutScale`, List(:class:`FieldDefWithoutScale`)) + detail : :class:`FieldDefWithoutScale`, Dict[required=[shorthand]], Sequence[:class:`FieldDefWithoutScale`, Dict[required=[shorthand]]] Additional levels of detail for grouping data in aggregate views and in line, trail, and area marks without mapping data to a specific visual channel. - facet : :class:`FacetEncodingFieldDef` + facet : :class:`FacetEncodingFieldDef`, Dict[required=[shorthand]] A field definition for the (flexible) facet of trellis plots. If either ``row`` or ``column`` is specified, this channel will be ignored. - fill : :class:`ColorDef` + fill : :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, Dict[required=[shorthand]], :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Fill color of the marks. **Default value:** If undefined, the default color depends on `mark config `__ 's ``color`` property. *Note:* The ``fill`` encoding has higher precedence than ``color``, thus may override the ``color`` encoding if conflicting encodings are specified. - fillOpacity : :class:`NumericMarkPropDef` + fillOpacity : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Fill opacity of the marks. **Default value:** If undefined, the default opacity depends on `mark config `__ 's ``fillOpacity`` property. - href : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`) + href : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict A URL to load upon mouse click. - key : :class:`FieldDefWithoutScale` + key : :class:`FieldDefWithoutScale`, Dict[required=[shorthand]] A data field to use as a unique key for data binding. When a visualization’s data is updated, the key value will be used to match data elements to existing mark instances. Use a key channel to enable object constancy for transitions over dynamic data. - latitude : :class:`LatLongDef` + latitude : :class:`DatumDef`, Dict, :class:`LatLongDef`, :class:`LatLongFieldDef`, Dict[required=[shorthand]] Latitude position of geographically projected marks. - latitude2 : :class:`Position2Def` + latitude2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] Latitude-2 position for geographically projected ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. - longitude : :class:`LatLongDef` + longitude : :class:`DatumDef`, Dict, :class:`LatLongDef`, :class:`LatLongFieldDef`, Dict[required=[shorthand]] Longitude position of geographically projected marks. - longitude2 : :class:`Position2Def` + longitude2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] Longitude-2 position for geographically projected ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. - opacity : :class:`NumericMarkPropDef` + opacity : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Opacity of the marks. **Default value:** If undefined, the default opacity depends on `mark config `__ 's ``opacity`` property. - order : anyOf(:class:`OrderFieldDef`, List(:class:`OrderFieldDef`), :class:`OrderValueDef`, :class:`OrderOnlyDef`) + order : :class:`OrderFieldDef`, Dict[required=[shorthand]], :class:`OrderOnlyDef`, Dict, :class:`OrderValueDef`, Dict[required=[value]], Sequence[:class:`OrderFieldDef`, Dict[required=[shorthand]]] Order of the marks. @@ -5522,13 +14003,13 @@ class FacetedEncoding(VegaLiteSchema): **Note** : In aggregate plots, ``order`` field should be ``aggregate`` d to avoid creating additional aggregation grouping. - radius : :class:`PolarDef` + radius : :class:`PolarDef`, :class:`PositionDatumDefBase`, Dict, :class:`PositionFieldDefBase`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] The outer radius in pixels of arc marks. - radius2 : :class:`Position2Def` + radius2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] The inner radius in pixels of arc marks. - row : :class:`RowColumnEncodingFieldDef` + row : :class:`RowColumnEncodingFieldDef`, Dict[required=[shorthand]] A field definition for the vertical facet of trellis plots. - shape : :class:`ShapeDef` + shape : :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, Dict[required=[shorthand]], :class:`ShapeDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`, Dict Shape of the mark. @@ -5548,7 +14029,7 @@ class FacetedEncoding(VegaLiteSchema): **Default value:** If undefined, the default shape depends on `mark config `__ 's ``shape`` property. ( ``"circle"`` if unset.) - size : :class:`NumericMarkPropDef` + size : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Size of the mark. @@ -5558,7 +14039,7 @@ class FacetedEncoding(VegaLiteSchema): * For ``"text"`` – the text's font size. * Size is unsupported for ``"line"``, ``"area"``, and ``"rect"``. (Use ``"trail"`` instead of line with varying size) - stroke : :class:`ColorDef` + stroke : :class:`ColorDef`, :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, Dict[required=[shorthand]], :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Stroke color of the marks. **Default value:** If undefined, the default color depends on `mark config `__ 's ``color`` @@ -5566,197 +14047,610 @@ class FacetedEncoding(VegaLiteSchema): *Note:* The ``stroke`` encoding has higher precedence than ``color``, thus may override the ``color`` encoding if conflicting encodings are specified. - strokeDash : :class:`NumericArrayMarkPropDef` + strokeDash : :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, Dict[required=[shorthand]], :class:`NumericArrayMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`, Dict Stroke dash of the marks. **Default value:** ``[1,0]`` (No dash). - strokeOpacity : :class:`NumericMarkPropDef` + strokeOpacity : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Stroke opacity of the marks. **Default value:** If undefined, the default opacity depends on `mark config `__ 's ``strokeOpacity`` property. - strokeWidth : :class:`NumericMarkPropDef` + strokeWidth : :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Stroke width of the marks. **Default value:** If undefined, the default stroke width depends on `mark config `__ 's ``strokeWidth`` property. - text : :class:`TextDef` + text : :class:`FieldOrDatumDefWithConditionStringDatumDefText`, Dict, :class:`FieldOrDatumDefWithConditionStringFieldDefText`, Dict[required=[shorthand]], :class:`TextDef`, :class:`ValueDefWithConditionStringFieldDefText`, Dict Text of the ``text`` mark. - theta : :class:`PolarDef` + theta : :class:`PolarDef`, :class:`PositionDatumDefBase`, Dict, :class:`PositionFieldDefBase`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : :class:`Position2Def` + theta2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. - tooltip : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`, List(:class:`StringFieldDef`), None) + tooltip : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict, None, Sequence[:class:`StringFieldDef`, Dict] The tooltip text to show upon mouse hover. Specifying ``tooltip`` encoding overrides `the tooltip property in the mark definition `__. See the `tooltip `__ documentation for a detailed discussion about tooltip in Vega-Lite. - url : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`) + url : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict The URL of an image mark. - x : :class:`PositionDef` + x : :class:`PositionDatumDef`, Dict, :class:`PositionDef`, :class:`PositionFieldDef`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : :class:`Position2Def` + x2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - xError : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + xError : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Error value of x coordinates for error specified ``"errorbar"`` and ``"errorband"``. - xError2 : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + xError2 : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Secondary error value of x coordinates for error specified ``"errorbar"`` and ``"errorband"``. - xOffset : :class:`OffsetDef` + xOffset : :class:`OffsetDef`, :class:`ScaleDatumDef`, Dict, :class:`ScaleFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Offset of x-position of the marks - y : :class:`PositionDef` + y : :class:`PositionDatumDef`, Dict, :class:`PositionDef`, :class:`PositionFieldDef`, Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : :class:`Position2Def` + y2 : :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - yError : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + yError : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Error value of y coordinates for error specified ``"errorbar"`` and ``"errorband"``. - yError2 : anyOf(:class:`SecondaryFieldDef`, :class:`ValueDefnumber`) + yError2 : :class:`SecondaryFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Secondary error value of y coordinates for error specified ``"errorbar"`` and ``"errorband"``. - yOffset : :class:`OffsetDef` + yOffset : :class:`OffsetDef`, :class:`ScaleDatumDef`, Dict, :class:`ScaleFieldDef`, Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] Offset of y-position of the marks """ - _schema = {'$ref': '#/definitions/FacetedEncoding'} - - def __init__(self, angle=Undefined, color=Undefined, column=Undefined, description=Undefined, - detail=Undefined, facet=Undefined, fill=Undefined, fillOpacity=Undefined, - href=Undefined, key=Undefined, latitude=Undefined, latitude2=Undefined, - longitude=Undefined, longitude2=Undefined, opacity=Undefined, order=Undefined, - radius=Undefined, radius2=Undefined, row=Undefined, shape=Undefined, size=Undefined, - stroke=Undefined, strokeDash=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, tooltip=Undefined, url=Undefined, - x=Undefined, x2=Undefined, xError=Undefined, xError2=Undefined, xOffset=Undefined, - y=Undefined, y2=Undefined, yError=Undefined, yError2=Undefined, yOffset=Undefined, - **kwds): - super(FacetedEncoding, self).__init__(angle=angle, color=color, column=column, - description=description, detail=detail, facet=facet, - fill=fill, fillOpacity=fillOpacity, href=href, key=key, - latitude=latitude, latitude2=latitude2, - longitude=longitude, longitude2=longitude2, - opacity=opacity, order=order, radius=radius, - radius2=radius2, row=row, shape=shape, size=size, - stroke=stroke, strokeDash=strokeDash, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - text=text, theta=theta, theta2=theta2, tooltip=tooltip, - url=url, x=x, x2=x2, xError=xError, xError2=xError2, - xOffset=xOffset, y=y, y2=y2, yError=yError, - yError2=yError2, yOffset=yOffset, **kwds) + + _schema = {"$ref": "#/definitions/FacetedEncoding"} + + def __init__( + self, + angle: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + "ColorDef", + Union["FieldOrDatumDefWithConditionDatumDefGradientstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + column: Union[ + Union["RowColumnEncodingFieldDef", dict], UndefinedType + ] = Undefined, + description: Union[ + Union[ + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + detail: Union[ + Union[ + Sequence[Union["FieldDefWithoutScale", dict]], + Union["FieldDefWithoutScale", dict], + ], + UndefinedType, + ] = Undefined, + facet: Union[Union["FacetEncodingFieldDef", dict], UndefinedType] = Undefined, + fill: Union[ + Union[ + "ColorDef", + Union["FieldOrDatumDefWithConditionDatumDefGradientstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + href: Union[ + Union[ + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + key: Union[Union["FieldDefWithoutScale", dict], UndefinedType] = Undefined, + latitude: Union[ + Union[ + "LatLongDef", Union["DatumDef", dict], Union["LatLongFieldDef", dict] + ], + UndefinedType, + ] = Undefined, + latitude2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + longitude: Union[ + Union[ + "LatLongDef", Union["DatumDef", dict], Union["LatLongFieldDef", dict] + ], + UndefinedType, + ] = Undefined, + longitude2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + opacity: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[ + Sequence[Union["OrderFieldDef", dict]], + Union["OrderFieldDef", dict], + Union["OrderOnlyDef", dict], + Union["OrderValueDef", dict], + ], + UndefinedType, + ] = Undefined, + radius: Union[ + Union[ + "PolarDef", + Union["PositionDatumDefBase", dict], + Union["PositionFieldDefBase", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + radius2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + row: Union[Union["RowColumnEncodingFieldDef", dict], UndefinedType] = Undefined, + shape: Union[ + Union[ + "ShapeDef", + Union["FieldOrDatumDefWithConditionDatumDefstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + stroke: Union[ + Union[ + "ColorDef", + Union["FieldOrDatumDefWithConditionDatumDefGradientstringnull", dict], + Union[ + "FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull", + dict, + ], + Union[ + "ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull", + dict, + ], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[ + "NumericArrayMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumberArray", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray", dict], + ], + UndefinedType, + ] = Undefined, + strokeOpacity: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + strokeWidth: Union[ + Union[ + "NumericMarkPropDef", + Union["FieldOrDatumDefWithConditionDatumDefnumber", dict], + Union["FieldOrDatumDefWithConditionMarkPropFieldDefnumber", dict], + Union["ValueDefWithConditionMarkPropFieldOrDatumDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + text: Union[ + Union[ + "TextDef", + Union["FieldOrDatumDefWithConditionStringDatumDefText", dict], + Union["FieldOrDatumDefWithConditionStringFieldDefText", dict], + Union["ValueDefWithConditionStringFieldDefText", dict], + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[ + "PolarDef", + Union["PositionDatumDefBase", dict], + Union["PositionFieldDefBase", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + theta2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + tooltip: Union[ + Union[ + None, + Sequence[Union["StringFieldDef", dict]], + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[ + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + x: Union[ + Union[ + "PositionDef", + Union["PositionDatumDef", dict], + Union["PositionFieldDef", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + x2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + xError: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + xError2: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + xOffset: Union[ + Union[ + "OffsetDef", + Union["ScaleDatumDef", dict], + Union["ScaleFieldDef", dict], + Union["ValueDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + y: Union[ + Union[ + "PositionDef", + Union["PositionDatumDef", dict], + Union["PositionFieldDef", dict], + Union["PositionValueDef", dict], + ], + UndefinedType, + ] = Undefined, + y2: Union[ + Union[ + "Position2Def", + Union["DatumDef", dict], + Union["PositionValueDef", dict], + Union["SecondaryFieldDef", dict], + ], + UndefinedType, + ] = Undefined, + yError: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + yError2: Union[ + Union[Union["SecondaryFieldDef", dict], Union["ValueDefnumber", dict]], + UndefinedType, + ] = Undefined, + yOffset: Union[ + Union[ + "OffsetDef", + Union["ScaleDatumDef", dict], + Union["ScaleFieldDef", dict], + Union["ValueDefnumber", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FacetedEncoding, self).__init__( + angle=angle, + color=color, + column=column, + description=description, + detail=detail, + facet=facet, + fill=fill, + fillOpacity=fillOpacity, + href=href, + key=key, + latitude=latitude, + latitude2=latitude2, + longitude=longitude, + longitude2=longitude2, + opacity=opacity, + order=order, + radius=radius, + radius2=radius2, + row=row, + shape=shape, + size=size, + stroke=stroke, + strokeDash=strokeDash, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + text=text, + theta=theta, + theta2=theta2, + tooltip=tooltip, + url=url, + x=x, + x2=x2, + xError=xError, + xError2=xError2, + xOffset=xOffset, + y=y, + y2=y2, + yError=yError, + yError2=yError2, + yOffset=yOffset, + **kwds, + ) class Feature(VegaLiteSchema): """Feature schema wrapper - Mapping(required=[geometry, properties, type]) + :class:`Feature`, Dict[required=[geometry, properties, type]] A feature object which contains a geometry and associated properties. https://tools.ietf.org/html/rfc7946#section-3.2 Parameters ---------- - geometry : :class:`Geometry` + geometry : :class:`GeometryCollection`, Dict[required=[geometries, type]], :class:`Geometry`, :class:`LineString`, Dict[required=[coordinates, type]], :class:`MultiLineString`, Dict[required=[coordinates, type]], :class:`MultiPoint`, Dict[required=[coordinates, type]], :class:`MultiPolygon`, Dict[required=[coordinates, type]], :class:`Point`, Dict[required=[coordinates, type]], :class:`Polygon`, Dict[required=[coordinates, type]] The feature's geometry - properties : :class:`GeoJsonProperties` + properties : :class:`GeoJsonProperties`, Dict, None Properties associated with this feature. - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 - id : anyOf(string, float) + id : float, str A value that uniquely identifies this feature in a https://tools.ietf.org/html/rfc7946#section-3.2. """ - _schema = {'$ref': '#/definitions/Feature'} - def __init__(self, geometry=Undefined, properties=Undefined, type=Undefined, bbox=Undefined, - id=Undefined, **kwds): - super(Feature, self).__init__(geometry=geometry, properties=properties, type=type, bbox=bbox, - id=id, **kwds) + _schema = {"$ref": "#/definitions/Feature"} + + def __init__( + self, + geometry: Union[ + Union[ + "Geometry", + Union["GeometryCollection", dict], + Union["LineString", dict], + Union["MultiLineString", dict], + Union["MultiPoint", dict], + Union["MultiPolygon", dict], + Union["Point", dict], + Union["Polygon", dict], + ], + UndefinedType, + ] = Undefined, + properties: Union[ + Union["GeoJsonProperties", None, dict], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + id: Union[Union[float, str], UndefinedType] = Undefined, + **kwds, + ): + super(Feature, self).__init__( + geometry=geometry, + properties=properties, + type=type, + bbox=bbox, + id=id, + **kwds, + ) class FeatureCollection(VegaLiteSchema): """FeatureCollection schema wrapper - Mapping(required=[features, type]) + :class:`FeatureCollection`, Dict[required=[features, type]] A collection of feature objects. https://tools.ietf.org/html/rfc7946#section-3.3 Parameters ---------- - features : List(:class:`FeatureGeometryGeoJsonProperties`) + features : Sequence[:class:`FeatureGeometryGeoJsonProperties`, Dict[required=[geometry, properties, type]]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/FeatureCollection'} - def __init__(self, features=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(FeatureCollection, self).__init__(features=features, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/FeatureCollection"} + + def __init__( + self, + features: Union[ + Sequence[Union["FeatureGeometryGeoJsonProperties", dict]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(FeatureCollection, self).__init__( + features=features, type=type, bbox=bbox, **kwds + ) class FeatureGeometryGeoJsonProperties(VegaLiteSchema): """FeatureGeometryGeoJsonProperties schema wrapper - Mapping(required=[geometry, properties, type]) + :class:`FeatureGeometryGeoJsonProperties`, Dict[required=[geometry, properties, type]] A feature object which contains a geometry and associated properties. https://tools.ietf.org/html/rfc7946#section-3.2 Parameters ---------- - geometry : :class:`Geometry` + geometry : :class:`GeometryCollection`, Dict[required=[geometries, type]], :class:`Geometry`, :class:`LineString`, Dict[required=[coordinates, type]], :class:`MultiLineString`, Dict[required=[coordinates, type]], :class:`MultiPoint`, Dict[required=[coordinates, type]], :class:`MultiPolygon`, Dict[required=[coordinates, type]], :class:`Point`, Dict[required=[coordinates, type]], :class:`Polygon`, Dict[required=[coordinates, type]] The feature's geometry - properties : :class:`GeoJsonProperties` + properties : :class:`GeoJsonProperties`, Dict, None Properties associated with this feature. - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 - id : anyOf(string, float) + id : float, str A value that uniquely identifies this feature in a https://tools.ietf.org/html/rfc7946#section-3.2. """ - _schema = {'$ref': '#/definitions/Feature'} - def __init__(self, geometry=Undefined, properties=Undefined, type=Undefined, bbox=Undefined, - id=Undefined, **kwds): - super(FeatureGeometryGeoJsonProperties, self).__init__(geometry=geometry, properties=properties, - type=type, bbox=bbox, id=id, **kwds) + _schema = {"$ref": "#/definitions/Feature"} + + def __init__( + self, + geometry: Union[ + Union[ + "Geometry", + Union["GeometryCollection", dict], + Union["LineString", dict], + Union["MultiLineString", dict], + Union["MultiPoint", dict], + Union["MultiPolygon", dict], + Union["Point", dict], + Union["Polygon", dict], + ], + UndefinedType, + ] = Undefined, + properties: Union[ + Union["GeoJsonProperties", None, dict], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + id: Union[Union[float, str], UndefinedType] = Undefined, + **kwds, + ): + super(FeatureGeometryGeoJsonProperties, self).__init__( + geometry=geometry, + properties=properties, + type=type, + bbox=bbox, + id=id, + **kwds, + ) class Field(VegaLiteSchema): """Field schema wrapper - anyOf(:class:`FieldName`, :class:`RepeatRef`) + :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] """ - _schema = {'$ref': '#/definitions/Field'} + + _schema = {"$ref": "#/definitions/Field"} def __init__(self, *args, **kwds): super(Field, self).__init__(*args, **kwds) @@ -5765,13 +14659,15 @@ def __init__(self, *args, **kwds): class FieldDefWithoutScale(VegaLiteSchema): """FieldDefWithoutScale schema wrapper - Mapping(required=[]) + :class:`FieldDefWithoutScale`, Dict[required=[shorthand]] Definition object for a data field, its type and transformation of an encoding channel. Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -5783,7 +14679,7 @@ class FieldDefWithoutScale(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -5804,7 +14700,7 @@ class FieldDefWithoutScale(VegaLiteSchema): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -5819,7 +14715,7 @@ class FieldDefWithoutScale(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -5828,7 +14724,7 @@ class FieldDefWithoutScale(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -5848,7 +14744,7 @@ class FieldDefWithoutScale(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -5918,21 +14814,238 @@ class FieldDefWithoutScale(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldDefWithoutScale'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(FieldDefWithoutScale, self).__init__(aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, timeUnit=timeUnit, title=title, - type=type, **kwds) + _schema = {"$ref": "#/definitions/FieldDefWithoutScale"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldDefWithoutScale, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class FieldName(Field): """FieldName schema wrapper - string + :class:`FieldName`, str """ - _schema = {'$ref': '#/definitions/FieldName'} + + _schema = {"$ref": "#/definitions/FieldName"} def __init__(self, *args): super(FieldName, self).__init__(*args) @@ -5941,12 +15054,12 @@ def __init__(self, *args): class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): """FieldOrDatumDefWithConditionStringFieldDefstring schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionStringFieldDefstring`, Dict Parameters ---------- - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -5958,7 +15071,7 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -5979,14 +15092,14 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`)) + condition : :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`, Sequence[:class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -6001,7 +15114,7 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -6024,7 +15137,7 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -6035,7 +15148,7 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -6044,7 +15157,7 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -6064,7 +15177,7 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -6134,47 +15247,278 @@ class FieldOrDatumDefWithConditionStringFieldDefstring(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, format=Undefined, formatType=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionStringFieldDefstring, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, - bin=bin, - condition=condition, - field=field, - format=format, - formatType=formatType, - timeUnit=timeUnit, - title=title, type=type, - **kwds) + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringExprRef", + Union["ConditionalParameterValueDefstringExprRef", dict], + Union["ConditionalPredicateValueDefstringExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefstringExprRef", + Union["ConditionalParameterValueDefstringExprRef", dict], + Union["ConditionalPredicateValueDefstringExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionStringFieldDefstring, self).__init__( + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class FieldRange(VegaLiteSchema): """FieldRange schema wrapper - Mapping(required=[field]) + :class:`FieldRange`, Dict[required=[field]] Parameters ---------- - field : string + field : str """ - _schema = {'$ref': '#/definitions/FieldRange'} - def __init__(self, field=Undefined, **kwds): + _schema = {"$ref": "#/definitions/FieldRange"} + + def __init__(self, field: Union[str, UndefinedType] = Undefined, **kwds): super(FieldRange, self).__init__(field=field, **kwds) class Fit(VegaLiteSchema): """Fit schema wrapper - anyOf(:class:`GeoJsonFeature`, :class:`GeoJsonFeatureCollection`, - List(:class:`GeoJsonFeature`)) + :class:`Fit`, :class:`GeoJsonFeatureCollection`, Dict[required=[features, type]], + :class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]], + Sequence[:class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]]] """ - _schema = {'$ref': '#/definitions/Fit'} + + _schema = {"$ref": "#/definitions/Fit"} def __init__(self, *args, **kwds): super(Fit, self).__init__(*args, **kwds) @@ -6183,9 +15527,10 @@ def __init__(self, *args, **kwds): class FontStyle(VegaLiteSchema): """FontStyle schema wrapper - string + :class:`FontStyle`, str """ - _schema = {'$ref': '#/definitions/FontStyle'} + + _schema = {"$ref": "#/definitions/FontStyle"} def __init__(self, *args): super(FontStyle, self).__init__(*args) @@ -6194,9 +15539,11 @@ def __init__(self, *args): class FontWeight(VegaLiteSchema): """FontWeight schema wrapper - enum('normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900) + :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, + 600, 700, 800, 900] """ - _schema = {'$ref': '#/definitions/FontWeight'} + + _schema = {"$ref": "#/definitions/FontWeight"} def __init__(self, *args): super(FontWeight, self).__init__(*args) @@ -6205,12 +15552,12 @@ def __init__(self, *args): class FormatConfig(VegaLiteSchema): """FormatConfig schema wrapper - Mapping(required=[]) + :class:`FormatConfig`, Dict Parameters ---------- - normalizedNumberFormat : string + normalizedNumberFormat : str If normalizedNumberFormatType is not specified, D3 number format for axis labels, text marks, and tooltips of normalized stacked fields (fields with ``stack: "normalize"`` ). For example ``"s"`` for SI units. Use `D3's number format pattern @@ -6220,7 +15567,7 @@ class FormatConfig(VegaLiteSchema): ``config.customFormatTypes`` is ``true``, this value will be passed as ``format`` alongside ``datum.value`` to the ``config.numberFormatType`` function. **Default value:** ``%`` - normalizedNumberFormatType : string + normalizedNumberFormatType : str `Custom format type `__ for ``config.normalizedNumberFormat``. @@ -6229,7 +15576,7 @@ class FormatConfig(VegaLiteSchema): exposed as `format in Vega-Expression `__. **Note:** You must also set ``customFormatTypes`` to ``true`` to use this feature. - numberFormat : string + numberFormat : str If numberFormatType is not specified, D3 number format for guide labels, text marks, and tooltips of non-normalized fields (fields *without* ``stack: "normalize"`` ). For example ``"s"`` for SI units. Use `D3's number format pattern @@ -6238,7 +15585,7 @@ class FormatConfig(VegaLiteSchema): If ``config.numberFormatType`` is specified and ``config.customFormatTypes`` is ``true``, this value will be passed as ``format`` alongside ``datum.value`` to the ``config.numberFormatType`` function. - numberFormatType : string + numberFormatType : str `Custom format type `__ for ``config.numberFormat``. @@ -6247,13 +15594,13 @@ class FormatConfig(VegaLiteSchema): exposed as `format in Vega-Expression `__. **Note:** You must also set ``customFormatTypes`` to ``true`` to use this feature. - timeFormat : string + timeFormat : str Default time format for raw time values (without time units) in text marks, legend labels and header labels. **Default value:** ``"%b %d, %Y"`` **Note:** Axes automatically determine the format for each label automatically so this config does not affect axes. - timeFormatType : string + timeFormatType : str `Custom format type `__ for ``config.timeFormat``. @@ -6264,23 +15611,39 @@ class FormatConfig(VegaLiteSchema): also set ``customFormatTypes`` to ``true`` and there must *not* be a ``timeUnit`` defined to use this feature. """ - _schema = {'$ref': '#/definitions/FormatConfig'} - def __init__(self, normalizedNumberFormat=Undefined, normalizedNumberFormatType=Undefined, - numberFormat=Undefined, numberFormatType=Undefined, timeFormat=Undefined, - timeFormatType=Undefined, **kwds): - super(FormatConfig, self).__init__(normalizedNumberFormat=normalizedNumberFormat, - normalizedNumberFormatType=normalizedNumberFormatType, - numberFormat=numberFormat, numberFormatType=numberFormatType, - timeFormat=timeFormat, timeFormatType=timeFormatType, **kwds) + _schema = {"$ref": "#/definitions/FormatConfig"} + + def __init__( + self, + normalizedNumberFormat: Union[str, UndefinedType] = Undefined, + normalizedNumberFormatType: Union[str, UndefinedType] = Undefined, + numberFormat: Union[str, UndefinedType] = Undefined, + numberFormatType: Union[str, UndefinedType] = Undefined, + timeFormat: Union[str, UndefinedType] = Undefined, + timeFormatType: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(FormatConfig, self).__init__( + normalizedNumberFormat=normalizedNumberFormat, + normalizedNumberFormatType=normalizedNumberFormatType, + numberFormat=numberFormat, + numberFormatType=numberFormatType, + timeFormat=timeFormat, + timeFormatType=timeFormatType, + **kwds, + ) class Generator(Data): """Generator schema wrapper - anyOf(:class:`SequenceGenerator`, :class:`SphereGenerator`, :class:`GraticuleGenerator`) + :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], + :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, + Dict[required=[sphere]] """ - _schema = {'$ref': '#/definitions/Generator'} + + _schema = {"$ref": "#/definitions/Generator"} def __init__(self, *args, **kwds): super(Generator, self).__init__(*args, **kwds) @@ -6289,110 +15652,256 @@ def __init__(self, *args, **kwds): class GenericUnitSpecEncodingAnyMark(VegaLiteSchema): """GenericUnitSpecEncodingAnyMark schema wrapper - Mapping(required=[mark]) + :class:`GenericUnitSpecEncodingAnyMark`, Dict[required=[mark]] Base interface for a unit (single-view) specification. Parameters ---------- - mark : :class:`AnyMark` + mark : :class:`AnyMark`, :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]], :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, str, :class:`MarkDef`, Dict[required=[type]], :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] A string describing the mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"rule"``, ``"geoshape"``, and ``"text"`` ) or a `mark definition object `__. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`Encoding` + encoding : :class:`Encoding`, Dict A key-value mapping between encoding channels and definition of fields. - name : string + name : str Name of the visualization for later reference. - params : List(:class:`SelectionParameter`) + params : Sequence[:class:`SelectionParameter`, Dict[required=[name, select]]] An array of parameters that may either be simple variables, or more complex selections that map user input to data queries. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of geographic projection, which will be applied to ``shape`` path for ``"geoshape"`` marks and to ``latitude`` and ``"longitude"`` channels for other marks. - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/GenericUnitSpec'} - def __init__(self, mark=Undefined, data=Undefined, description=Undefined, encoding=Undefined, - name=Undefined, params=Undefined, projection=Undefined, title=Undefined, - transform=Undefined, **kwds): - super(GenericUnitSpecEncodingAnyMark, self).__init__(mark=mark, data=data, - description=description, encoding=encoding, - name=name, params=params, - projection=projection, title=title, - transform=transform, **kwds) + _schema = {"$ref": "#/definitions/GenericUnitSpec"} + + def __init__( + self, + mark: Union[ + Union[ + "AnyMark", + Union[ + "CompositeMark", + Union["BoxPlot", str], + Union["ErrorBand", str], + Union["ErrorBar", str], + ], + Union[ + "CompositeMarkDef", + Union["BoxPlotDef", dict], + Union["ErrorBandDef", dict], + Union["ErrorBarDef", dict], + ], + Union[ + "Mark", + Literal[ + "arc", + "area", + "bar", + "image", + "line", + "point", + "rect", + "rule", + "text", + "tick", + "trail", + "circle", + "square", + "geoshape", + ], + ], + Union["MarkDef", dict], + ], + UndefinedType, + ] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["Encoding", dict], UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + params: Union[ + Sequence[Union["SelectionParameter", dict]], UndefinedType + ] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(GenericUnitSpecEncodingAnyMark, self).__init__( + mark=mark, + data=data, + description=description, + encoding=encoding, + name=name, + params=params, + projection=projection, + title=title, + transform=transform, + **kwds, + ) class GeoJsonFeature(Fit): """GeoJsonFeature schema wrapper - Mapping(required=[geometry, properties, type]) + :class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]] A feature object which contains a geometry and associated properties. https://tools.ietf.org/html/rfc7946#section-3.2 Parameters ---------- - geometry : :class:`Geometry` + geometry : :class:`GeometryCollection`, Dict[required=[geometries, type]], :class:`Geometry`, :class:`LineString`, Dict[required=[coordinates, type]], :class:`MultiLineString`, Dict[required=[coordinates, type]], :class:`MultiPoint`, Dict[required=[coordinates, type]], :class:`MultiPolygon`, Dict[required=[coordinates, type]], :class:`Point`, Dict[required=[coordinates, type]], :class:`Polygon`, Dict[required=[coordinates, type]] The feature's geometry - properties : :class:`GeoJsonProperties` + properties : :class:`GeoJsonProperties`, Dict, None Properties associated with this feature. - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 - id : anyOf(string, float) + id : float, str A value that uniquely identifies this feature in a https://tools.ietf.org/html/rfc7946#section-3.2. """ - _schema = {'$ref': '#/definitions/GeoJsonFeature'} - def __init__(self, geometry=Undefined, properties=Undefined, type=Undefined, bbox=Undefined, - id=Undefined, **kwds): - super(GeoJsonFeature, self).__init__(geometry=geometry, properties=properties, type=type, - bbox=bbox, id=id, **kwds) + _schema = {"$ref": "#/definitions/GeoJsonFeature"} + + def __init__( + self, + geometry: Union[ + Union[ + "Geometry", + Union["GeometryCollection", dict], + Union["LineString", dict], + Union["MultiLineString", dict], + Union["MultiPoint", dict], + Union["MultiPolygon", dict], + Union["Point", dict], + Union["Polygon", dict], + ], + UndefinedType, + ] = Undefined, + properties: Union[ + Union["GeoJsonProperties", None, dict], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + id: Union[Union[float, str], UndefinedType] = Undefined, + **kwds, + ): + super(GeoJsonFeature, self).__init__( + geometry=geometry, + properties=properties, + type=type, + bbox=bbox, + id=id, + **kwds, + ) class GeoJsonFeatureCollection(Fit): """GeoJsonFeatureCollection schema wrapper - Mapping(required=[features, type]) + :class:`GeoJsonFeatureCollection`, Dict[required=[features, type]] A collection of feature objects. https://tools.ietf.org/html/rfc7946#section-3.3 Parameters ---------- - features : List(:class:`FeatureGeometryGeoJsonProperties`) + features : Sequence[:class:`FeatureGeometryGeoJsonProperties`, Dict[required=[geometry, properties, type]]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/GeoJsonFeatureCollection'} - def __init__(self, features=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(GeoJsonFeatureCollection, self).__init__(features=features, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/GeoJsonFeatureCollection"} + + def __init__( + self, + features: Union[ + Sequence[Union["FeatureGeometryGeoJsonProperties", dict]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(GeoJsonFeatureCollection, self).__init__( + features=features, type=type, bbox=bbox, **kwds + ) class GeoJsonProperties(VegaLiteSchema): """GeoJsonProperties schema wrapper - anyOf(Mapping(required=[]), None) + :class:`GeoJsonProperties`, Dict, None """ - _schema = {'$ref': '#/definitions/GeoJsonProperties'} + + _schema = {"$ref": "#/definitions/GeoJsonProperties"} def __init__(self, *args, **kwds): super(GeoJsonProperties, self).__init__(*args, **kwds) @@ -6401,11 +15910,15 @@ def __init__(self, *args, **kwds): class Geometry(VegaLiteSchema): """Geometry schema wrapper - anyOf(:class:`Point`, :class:`MultiPoint`, :class:`LineString`, :class:`MultiLineString`, - :class:`Polygon`, :class:`MultiPolygon`, :class:`GeometryCollection`) + :class:`GeometryCollection`, Dict[required=[geometries, type]], :class:`Geometry`, + :class:`LineString`, Dict[required=[coordinates, type]], :class:`MultiLineString`, + Dict[required=[coordinates, type]], :class:`MultiPoint`, Dict[required=[coordinates, type]], + :class:`MultiPolygon`, Dict[required=[coordinates, type]], :class:`Point`, + Dict[required=[coordinates, type]], :class:`Polygon`, Dict[required=[coordinates, type]] Union of geometry objects. https://tools.ietf.org/html/rfc7946#section-3 """ - _schema = {'$ref': '#/definitions/Geometry'} + + _schema = {"$ref": "#/definitions/Geometry"} def __init__(self, *args, **kwds): super(Geometry, self).__init__(*args, **kwds) @@ -6414,32 +15927,57 @@ def __init__(self, *args, **kwds): class GeometryCollection(Geometry): """GeometryCollection schema wrapper - Mapping(required=[geometries, type]) + :class:`GeometryCollection`, Dict[required=[geometries, type]] Geometry Collection https://tools.ietf.org/html/rfc7946#section-3.1.8 Parameters ---------- - geometries : List(:class:`Geometry`) + geometries : Sequence[:class:`GeometryCollection`, Dict[required=[geometries, type]], :class:`Geometry`, :class:`LineString`, Dict[required=[coordinates, type]], :class:`MultiLineString`, Dict[required=[coordinates, type]], :class:`MultiPoint`, Dict[required=[coordinates, type]], :class:`MultiPolygon`, Dict[required=[coordinates, type]], :class:`Point`, Dict[required=[coordinates, type]], :class:`Polygon`, Dict[required=[coordinates, type]]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/GeometryCollection'} - def __init__(self, geometries=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(GeometryCollection, self).__init__(geometries=geometries, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/GeometryCollection"} + + def __init__( + self, + geometries: Union[ + Sequence[ + Union[ + "Geometry", + Union["GeometryCollection", dict], + Union["LineString", dict], + Union["MultiLineString", dict], + Union["MultiPoint", dict], + Union["MultiPolygon", dict], + Union["Point", dict], + Union["Polygon", dict], + ] + ], + UndefinedType, + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(GeometryCollection, self).__init__( + geometries=geometries, type=type, bbox=bbox, **kwds + ) class Gradient(VegaLiteSchema): """Gradient schema wrapper - anyOf(:class:`LinearGradient`, :class:`RadialGradient`) + :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], + :class:`RadialGradient`, Dict[required=[gradient, stops]] """ - _schema = {'$ref': '#/definitions/Gradient'} + + _schema = {"$ref": "#/definitions/Gradient"} def __init__(self, *args, **kwds): super(Gradient, self).__init__(*args, **kwds) @@ -6448,89 +15986,302 @@ def __init__(self, *args, **kwds): class GradientStop(VegaLiteSchema): """GradientStop schema wrapper - Mapping(required=[offset, color]) + :class:`GradientStop`, Dict[required=[offset, color]] Parameters ---------- - color : :class:`Color` + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str The color value at this point in the gradient. offset : float The offset fraction for the color stop, indicating its position within the gradient. """ - _schema = {'$ref': '#/definitions/GradientStop'} - def __init__(self, color=Undefined, offset=Undefined, **kwds): + _schema = {"$ref": "#/definitions/GradientStop"} + + def __init__( + self, + color: Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + UndefinedType, + ] = Undefined, + offset: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(GradientStop, self).__init__(color=color, offset=offset, **kwds) class GraticuleGenerator(Generator): """GraticuleGenerator schema wrapper - Mapping(required=[graticule]) + :class:`GraticuleGenerator`, Dict[required=[graticule]] Parameters ---------- - graticule : anyOf(boolean, :class:`GraticuleParams`) + graticule : :class:`GraticuleParams`, Dict, bool Generate graticule GeoJSON data for geographic reference lines. - name : string + name : str Provide a placeholder name and bind data at runtime. """ - _schema = {'$ref': '#/definitions/GraticuleGenerator'} - def __init__(self, graticule=Undefined, name=Undefined, **kwds): + _schema = {"$ref": "#/definitions/GraticuleGenerator"} + + def __init__( + self, + graticule: Union[ + Union[Union["GraticuleParams", dict], bool], UndefinedType + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): super(GraticuleGenerator, self).__init__(graticule=graticule, name=name, **kwds) class GraticuleParams(VegaLiteSchema): """GraticuleParams schema wrapper - Mapping(required=[]) + :class:`GraticuleParams`, Dict Parameters ---------- - extent : :class:`Vector2Vector2number` + extent : :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] Sets both the major and minor extents to the same values. - extentMajor : :class:`Vector2Vector2number` + extentMajor : :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] The major extent of the graticule as a two-element array of coordinates. - extentMinor : :class:`Vector2Vector2number` + extentMinor : :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] The minor extent of the graticule as a two-element array of coordinates. precision : float The precision of the graticule in degrees. **Default value:** ``2.5`` - step : :class:`Vector2number` + step : :class:`Vector2number`, Sequence[float] Sets both the major and minor step angles to the same values. - stepMajor : :class:`Vector2number` + stepMajor : :class:`Vector2number`, Sequence[float] The major step angles of the graticule. **Default value:** ``[90, 360]`` - stepMinor : :class:`Vector2number` + stepMinor : :class:`Vector2number`, Sequence[float] The minor step angles of the graticule. **Default value:** ``[10, 10]`` """ - _schema = {'$ref': '#/definitions/GraticuleParams'} - def __init__(self, extent=Undefined, extentMajor=Undefined, extentMinor=Undefined, - precision=Undefined, step=Undefined, stepMajor=Undefined, stepMinor=Undefined, **kwds): - super(GraticuleParams, self).__init__(extent=extent, extentMajor=extentMajor, - extentMinor=extentMinor, precision=precision, step=step, - stepMajor=stepMajor, stepMinor=stepMinor, **kwds) + _schema = {"$ref": "#/definitions/GraticuleParams"} + + def __init__( + self, + extent: Union[ + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + UndefinedType, + ] = Undefined, + extentMajor: Union[ + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + UndefinedType, + ] = Undefined, + extentMinor: Union[ + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + UndefinedType, + ] = Undefined, + precision: Union[float, UndefinedType] = Undefined, + step: Union[Union["Vector2number", Sequence[float]], UndefinedType] = Undefined, + stepMajor: Union[ + Union["Vector2number", Sequence[float]], UndefinedType + ] = Undefined, + stepMinor: Union[ + Union["Vector2number", Sequence[float]], UndefinedType + ] = Undefined, + **kwds, + ): + super(GraticuleParams, self).__init__( + extent=extent, + extentMajor=extentMajor, + extentMinor=extentMinor, + precision=precision, + step=step, + stepMajor=stepMajor, + stepMinor=stepMinor, + **kwds, + ) class Header(VegaLiteSchema): """Header schema wrapper - Mapping(required=[]) + :class:`Header`, Dict Headers of row / column channels for faceted plots. Parameters ---------- - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -6553,7 +16304,7 @@ class Header(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -6564,10 +16315,10 @@ class Header(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - labelAlign : anyOf(:class:`Align`, :class:`ExprRef`) + labelAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment of header labels. One of ``"left"``, ``"center"``, or ``"right"``. - labelAnchor : :class:`TitleAnchor` + labelAnchor : :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the labels. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with a label orientation of top these anchor positions map to a left-, center-, or right-aligned label. @@ -6575,50 +16326,50 @@ class Header(VegaLiteSchema): The rotation angle of the header labels. **Default value:** ``0`` for column header, ``-90`` for row header. - labelBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + labelBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] The vertical text baseline for the header labels. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the ``titleLineHeight`` rather than ``titleFontSize`` alone. - labelColor : anyOf(:class:`Color`, :class:`ExprRef`) + labelColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] The color of the header label, can be in hex color code or regular color name. - labelExpr : string + labelExpr : str `Vega expression `__ for customizing labels. **Note:** The label text and value can be assessed via the ``label`` and ``value`` properties of the header's backing ``datum`` object. - labelFont : anyOf(string, :class:`ExprRef`) + labelFont : :class:`ExprRef`, Dict[required=[expr]], str The font of the header label. - labelFontSize : anyOf(float, :class:`ExprRef`) + labelFontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size of the header label, in pixels. - labelFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + labelFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of the header label. - labelFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + labelFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight of the header label. - labelLimit : anyOf(float, :class:`ExprRef`) + labelLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the header label in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0``, indicating no limit - labelLineHeight : anyOf(float, :class:`ExprRef`) + labelLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line header labels or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - labelOrient : :class:`Orient` + labelOrient : :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] The orientation of the header label. One of ``"top"``, ``"bottom"``, ``"left"`` or ``"right"``. - labelPadding : anyOf(float, :class:`ExprRef`) + labelPadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixel, between facet header's label and the plot. **Default value:** ``10`` - labels : boolean + labels : bool A boolean flag indicating if labels should be included as part of the header. **Default value:** ``true``. - orient : :class:`Orient` + orient : :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] Shortcut for setting both labelOrient and titleOrient. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -6638,9 +16389,9 @@ class Header(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - titleAlign : anyOf(:class:`Align`, :class:`ExprRef`) + titleAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment (to the anchor) of header titles. - titleAnchor : :class:`TitleAnchor` + titleAnchor : :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the title. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title. @@ -6648,7 +16399,7 @@ class Header(VegaLiteSchema): The rotation angle of the header title. **Default value:** ``0``. - titleBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + titleBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] The vertical text baseline for the header title. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and @@ -6656,73 +16407,561 @@ class Header(VegaLiteSchema): ``titleFontSize`` alone. **Default value:** ``"middle"`` - titleColor : anyOf(:class:`Color`, :class:`ExprRef`) + titleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] Color of the header title, can be in hex color code or regular color name. - titleFont : anyOf(string, :class:`ExprRef`) + titleFont : :class:`ExprRef`, Dict[required=[expr]], str Font of the header title. (e.g., ``"Helvetica Neue"`` ). - titleFontSize : anyOf(float, :class:`ExprRef`) + titleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size of the header title. - titleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + titleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of the header title. - titleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + titleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight of the header title. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - titleLimit : anyOf(float, :class:`ExprRef`) + titleLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the header title in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0``, indicating no limit - titleLineHeight : anyOf(float, :class:`ExprRef`) + titleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line header title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - titleOrient : :class:`Orient` + titleOrient : :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] The orientation of the header title. One of ``"top"``, ``"bottom"``, ``"left"`` or ``"right"``. - titlePadding : anyOf(float, :class:`ExprRef`) + titlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixel, between facet header's title and the label. **Default value:** ``10`` """ - _schema = {'$ref': '#/definitions/Header'} - - def __init__(self, format=Undefined, formatType=Undefined, labelAlign=Undefined, - labelAnchor=Undefined, labelAngle=Undefined, labelBaseline=Undefined, - labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, - labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, - labelLimit=Undefined, labelLineHeight=Undefined, labelOrient=Undefined, - labelPadding=Undefined, labels=Undefined, orient=Undefined, title=Undefined, - titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, - titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, - titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, - titleLimit=Undefined, titleLineHeight=Undefined, titleOrient=Undefined, - titlePadding=Undefined, **kwds): - super(Header, self).__init__(format=format, formatType=formatType, labelAlign=labelAlign, - labelAnchor=labelAnchor, labelAngle=labelAngle, - labelBaseline=labelBaseline, labelColor=labelColor, - labelExpr=labelExpr, labelFont=labelFont, - labelFontSize=labelFontSize, labelFontStyle=labelFontStyle, - labelFontWeight=labelFontWeight, labelLimit=labelLimit, - labelLineHeight=labelLineHeight, labelOrient=labelOrient, - labelPadding=labelPadding, labels=labels, orient=orient, - title=title, titleAlign=titleAlign, titleAnchor=titleAnchor, - titleAngle=titleAngle, titleBaseline=titleBaseline, - titleColor=titleColor, titleFont=titleFont, - titleFontSize=titleFontSize, titleFontStyle=titleFontStyle, - titleFontWeight=titleFontWeight, titleLimit=titleLimit, - titleLineHeight=titleLineHeight, titleOrient=titleOrient, - titlePadding=titlePadding, **kwds) + + _schema = {"$ref": "#/definitions/Header"} + + def __init__( + self, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + labelAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelAnchor: Union[ + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], UndefinedType + ] = Undefined, + labelAngle: Union[float, UndefinedType] = Undefined, + labelBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOrient: Union[ + Union["Orient", Literal["left", "right", "top", "bottom"]], UndefinedType + ] = Undefined, + labelPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + orient: Union[ + Union["Orient", Literal["left", "right", "top", "bottom"]], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], UndefinedType + ] = Undefined, + titleAngle: Union[float, UndefinedType] = Undefined, + titleBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + titleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union["Orient", Literal["left", "right", "top", "bottom"]], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(Header, self).__init__( + format=format, + formatType=formatType, + labelAlign=labelAlign, + labelAnchor=labelAnchor, + labelAngle=labelAngle, + labelBaseline=labelBaseline, + labelColor=labelColor, + labelExpr=labelExpr, + labelFont=labelFont, + labelFontSize=labelFontSize, + labelFontStyle=labelFontStyle, + labelFontWeight=labelFontWeight, + labelLimit=labelLimit, + labelLineHeight=labelLineHeight, + labelOrient=labelOrient, + labelPadding=labelPadding, + labels=labels, + orient=orient, + title=title, + titleAlign=titleAlign, + titleAnchor=titleAnchor, + titleAngle=titleAngle, + titleBaseline=titleBaseline, + titleColor=titleColor, + titleFont=titleFont, + titleFontSize=titleFontSize, + titleFontStyle=titleFontStyle, + titleFontWeight=titleFontWeight, + titleLimit=titleLimit, + titleLineHeight=titleLineHeight, + titleOrient=titleOrient, + titlePadding=titlePadding, + **kwds, + ) class HeaderConfig(VegaLiteSchema): """HeaderConfig schema wrapper - Mapping(required=[]) + :class:`HeaderConfig`, Dict Parameters ---------- - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -6745,7 +16984,7 @@ class HeaderConfig(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -6756,10 +16995,10 @@ class HeaderConfig(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - labelAlign : anyOf(:class:`Align`, :class:`ExprRef`) + labelAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment of header labels. One of ``"left"``, ``"center"``, or ``"right"``. - labelAnchor : :class:`TitleAnchor` + labelAnchor : :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the labels. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with a label orientation of top these anchor positions map to a left-, center-, or right-aligned label. @@ -6767,54 +17006,54 @@ class HeaderConfig(VegaLiteSchema): The rotation angle of the header labels. **Default value:** ``0`` for column header, ``-90`` for row header. - labelBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + labelBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] The vertical text baseline for the header labels. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the ``titleLineHeight`` rather than ``titleFontSize`` alone. - labelColor : anyOf(:class:`Color`, :class:`ExprRef`) + labelColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] The color of the header label, can be in hex color code or regular color name. - labelExpr : string + labelExpr : str `Vega expression `__ for customizing labels. **Note:** The label text and value can be assessed via the ``label`` and ``value`` properties of the header's backing ``datum`` object. - labelFont : anyOf(string, :class:`ExprRef`) + labelFont : :class:`ExprRef`, Dict[required=[expr]], str The font of the header label. - labelFontSize : anyOf(float, :class:`ExprRef`) + labelFontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size of the header label, in pixels. - labelFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + labelFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of the header label. - labelFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + labelFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight of the header label. - labelLimit : anyOf(float, :class:`ExprRef`) + labelLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the header label in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0``, indicating no limit - labelLineHeight : anyOf(float, :class:`ExprRef`) + labelLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line header labels or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - labelOrient : :class:`Orient` + labelOrient : :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] The orientation of the header label. One of ``"top"``, ``"bottom"``, ``"left"`` or ``"right"``. - labelPadding : anyOf(float, :class:`ExprRef`) + labelPadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixel, between facet header's label and the plot. **Default value:** ``10`` - labels : boolean + labels : bool A boolean flag indicating if labels should be included as part of the header. **Default value:** ``true``. - orient : :class:`Orient` + orient : :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] Shortcut for setting both labelOrient and titleOrient. title : None Set to null to disable title for the axis, legend, or header. - titleAlign : anyOf(:class:`Align`, :class:`ExprRef`) + titleAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment (to the anchor) of header titles. - titleAnchor : :class:`TitleAnchor` + titleAnchor : :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the title. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title. @@ -6822,7 +17061,7 @@ class HeaderConfig(VegaLiteSchema): The rotation angle of the header title. **Default value:** ``0``. - titleBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + titleBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] The vertical text baseline for the header title. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and @@ -6830,70 +17069,557 @@ class HeaderConfig(VegaLiteSchema): ``titleFontSize`` alone. **Default value:** ``"middle"`` - titleColor : anyOf(:class:`Color`, :class:`ExprRef`) + titleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] Color of the header title, can be in hex color code or regular color name. - titleFont : anyOf(string, :class:`ExprRef`) + titleFont : :class:`ExprRef`, Dict[required=[expr]], str Font of the header title. (e.g., ``"Helvetica Neue"`` ). - titleFontSize : anyOf(float, :class:`ExprRef`) + titleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size of the header title. - titleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + titleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of the header title. - titleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + titleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight of the header title. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - titleLimit : anyOf(float, :class:`ExprRef`) + titleLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the header title in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0``, indicating no limit - titleLineHeight : anyOf(float, :class:`ExprRef`) + titleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line header title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - titleOrient : :class:`Orient` + titleOrient : :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] The orientation of the header title. One of ``"top"``, ``"bottom"``, ``"left"`` or ``"right"``. - titlePadding : anyOf(float, :class:`ExprRef`) + titlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixel, between facet header's title and the label. **Default value:** ``10`` """ - _schema = {'$ref': '#/definitions/HeaderConfig'} - - def __init__(self, format=Undefined, formatType=Undefined, labelAlign=Undefined, - labelAnchor=Undefined, labelAngle=Undefined, labelBaseline=Undefined, - labelColor=Undefined, labelExpr=Undefined, labelFont=Undefined, - labelFontSize=Undefined, labelFontStyle=Undefined, labelFontWeight=Undefined, - labelLimit=Undefined, labelLineHeight=Undefined, labelOrient=Undefined, - labelPadding=Undefined, labels=Undefined, orient=Undefined, title=Undefined, - titleAlign=Undefined, titleAnchor=Undefined, titleAngle=Undefined, - titleBaseline=Undefined, titleColor=Undefined, titleFont=Undefined, - titleFontSize=Undefined, titleFontStyle=Undefined, titleFontWeight=Undefined, - titleLimit=Undefined, titleLineHeight=Undefined, titleOrient=Undefined, - titlePadding=Undefined, **kwds): - super(HeaderConfig, self).__init__(format=format, formatType=formatType, labelAlign=labelAlign, - labelAnchor=labelAnchor, labelAngle=labelAngle, - labelBaseline=labelBaseline, labelColor=labelColor, - labelExpr=labelExpr, labelFont=labelFont, - labelFontSize=labelFontSize, labelFontStyle=labelFontStyle, - labelFontWeight=labelFontWeight, labelLimit=labelLimit, - labelLineHeight=labelLineHeight, labelOrient=labelOrient, - labelPadding=labelPadding, labels=labels, orient=orient, - title=title, titleAlign=titleAlign, titleAnchor=titleAnchor, - titleAngle=titleAngle, titleBaseline=titleBaseline, - titleColor=titleColor, titleFont=titleFont, - titleFontSize=titleFontSize, titleFontStyle=titleFontStyle, - titleFontWeight=titleFontWeight, titleLimit=titleLimit, - titleLineHeight=titleLineHeight, titleOrient=titleOrient, - titlePadding=titlePadding, **kwds) + + _schema = {"$ref": "#/definitions/HeaderConfig"} + + def __init__( + self, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + labelAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelAnchor: Union[ + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], UndefinedType + ] = Undefined, + labelAngle: Union[float, UndefinedType] = Undefined, + labelBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOrient: Union[ + Union["Orient", Literal["left", "right", "top", "bottom"]], UndefinedType + ] = Undefined, + labelPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labels: Union[bool, UndefinedType] = Undefined, + orient: Union[ + Union["Orient", Literal["left", "right", "top", "bottom"]], UndefinedType + ] = Undefined, + title: Union[None, UndefinedType] = Undefined, + titleAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], UndefinedType + ] = Undefined, + titleAngle: Union[float, UndefinedType] = Undefined, + titleBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + titleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union["Orient", Literal["left", "right", "top", "bottom"]], UndefinedType + ] = Undefined, + titlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(HeaderConfig, self).__init__( + format=format, + formatType=formatType, + labelAlign=labelAlign, + labelAnchor=labelAnchor, + labelAngle=labelAngle, + labelBaseline=labelBaseline, + labelColor=labelColor, + labelExpr=labelExpr, + labelFont=labelFont, + labelFontSize=labelFontSize, + labelFontStyle=labelFontStyle, + labelFontWeight=labelFontWeight, + labelLimit=labelLimit, + labelLineHeight=labelLineHeight, + labelOrient=labelOrient, + labelPadding=labelPadding, + labels=labels, + orient=orient, + title=title, + titleAlign=titleAlign, + titleAnchor=titleAnchor, + titleAngle=titleAngle, + titleBaseline=titleBaseline, + titleColor=titleColor, + titleFont=titleFont, + titleFontSize=titleFontSize, + titleFontStyle=titleFontStyle, + titleFontWeight=titleFontWeight, + titleLimit=titleLimit, + titleLineHeight=titleLineHeight, + titleOrient=titleOrient, + titlePadding=titlePadding, + **kwds, + ) class HexColor(Color): """HexColor schema wrapper - string + :class:`HexColor`, str """ - _schema = {'$ref': '#/definitions/HexColor'} + + _schema = {"$ref": "#/definitions/HexColor"} def __init__(self, *args): super(HexColor, self).__init__(*args) @@ -6902,9 +17628,10 @@ def __init__(self, *args): class ImputeMethod(VegaLiteSchema): """ImputeMethod schema wrapper - enum('value', 'median', 'max', 'min', 'mean') + :class:`ImputeMethod`, Literal['value', 'median', 'max', 'min', 'mean'] """ - _schema = {'$ref': '#/definitions/ImputeMethod'} + + _schema = {"$ref": "#/definitions/ImputeMethod"} def __init__(self, *args): super(ImputeMethod, self).__init__(*args) @@ -6913,12 +17640,12 @@ def __init__(self, *args): class ImputeParams(VegaLiteSchema): """ImputeParams schema wrapper - Mapping(required=[]) + :class:`ImputeParams`, Dict Parameters ---------- - frame : List(anyOf(None, float)) + frame : Sequence[None, float] A frame specification as a two-element array used to control the window over which the specified method is applied. The array entries should either be a number indicating the offset from the current data object, or null to indicate unbounded @@ -6928,7 +17655,7 @@ class ImputeParams(VegaLiteSchema): **Default value:** : ``[null, null]`` indicating that the window includes all objects. - keyvals : anyOf(List(Any), :class:`ImputeSequence`) + keyvals : :class:`ImputeSequence`, Dict[required=[stop]], Sequence[Any] Defines the key values that should be considered for imputation. An array of key values or an object defining a `number sequence `__. @@ -6939,7 +17666,7 @@ class ImputeParams(VegaLiteSchema): the y-field is imputed, or vice versa. If there is no impute grouping, this property *must* be specified. - method : :class:`ImputeMethod` + method : :class:`ImputeMethod`, Literal['value', 'median', 'max', 'min', 'mean'] The imputation method to use for the field value of imputed data objects. One of ``"value"``, ``"mean"``, ``"median"``, ``"max"`` or ``"min"``. @@ -6947,17 +17674,31 @@ class ImputeParams(VegaLiteSchema): value : Any The field value to use when the imputation ``method`` is ``"value"``. """ - _schema = {'$ref': '#/definitions/ImputeParams'} - def __init__(self, frame=Undefined, keyvals=Undefined, method=Undefined, value=Undefined, **kwds): - super(ImputeParams, self).__init__(frame=frame, keyvals=keyvals, method=method, value=value, - **kwds) + _schema = {"$ref": "#/definitions/ImputeParams"} + + def __init__( + self, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + keyvals: Union[ + Union[Sequence[Any], Union["ImputeSequence", dict]], UndefinedType + ] = Undefined, + method: Union[ + Union["ImputeMethod", Literal["value", "median", "max", "min", "mean"]], + UndefinedType, + ] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ): + super(ImputeParams, self).__init__( + frame=frame, keyvals=keyvals, method=method, value=value, **kwds + ) class ImputeSequence(VegaLiteSchema): """ImputeSequence schema wrapper - Mapping(required=[stop]) + :class:`ImputeSequence`, Dict[required=[stop]] Parameters ---------- @@ -6970,42 +17711,79 @@ class ImputeSequence(VegaLiteSchema): The step value between sequence entries. **Default value:** ``1`` or ``-1`` if ``stop < start`` """ - _schema = {'$ref': '#/definitions/ImputeSequence'} - def __init__(self, stop=Undefined, start=Undefined, step=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ImputeSequence"} + + def __init__( + self, + stop: Union[float, UndefinedType] = Undefined, + start: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(ImputeSequence, self).__init__(stop=stop, start=start, step=step, **kwds) class InlineData(DataSource): """InlineData schema wrapper - Mapping(required=[values]) + :class:`InlineData`, Dict[required=[values]] Parameters ---------- - values : :class:`InlineDataset` + values : :class:`InlineDataset`, Dict, Sequence[Dict], Sequence[bool], Sequence[float], Sequence[str], str The full data set, included inline. This can be an array of objects or primitive values, an object, or a string. Arrays of primitive values are ingested as objects with a ``data`` property. Strings are parsed according to the specified format type. - format : :class:`DataFormat` + format : :class:`CsvDataFormat`, Dict, :class:`DataFormat`, :class:`DsvDataFormat`, Dict[required=[delimiter]], :class:`JsonDataFormat`, Dict, :class:`TopoDataFormat`, Dict An object that specifies the format for parsing the data. - name : string + name : str Provide a placeholder name and bind data at runtime. """ - _schema = {'$ref': '#/definitions/InlineData'} - def __init__(self, values=Undefined, format=Undefined, name=Undefined, **kwds): - super(InlineData, self).__init__(values=values, format=format, name=name, **kwds) + _schema = {"$ref": "#/definitions/InlineData"} + + def __init__( + self, + values: Union[ + Union[ + "InlineDataset", + Sequence[bool], + Sequence[dict], + Sequence[float], + Sequence[str], + dict, + str, + ], + UndefinedType, + ] = Undefined, + format: Union[ + Union[ + "DataFormat", + Union["CsvDataFormat", dict], + Union["DsvDataFormat", dict], + Union["JsonDataFormat", dict], + Union["TopoDataFormat", dict], + ], + UndefinedType, + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(InlineData, self).__init__( + values=values, format=format, name=name, **kwds + ) class InlineDataset(VegaLiteSchema): """InlineDataset schema wrapper - anyOf(List(float), List(string), List(boolean), List(Mapping(required=[])), string, - Mapping(required=[])) + :class:`InlineDataset`, Dict, Sequence[Dict], Sequence[bool], Sequence[float], + Sequence[str], str """ - _schema = {'$ref': '#/definitions/InlineDataset'} + + _schema = {"$ref": "#/definitions/InlineDataset"} def __init__(self, *args, **kwds): super(InlineDataset, self).__init__(*args, **kwds) @@ -7014,11 +17792,12 @@ def __init__(self, *args, **kwds): class Interpolate(VegaLiteSchema): """Interpolate schema wrapper - enum('basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', - 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', - 'step-before', 'step-after') + :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', + 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', + 'natural', 'step', 'step-before', 'step-after'] """ - _schema = {'$ref': '#/definitions/Interpolate'} + + _schema = {"$ref": "#/definitions/Interpolate"} def __init__(self, *args): super(Interpolate, self).__init__(*args) @@ -7027,12 +17806,12 @@ def __init__(self, *args): class IntervalSelectionConfig(VegaLiteSchema): """IntervalSelectionConfig schema wrapper - Mapping(required=[type]) + :class:`IntervalSelectionConfig`, Dict[required=[type]] Parameters ---------- - type : string + type : str Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types: @@ -7040,7 +17819,7 @@ class IntervalSelectionConfig(VegaLiteSchema): * ``"point"`` -- to select multiple discrete data values; the first value is selected on ``click`` and additional values toggled on shift-click. * ``"interval"`` -- to select a continuous range of data values on ``drag``. - clear : anyOf(:class:`Stream`, string, boolean) + clear : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, bool, str Clears the selection, emptying it of all values. This property can be a `Event Stream `__ or ``false`` to disable clear. @@ -7050,27 +17829,27 @@ class IntervalSelectionConfig(VegaLiteSchema): **See also:** `clear examples `__ in the documentation. - encodings : List(:class:`SingleDefUnitChannel`) + encodings : Sequence[:class:`SingleDefUnitChannel`, Literal['x', 'y', 'xOffset', 'yOffset', 'x2', 'y2', 'longitude', 'latitude', 'longitude2', 'latitude2', 'theta', 'theta2', 'radius', 'radius2', 'color', 'fill', 'stroke', 'opacity', 'fillOpacity', 'strokeOpacity', 'strokeWidth', 'strokeDash', 'size', 'angle', 'shape', 'key', 'text', 'href', 'url', 'description']] An array of encoding channels. The corresponding data field values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - fields : List(:class:`FieldName`) + fields : Sequence[:class:`FieldName`, str] An array of field names whose values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - mark : :class:`BrushConfig` + mark : :class:`BrushConfig`, Dict An interval selection also adds a rectangle mark to depict the extents of the interval. The ``mark`` property can be used to customize the appearance of the mark. **See also:** `mark examples `__ in the documentation. - on : anyOf(:class:`Stream`, string) + on : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, str A `Vega event stream `__ (object or selector) that triggers the selection. For interval selections, the event stream must specify a `start and end @@ -7078,7 +17857,7 @@ class IntervalSelectionConfig(VegaLiteSchema): **See also:** `on examples `__ in the documentation. - resolve : :class:`SelectionResolution` + resolve : :class:`SelectionResolution`, Literal['global', 'union', 'intersect'] With layered and multi-view displays, a strategy that determines how selections' data queries are resolved when applied in a filter transform, conditional encoding rule, or scale domain. @@ -7098,7 +17877,7 @@ class IntervalSelectionConfig(VegaLiteSchema): **See also:** `resolve examples `__ in the documentation. - translate : anyOf(string, boolean) + translate : bool, str When truthy, allows a user to interactively move an interval selection back-and-forth. Can be ``true``, ``false`` (to disable panning), or a `Vega event stream definition `__ which must @@ -7112,7 +17891,7 @@ class IntervalSelectionConfig(VegaLiteSchema): **See also:** `translate examples `__ in the documentation. - zoom : anyOf(string, boolean) + zoom : bool, str When truthy, allows a user to interactively resize an interval selection. Can be ``true``, ``false`` (to disable zooming), or a `Vega event stream definition `__. Currently, only ``wheel`` @@ -7126,25 +17905,110 @@ class IntervalSelectionConfig(VegaLiteSchema): **See also:** `zoom examples `__ in the documentation. """ - _schema = {'$ref': '#/definitions/IntervalSelectionConfig'} - def __init__(self, type=Undefined, clear=Undefined, encodings=Undefined, fields=Undefined, - mark=Undefined, on=Undefined, resolve=Undefined, translate=Undefined, zoom=Undefined, - **kwds): - super(IntervalSelectionConfig, self).__init__(type=type, clear=clear, encodings=encodings, - fields=fields, mark=mark, on=on, resolve=resolve, - translate=translate, zoom=zoom, **kwds) + _schema = {"$ref": "#/definitions/IntervalSelectionConfig"} + + def __init__( + self, + type: Union[str, UndefinedType] = Undefined, + clear: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + bool, + str, + ], + UndefinedType, + ] = Undefined, + encodings: Union[ + Sequence[ + Union[ + "SingleDefUnitChannel", + Literal[ + "x", + "y", + "xOffset", + "yOffset", + "x2", + "y2", + "longitude", + "latitude", + "longitude2", + "latitude2", + "theta", + "theta2", + "radius", + "radius2", + "color", + "fill", + "stroke", + "opacity", + "fillOpacity", + "strokeOpacity", + "strokeWidth", + "strokeDash", + "size", + "angle", + "shape", + "key", + "text", + "href", + "url", + "description", + ], + ] + ], + UndefinedType, + ] = Undefined, + fields: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + mark: Union[Union["BrushConfig", dict], UndefinedType] = Undefined, + on: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + resolve: Union[ + Union["SelectionResolution", Literal["global", "union", "intersect"]], + UndefinedType, + ] = Undefined, + translate: Union[Union[bool, str], UndefinedType] = Undefined, + zoom: Union[Union[bool, str], UndefinedType] = Undefined, + **kwds, + ): + super(IntervalSelectionConfig, self).__init__( + type=type, + clear=clear, + encodings=encodings, + fields=fields, + mark=mark, + on=on, + resolve=resolve, + translate=translate, + zoom=zoom, + **kwds, + ) class IntervalSelectionConfigWithoutType(VegaLiteSchema): """IntervalSelectionConfigWithoutType schema wrapper - Mapping(required=[]) + :class:`IntervalSelectionConfigWithoutType`, Dict Parameters ---------- - clear : anyOf(:class:`Stream`, string, boolean) + clear : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, bool, str Clears the selection, emptying it of all values. This property can be a `Event Stream `__ or ``false`` to disable clear. @@ -7154,27 +18018,27 @@ class IntervalSelectionConfigWithoutType(VegaLiteSchema): **See also:** `clear examples `__ in the documentation. - encodings : List(:class:`SingleDefUnitChannel`) + encodings : Sequence[:class:`SingleDefUnitChannel`, Literal['x', 'y', 'xOffset', 'yOffset', 'x2', 'y2', 'longitude', 'latitude', 'longitude2', 'latitude2', 'theta', 'theta2', 'radius', 'radius2', 'color', 'fill', 'stroke', 'opacity', 'fillOpacity', 'strokeOpacity', 'strokeWidth', 'strokeDash', 'size', 'angle', 'shape', 'key', 'text', 'href', 'url', 'description']] An array of encoding channels. The corresponding data field values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - fields : List(:class:`FieldName`) + fields : Sequence[:class:`FieldName`, str] An array of field names whose values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - mark : :class:`BrushConfig` + mark : :class:`BrushConfig`, Dict An interval selection also adds a rectangle mark to depict the extents of the interval. The ``mark`` property can be used to customize the appearance of the mark. **See also:** `mark examples `__ in the documentation. - on : anyOf(:class:`Stream`, string) + on : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, str A `Vega event stream `__ (object or selector) that triggers the selection. For interval selections, the event stream must specify a `start and end @@ -7182,7 +18046,7 @@ class IntervalSelectionConfigWithoutType(VegaLiteSchema): **See also:** `on examples `__ in the documentation. - resolve : :class:`SelectionResolution` + resolve : :class:`SelectionResolution`, Literal['global', 'union', 'intersect'] With layered and multi-view displays, a strategy that determines how selections' data queries are resolved when applied in a filter transform, conditional encoding rule, or scale domain. @@ -7202,7 +18066,7 @@ class IntervalSelectionConfigWithoutType(VegaLiteSchema): **See also:** `resolve examples `__ in the documentation. - translate : anyOf(string, boolean) + translate : bool, str When truthy, allows a user to interactively move an interval selection back-and-forth. Can be ``true``, ``false`` (to disable panning), or a `Vega event stream definition `__ which must @@ -7216,7 +18080,7 @@ class IntervalSelectionConfigWithoutType(VegaLiteSchema): **See also:** `translate examples `__ in the documentation. - zoom : anyOf(string, boolean) + zoom : bool, str When truthy, allows a user to interactively resize an interval selection. Can be ``true``, ``false`` (to disable zooming), or a `Vega event stream definition `__. Currently, only ``wheel`` @@ -7230,49 +18094,168 @@ class IntervalSelectionConfigWithoutType(VegaLiteSchema): **See also:** `zoom examples `__ in the documentation. """ - _schema = {'$ref': '#/definitions/IntervalSelectionConfigWithoutType'} - def __init__(self, clear=Undefined, encodings=Undefined, fields=Undefined, mark=Undefined, - on=Undefined, resolve=Undefined, translate=Undefined, zoom=Undefined, **kwds): - super(IntervalSelectionConfigWithoutType, self).__init__(clear=clear, encodings=encodings, - fields=fields, mark=mark, on=on, - resolve=resolve, translate=translate, - zoom=zoom, **kwds) + _schema = {"$ref": "#/definitions/IntervalSelectionConfigWithoutType"} + + def __init__( + self, + clear: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + bool, + str, + ], + UndefinedType, + ] = Undefined, + encodings: Union[ + Sequence[ + Union[ + "SingleDefUnitChannel", + Literal[ + "x", + "y", + "xOffset", + "yOffset", + "x2", + "y2", + "longitude", + "latitude", + "longitude2", + "latitude2", + "theta", + "theta2", + "radius", + "radius2", + "color", + "fill", + "stroke", + "opacity", + "fillOpacity", + "strokeOpacity", + "strokeWidth", + "strokeDash", + "size", + "angle", + "shape", + "key", + "text", + "href", + "url", + "description", + ], + ] + ], + UndefinedType, + ] = Undefined, + fields: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + mark: Union[Union["BrushConfig", dict], UndefinedType] = Undefined, + on: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + resolve: Union[ + Union["SelectionResolution", Literal["global", "union", "intersect"]], + UndefinedType, + ] = Undefined, + translate: Union[Union[bool, str], UndefinedType] = Undefined, + zoom: Union[Union[bool, str], UndefinedType] = Undefined, + **kwds, + ): + super(IntervalSelectionConfigWithoutType, self).__init__( + clear=clear, + encodings=encodings, + fields=fields, + mark=mark, + on=on, + resolve=resolve, + translate=translate, + zoom=zoom, + **kwds, + ) class JoinAggregateFieldDef(VegaLiteSchema): """JoinAggregateFieldDef schema wrapper - Mapping(required=[op, as]) + :class:`JoinAggregateFieldDef`, Dict[required=[op, as]] Parameters ---------- - op : :class:`AggregateOp` + op : :class:`AggregateOp`, Literal['argmax', 'argmin', 'average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] The aggregation operation to apply (e.g., ``"sum"``, ``"average"`` or ``"count"`` ). See the list of all supported operations `here `__. - field : :class:`FieldName` + field : :class:`FieldName`, str The data field for which to compute the aggregate function. This can be omitted for functions that do not operate over a field such as ``"count"``. - as : :class:`FieldName` + as : :class:`FieldName`, str The output name for the join aggregate operation. """ - _schema = {'$ref': '#/definitions/JoinAggregateFieldDef'} - def __init__(self, op=Undefined, field=Undefined, **kwds): + _schema = {"$ref": "#/definitions/JoinAggregateFieldDef"} + + def __init__( + self, + op: Union[ + Union[ + "AggregateOp", + Literal[ + "argmax", + "argmin", + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + UndefinedType, + ] = Undefined, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + **kwds, + ): super(JoinAggregateFieldDef, self).__init__(op=op, field=field, **kwds) class JsonDataFormat(DataFormat): """JsonDataFormat schema wrapper - Mapping(required=[]) + :class:`JsonDataFormat`, Dict Parameters ---------- - parse : anyOf(:class:`Parse`, None) + parse : :class:`Parse`, Dict, None If set to ``null``, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field @@ -7288,29 +18271,39 @@ class JsonDataFormat(DataFormat): UTC date format parsing is supported similarly (e.g., ``{foo: "utc:'%m%d%Y'"}`` ). See more about `UTC time `__ - property : string + property : str The JSON property containing the desired data. This parameter can be used when the loaded JSON file may have surrounding structure or meta-data. For example ``"property": "values.features"`` is equivalent to retrieving ``json.values.features`` from the loaded JSON object. - type : string + type : str Type of input data: ``"json"``, ``"csv"``, ``"tsv"``, ``"dsv"``. **Default value:** The default format type is determined by the extension of the file URL. If no extension is detected, ``"json"`` will be used by default. """ - _schema = {'$ref': '#/definitions/JsonDataFormat'} - def __init__(self, parse=Undefined, property=Undefined, type=Undefined, **kwds): - super(JsonDataFormat, self).__init__(parse=parse, property=property, type=type, **kwds) + _schema = {"$ref": "#/definitions/JsonDataFormat"} + + def __init__( + self, + parse: Union[Union[None, Union["Parse", dict]], UndefinedType] = Undefined, + property: Union[str, UndefinedType] = Undefined, + type: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(JsonDataFormat, self).__init__( + parse=parse, property=property, type=type, **kwds + ) class LabelOverlap(VegaLiteSchema): """LabelOverlap schema wrapper - anyOf(boolean, string, string) + :class:`LabelOverlap`, bool, str """ - _schema = {'$ref': '#/definitions/LabelOverlap'} + + _schema = {"$ref": "#/definitions/LabelOverlap"} def __init__(self, *args, **kwds): super(LabelOverlap, self).__init__(*args, **kwds) @@ -7319,9 +18312,11 @@ def __init__(self, *args, **kwds): class LatLongDef(VegaLiteSchema): """LatLongDef schema wrapper - anyOf(:class:`LatLongFieldDef`, :class:`DatumDef`) + :class:`DatumDef`, Dict, :class:`LatLongDef`, :class:`LatLongFieldDef`, + Dict[required=[shorthand]] """ - _schema = {'$ref': '#/definitions/LatLongDef'} + + _schema = {"$ref": "#/definitions/LatLongDef"} def __init__(self, *args, **kwds): super(LatLongDef, self).__init__(*args, **kwds) @@ -7330,12 +18325,14 @@ def __init__(self, *args, **kwds): class LatLongFieldDef(LatLongDef): """LatLongFieldDef schema wrapper - Mapping(required=[]) + :class:`LatLongFieldDef`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -7368,7 +18365,7 @@ class LatLongFieldDef(LatLongDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -7383,7 +18380,7 @@ class LatLongFieldDef(LatLongDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -7392,7 +18389,7 @@ class LatLongFieldDef(LatLongDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -7412,7 +18409,7 @@ class LatLongFieldDef(LatLongDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : string + type : str The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -7482,42 +18479,260 @@ class LatLongFieldDef(LatLongDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/LatLongFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(LatLongFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, timeUnit=timeUnit, title=title, type=type, - **kwds) + _schema = {"$ref": "#/definitions/LatLongFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(LatLongFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class LayerRepeatMapping(VegaLiteSchema): """LayerRepeatMapping schema wrapper - Mapping(required=[layer]) + :class:`LayerRepeatMapping`, Dict[required=[layer]] Parameters ---------- - layer : List(string) + layer : Sequence[str] An array of fields to be repeated as layers. - column : List(string) + column : Sequence[str] An array of fields to be repeated horizontally. - row : List(string) + row : Sequence[str] An array of fields to be repeated vertically. """ - _schema = {'$ref': '#/definitions/LayerRepeatMapping'} - def __init__(self, layer=Undefined, column=Undefined, row=Undefined, **kwds): - super(LayerRepeatMapping, self).__init__(layer=layer, column=column, row=row, **kwds) + _schema = {"$ref": "#/definitions/LayerRepeatMapping"} + + def __init__( + self, + layer: Union[Sequence[str], UndefinedType] = Undefined, + column: Union[Sequence[str], UndefinedType] = Undefined, + row: Union[Sequence[str], UndefinedType] = Undefined, + **kwds, + ): + super(LayerRepeatMapping, self).__init__( + layer=layer, column=column, row=row, **kwds + ) class LayoutAlign(VegaLiteSchema): """LayoutAlign schema wrapper - enum('all', 'each', 'none') + :class:`LayoutAlign`, Literal['all', 'each', 'none'] """ - _schema = {'$ref': '#/definitions/LayoutAlign'} + + _schema = {"$ref": "#/definitions/LayoutAlign"} def __init__(self, *args): super(LayoutAlign, self).__init__(*args) @@ -7526,38 +18741,38 @@ def __init__(self, *args): class Legend(VegaLiteSchema): """Legend schema wrapper - Mapping(required=[]) + :class:`Legend`, Dict Properties of a legend or boolean flag for determining whether to show it. Parameters ---------- - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the legend from the ARIA accessibility tree. **Default value:** ``true`` - clipHeight : anyOf(float, :class:`ExprRef`) + clipHeight : :class:`ExprRef`, Dict[required=[expr]], float The height in pixels to clip symbol legend entries and limit their size. - columnPadding : anyOf(float, :class:`ExprRef`) + columnPadding : :class:`ExprRef`, Dict[required=[expr]], float The horizontal padding in pixels between symbol legend entries. **Default value:** ``10``. - columns : anyOf(float, :class:`ExprRef`) + columns : :class:`ExprRef`, Dict[required=[expr]], float The number of columns in which to arrange symbol legend entries. A value of ``0`` or lower indicates a single row with one column per entry. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float Corner radius for the full legend. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of this legend for `ARIA accessibility `__ (SVG output only). If the ``aria`` property is true, for SVG output the `"aria-label" attribute `__ will be set to this description. If the description is unspecified it will be automatically generated. - direction : :class:`Orientation` + direction : :class:`Orientation`, Literal['horizontal', 'vertical'] The direction of the legend, one of ``"vertical"`` or ``"horizontal"``. **Default value:** @@ -7567,9 +18782,9 @@ class Legend(VegaLiteSchema): * For left-/right- ``orient`` ed legends, ``"vertical"`` * For top/bottom-left/right- ``orient`` ed legends, ``"horizontal"`` for gradient legends and ``"vertical"`` for symbol legends. - fillColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + fillColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Background fill color for the full legend. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -7592,7 +18807,7 @@ class Legend(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -7603,68 +18818,68 @@ class Legend(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - gradientLength : anyOf(float, :class:`ExprRef`) + gradientLength : :class:`ExprRef`, Dict[required=[expr]], float The length in pixels of the primary axis of a color gradient. This value corresponds to the height of a vertical gradient or the width of a horizontal gradient. **Default value:** ``200``. - gradientOpacity : anyOf(float, :class:`ExprRef`) + gradientOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the color gradient. - gradientStrokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + gradientStrokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the gradient stroke, can be in hex color code or regular color name. **Default value:** ``"lightGray"``. - gradientStrokeWidth : anyOf(float, :class:`ExprRef`) + gradientStrokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The width of the gradient stroke, in pixels. **Default value:** ``0``. - gradientThickness : anyOf(float, :class:`ExprRef`) + gradientThickness : :class:`ExprRef`, Dict[required=[expr]], float The thickness in pixels of the color gradient. This value corresponds to the width of a vertical gradient or the height of a horizontal gradient. **Default value:** ``16``. - gridAlign : anyOf(:class:`LayoutAlign`, :class:`ExprRef`) + gridAlign : :class:`ExprRef`, Dict[required=[expr]], :class:`LayoutAlign`, Literal['all', 'each', 'none'] The alignment to apply to symbol legends rows and columns. The supported string values are ``"all"``, ``"each"`` (the default), and ``none``. For more information, see the `grid layout documentation `__. **Default value:** ``"each"``. - labelAlign : anyOf(:class:`Align`, :class:`ExprRef`) + labelAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The alignment of the legend label, can be left, center, or right. - labelBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + labelBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] The position of the baseline of legend label, can be ``"top"``, ``"middle"``, ``"bottom"``, or ``"alphabetic"``. **Default value:** ``"middle"``. - labelColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + labelColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the legend label, can be in hex color code or regular color name. - labelExpr : string + labelExpr : str `Vega expression `__ for customizing labels. **Note:** The label text and value can be assessed via the ``label`` and ``value`` properties of the legend's backing ``datum`` object. - labelFont : anyOf(string, :class:`ExprRef`) + labelFont : :class:`ExprRef`, Dict[required=[expr]], str The font of the legend label. - labelFontSize : anyOf(float, :class:`ExprRef`) + labelFontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size of legend label. **Default value:** ``10``. - labelFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + labelFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of legend label. - labelFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + labelFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight of legend label. - labelLimit : anyOf(float, :class:`ExprRef`) + labelLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of legend tick labels. **Default value:** ``160``. - labelOffset : anyOf(float, :class:`ExprRef`) + labelOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset of the legend label. **Default value:** ``4``. - labelOpacity : anyOf(float, :class:`ExprRef`) + labelOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of labels. - labelOverlap : anyOf(:class:`LabelOverlap`, :class:`ExprRef`) + labelOverlap : :class:`ExprRef`, Dict[required=[expr]], :class:`LabelOverlap`, bool, str The strategy to use for resolving overlap of labels in gradient legends. If ``false``, no overlap reduction is attempted. If set to ``true`` (default) or ``"parity"``, a strategy of removing every other label is used. If set to @@ -7672,63 +18887,63 @@ class Legend(VegaLiteSchema): overlaps with the last visible label (this often works better for log-scaled axes). **Default value:** ``true``. - labelPadding : anyOf(float, :class:`ExprRef`) + labelPadding : :class:`ExprRef`, Dict[required=[expr]], float Padding in pixels between the legend and legend labels. - labelSeparation : anyOf(float, :class:`ExprRef`) + labelSeparation : :class:`ExprRef`, Dict[required=[expr]], float The minimum separation that must be between label bounding boxes for them to be considered non-overlapping (default ``0`` ). This property is ignored if *labelOverlap* resolution is not enabled. - legendX : anyOf(float, :class:`ExprRef`) + legendX : :class:`ExprRef`, Dict[required=[expr]], float Custom x-position for legend with orient "none". - legendY : anyOf(float, :class:`ExprRef`) + legendY : :class:`ExprRef`, Dict[required=[expr]], float Custom y-position for legend with orient "none". - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels by which to displace the legend from the data rectangle and axes. **Default value:** ``18``. - orient : :class:`LegendOrient` + orient : :class:`LegendOrient`, Literal['none', 'left', 'right', 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'] The orientation of the legend, which determines how the legend is positioned within the scene. One of ``"left"``, ``"right"``, ``"top"``, ``"bottom"``, ``"top-left"``, ``"top-right"``, ``"bottom-left"``, ``"bottom-right"``, ``"none"``. **Default value:** ``"right"`` - padding : anyOf(float, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], float The padding between the border and content of the legend group. **Default value:** ``0``. - rowPadding : anyOf(float, :class:`ExprRef`) + rowPadding : :class:`ExprRef`, Dict[required=[expr]], float The vertical padding in pixels between symbol legend entries. **Default value:** ``2``. - strokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + strokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Border stroke color for the full legend. - symbolDash : anyOf(List(float), :class:`ExprRef`) + symbolDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed symbol strokes. - symbolDashOffset : anyOf(float, :class:`ExprRef`) + symbolDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the symbol stroke dash array. - symbolFillColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + symbolFillColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the legend symbol, - symbolLimit : anyOf(float, :class:`ExprRef`) + symbolLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum number of allowed entries for a symbol legend. Additional entries will be dropped. - symbolOffset : anyOf(float, :class:`ExprRef`) + symbolOffset : :class:`ExprRef`, Dict[required=[expr]], float Horizontal pixel offset for legend symbols. **Default value:** ``0``. - symbolOpacity : anyOf(float, :class:`ExprRef`) + symbolOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the legend symbols. - symbolSize : anyOf(float, :class:`ExprRef`) + symbolSize : :class:`ExprRef`, Dict[required=[expr]], float The size of the legend symbol, in pixels. **Default value:** ``100``. - symbolStrokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + symbolStrokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Stroke color for legend symbols. - symbolStrokeWidth : anyOf(float, :class:`ExprRef`) + symbolStrokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The width of the symbol's stroke. **Default value:** ``1.5``. - symbolType : anyOf(:class:`SymbolShape`, :class:`ExprRef`) + symbolType : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str The symbol shape. One of the plotting shapes ``circle`` (default), ``square``, ``cross``, ``diamond``, ``triangle-up``, ``triangle-down``, ``triangle-right``, or ``triangle-left``, the line symbol ``stroke``, or one of the centered directional @@ -7739,16 +18954,16 @@ class Legend(VegaLiteSchema): dimensions. **Default value:** ``"circle"``. - tickCount : anyOf(:class:`TickCount`, :class:`ExprRef`) + tickCount : :class:`ExprRef`, Dict[required=[expr]], :class:`TickCount`, :class:`TimeIntervalStep`, Dict[required=[interval, step]], :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year'], float The desired number of tick values for quantitative legends. - tickMinStep : anyOf(float, :class:`ExprRef`) + tickMinStep : :class:`ExprRef`, Dict[required=[expr]], float The minimum desired step between legend ticks, in terms of scale domain values. For example, a value of ``1`` indicates that ticks should not be less than 1 unit apart. If ``tickMinStep`` is specified, the ``tickCount`` value will be adjusted, if necessary, to enforce the minimum step value. **Default value** : ``undefined`` - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -7768,13 +18983,13 @@ class Legend(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - titleAlign : anyOf(:class:`Align`, :class:`ExprRef`) + titleAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment for legend titles. **Default value:** ``"left"``. - titleAnchor : anyOf(:class:`TitleAnchor`, :class:`ExprRef`) + titleAnchor : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] Text anchor position for placing legend titles. - titleBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + titleBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] Vertical text baseline for legend titles. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and @@ -7782,107 +18997,1592 @@ class Legend(VegaLiteSchema): alone. **Default value:** ``"top"``. - titleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + titleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the legend title, can be in hex color code or regular color name. - titleFont : anyOf(string, :class:`ExprRef`) + titleFont : :class:`ExprRef`, Dict[required=[expr]], str The font of the legend title. - titleFontSize : anyOf(float, :class:`ExprRef`) + titleFontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size of the legend title. - titleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + titleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of the legend title. - titleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + titleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight of the legend title. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - titleLimit : anyOf(float, :class:`ExprRef`) + titleLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of legend titles. **Default value:** ``180``. - titleLineHeight : anyOf(float, :class:`ExprRef`) + titleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - titleOpacity : anyOf(float, :class:`ExprRef`) + titleOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the legend title. - titleOrient : anyOf(:class:`Orient`, :class:`ExprRef`) + titleOrient : :class:`ExprRef`, Dict[required=[expr]], :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] Orientation of the legend title. - titlePadding : anyOf(float, :class:`ExprRef`) + titlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixels, between title and legend. **Default value:** ``5``. - type : enum('symbol', 'gradient') + type : Literal['symbol', 'gradient'] The type of the legend. Use ``"symbol"`` to create a discrete legend and ``"gradient"`` for a continuous color gradient. **Default value:** ``"gradient"`` for non-binned quantitative fields and temporal fields; ``"symbol"`` otherwise. - values : anyOf(List(float), List(string), List(boolean), List(:class:`DateTime`), :class:`ExprRef`) + values : :class:`ExprRef`, Dict[required=[expr]], Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str] Explicitly set the visible legend values. zindex : float A non-negative integer indicating the z-index of the legend. If zindex is 0, legend should be drawn behind all chart elements. To put them in front, use zindex = 1. """ - _schema = {'$ref': '#/definitions/Legend'} - - def __init__(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, - cornerRadius=Undefined, description=Undefined, direction=Undefined, - fillColor=Undefined, format=Undefined, formatType=Undefined, gradientLength=Undefined, - gradientOpacity=Undefined, gradientStrokeColor=Undefined, - gradientStrokeWidth=Undefined, gradientThickness=Undefined, gridAlign=Undefined, - labelAlign=Undefined, labelBaseline=Undefined, labelColor=Undefined, - labelExpr=Undefined, labelFont=Undefined, labelFontSize=Undefined, - labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, - labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, - labelPadding=Undefined, labelSeparation=Undefined, legendX=Undefined, - legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, - rowPadding=Undefined, strokeColor=Undefined, symbolDash=Undefined, - symbolDashOffset=Undefined, symbolFillColor=Undefined, symbolLimit=Undefined, - symbolOffset=Undefined, symbolOpacity=Undefined, symbolSize=Undefined, - symbolStrokeColor=Undefined, symbolStrokeWidth=Undefined, symbolType=Undefined, - tickCount=Undefined, tickMinStep=Undefined, title=Undefined, titleAlign=Undefined, - titleAnchor=Undefined, titleBaseline=Undefined, titleColor=Undefined, - titleFont=Undefined, titleFontSize=Undefined, titleFontStyle=Undefined, - titleFontWeight=Undefined, titleLimit=Undefined, titleLineHeight=Undefined, - titleOpacity=Undefined, titleOrient=Undefined, titlePadding=Undefined, type=Undefined, - values=Undefined, zindex=Undefined, **kwds): - super(Legend, self).__init__(aria=aria, clipHeight=clipHeight, columnPadding=columnPadding, - columns=columns, cornerRadius=cornerRadius, - description=description, direction=direction, fillColor=fillColor, - format=format, formatType=formatType, - gradientLength=gradientLength, gradientOpacity=gradientOpacity, - gradientStrokeColor=gradientStrokeColor, - gradientStrokeWidth=gradientStrokeWidth, - gradientThickness=gradientThickness, gridAlign=gridAlign, - labelAlign=labelAlign, labelBaseline=labelBaseline, - labelColor=labelColor, labelExpr=labelExpr, labelFont=labelFont, - labelFontSize=labelFontSize, labelFontStyle=labelFontStyle, - labelFontWeight=labelFontWeight, labelLimit=labelLimit, - labelOffset=labelOffset, labelOpacity=labelOpacity, - labelOverlap=labelOverlap, labelPadding=labelPadding, - labelSeparation=labelSeparation, legendX=legendX, legendY=legendY, - offset=offset, orient=orient, padding=padding, - rowPadding=rowPadding, strokeColor=strokeColor, - symbolDash=symbolDash, symbolDashOffset=symbolDashOffset, - symbolFillColor=symbolFillColor, symbolLimit=symbolLimit, - symbolOffset=symbolOffset, symbolOpacity=symbolOpacity, - symbolSize=symbolSize, symbolStrokeColor=symbolStrokeColor, - symbolStrokeWidth=symbolStrokeWidth, symbolType=symbolType, - tickCount=tickCount, tickMinStep=tickMinStep, title=title, - titleAlign=titleAlign, titleAnchor=titleAnchor, - titleBaseline=titleBaseline, titleColor=titleColor, - titleFont=titleFont, titleFontSize=titleFontSize, - titleFontStyle=titleFontStyle, titleFontWeight=titleFontWeight, - titleLimit=titleLimit, titleLineHeight=titleLineHeight, - titleOpacity=titleOpacity, titleOrient=titleOrient, - titlePadding=titlePadding, type=type, values=values, zindex=zindex, - **kwds) + + _schema = {"$ref": "#/definitions/Legend"} + + def __init__( + self, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + fillColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + gradientLength: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gridAlign: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["LayoutAlign", Literal["all", "each", "none"]], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelExpr: Union[str, UndefinedType] = Undefined, + labelFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["LabelOverlap", bool, str] + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + legendX: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + "LegendOrient", + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + symbolDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolFillColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["SymbolShape", str]], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TickCount", + Union[ + "TimeInterval", + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + ], + Union["TimeIntervalStep", dict], + float, + ], + ], + UndefinedType, + ] = Undefined, + tickMinStep: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + titleAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + titleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Orient", Literal["left", "right", "top", "bottom"]], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + type: Union[Literal["symbol", "gradient"], UndefinedType] = Undefined, + values: Union[ + Union[ + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(Legend, self).__init__( + aria=aria, + clipHeight=clipHeight, + columnPadding=columnPadding, + columns=columns, + cornerRadius=cornerRadius, + description=description, + direction=direction, + fillColor=fillColor, + format=format, + formatType=formatType, + gradientLength=gradientLength, + gradientOpacity=gradientOpacity, + gradientStrokeColor=gradientStrokeColor, + gradientStrokeWidth=gradientStrokeWidth, + gradientThickness=gradientThickness, + gridAlign=gridAlign, + labelAlign=labelAlign, + labelBaseline=labelBaseline, + labelColor=labelColor, + labelExpr=labelExpr, + labelFont=labelFont, + labelFontSize=labelFontSize, + labelFontStyle=labelFontStyle, + labelFontWeight=labelFontWeight, + labelLimit=labelLimit, + labelOffset=labelOffset, + labelOpacity=labelOpacity, + labelOverlap=labelOverlap, + labelPadding=labelPadding, + labelSeparation=labelSeparation, + legendX=legendX, + legendY=legendY, + offset=offset, + orient=orient, + padding=padding, + rowPadding=rowPadding, + strokeColor=strokeColor, + symbolDash=symbolDash, + symbolDashOffset=symbolDashOffset, + symbolFillColor=symbolFillColor, + symbolLimit=symbolLimit, + symbolOffset=symbolOffset, + symbolOpacity=symbolOpacity, + symbolSize=symbolSize, + symbolStrokeColor=symbolStrokeColor, + symbolStrokeWidth=symbolStrokeWidth, + symbolType=symbolType, + tickCount=tickCount, + tickMinStep=tickMinStep, + title=title, + titleAlign=titleAlign, + titleAnchor=titleAnchor, + titleBaseline=titleBaseline, + titleColor=titleColor, + titleFont=titleFont, + titleFontSize=titleFontSize, + titleFontStyle=titleFontStyle, + titleFontWeight=titleFontWeight, + titleLimit=titleLimit, + titleLineHeight=titleLineHeight, + titleOpacity=titleOpacity, + titleOrient=titleOrient, + titlePadding=titlePadding, + type=type, + values=values, + zindex=zindex, + **kwds, + ) class LegendBinding(VegaLiteSchema): """LegendBinding schema wrapper - anyOf(string, :class:`LegendStreamBinding`) + :class:`LegendBinding`, :class:`LegendStreamBinding`, Dict[required=[legend]], str """ - _schema = {'$ref': '#/definitions/LegendBinding'} + + _schema = {"$ref": "#/definitions/LegendBinding"} def __init__(self, *args, **kwds): super(LegendBinding, self).__init__(*args, **kwds) @@ -7891,37 +20591,37 @@ def __init__(self, *args, **kwds): class LegendConfig(VegaLiteSchema): """LegendConfig schema wrapper - Mapping(required=[]) + :class:`LegendConfig`, Dict Parameters ---------- - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the legend from the ARIA accessibility tree. **Default value:** ``true`` - clipHeight : anyOf(float, :class:`ExprRef`) + clipHeight : :class:`ExprRef`, Dict[required=[expr]], float The height in pixels to clip symbol legend entries and limit their size. - columnPadding : anyOf(float, :class:`ExprRef`) + columnPadding : :class:`ExprRef`, Dict[required=[expr]], float The horizontal padding in pixels between symbol legend entries. **Default value:** ``10``. - columns : anyOf(float, :class:`ExprRef`) + columns : :class:`ExprRef`, Dict[required=[expr]], float The number of columns in which to arrange symbol legend entries. A value of ``0`` or lower indicates a single row with one column per entry. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float Corner radius for the full legend. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of this legend for `ARIA accessibility `__ (SVG output only). If the ``aria`` property is true, for SVG output the `"aria-label" attribute `__ will be set to this description. If the description is unspecified it will be automatically generated. - direction : :class:`Orientation` + direction : :class:`Orientation`, Literal['horizontal', 'vertical'] The direction of the legend, one of ``"vertical"`` or ``"horizontal"``. **Default value:** @@ -7931,11 +20631,11 @@ class LegendConfig(VegaLiteSchema): * For left-/right- ``orient`` ed legends, ``"vertical"`` * For top/bottom-left/right- ``orient`` ed legends, ``"horizontal"`` for gradient legends and ``"vertical"`` for symbol legends. - disable : boolean + disable : bool Disable legend by default - fillColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + fillColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Background fill color for the full legend. - gradientDirection : anyOf(:class:`Orientation`, :class:`ExprRef`) + gradientDirection : :class:`ExprRef`, Dict[required=[expr]], :class:`Orientation`, Literal['horizontal', 'vertical'] The default direction ( ``"horizontal"`` or ``"vertical"`` ) for gradient legends. **Default value:** ``"vertical"``. @@ -7949,28 +20649,28 @@ class LegendConfig(VegaLiteSchema): undefined. **Default value:** ``100`` - gradientLabelLimit : anyOf(float, :class:`ExprRef`) + gradientLabelLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum allowed length in pixels of color ramp gradient labels. - gradientLabelOffset : anyOf(float, :class:`ExprRef`) + gradientLabelOffset : :class:`ExprRef`, Dict[required=[expr]], float Vertical offset in pixels for color ramp gradient labels. **Default value:** ``2``. - gradientLength : anyOf(float, :class:`ExprRef`) + gradientLength : :class:`ExprRef`, Dict[required=[expr]], float The length in pixels of the primary axis of a color gradient. This value corresponds to the height of a vertical gradient or the width of a horizontal gradient. **Default value:** ``200``. - gradientOpacity : anyOf(float, :class:`ExprRef`) + gradientOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the color gradient. - gradientStrokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + gradientStrokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the gradient stroke, can be in hex color code or regular color name. **Default value:** ``"lightGray"``. - gradientStrokeWidth : anyOf(float, :class:`ExprRef`) + gradientStrokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The width of the gradient stroke, in pixels. **Default value:** ``0``. - gradientThickness : anyOf(float, :class:`ExprRef`) + gradientThickness : :class:`ExprRef`, Dict[required=[expr]], float The thickness in pixels of the color gradient. This value corresponds to the width of a vertical gradient or the height of a horizontal gradient. @@ -7985,42 +20685,42 @@ class LegendConfig(VegaLiteSchema): undefined. **Default value:** ``100`` - gridAlign : anyOf(:class:`LayoutAlign`, :class:`ExprRef`) + gridAlign : :class:`ExprRef`, Dict[required=[expr]], :class:`LayoutAlign`, Literal['all', 'each', 'none'] The alignment to apply to symbol legends rows and columns. The supported string values are ``"all"``, ``"each"`` (the default), and ``none``. For more information, see the `grid layout documentation `__. **Default value:** ``"each"``. - labelAlign : anyOf(:class:`Align`, :class:`ExprRef`) + labelAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The alignment of the legend label, can be left, center, or right. - labelBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + labelBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] The position of the baseline of legend label, can be ``"top"``, ``"middle"``, ``"bottom"``, or ``"alphabetic"``. **Default value:** ``"middle"``. - labelColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + labelColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the legend label, can be in hex color code or regular color name. - labelFont : anyOf(string, :class:`ExprRef`) + labelFont : :class:`ExprRef`, Dict[required=[expr]], str The font of the legend label. - labelFontSize : anyOf(float, :class:`ExprRef`) + labelFontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size of legend label. **Default value:** ``10``. - labelFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + labelFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of legend label. - labelFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + labelFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight of legend label. - labelLimit : anyOf(float, :class:`ExprRef`) + labelLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of legend tick labels. **Default value:** ``160``. - labelOffset : anyOf(float, :class:`ExprRef`) + labelOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset of the legend label. **Default value:** ``4``. - labelOpacity : anyOf(float, :class:`ExprRef`) + labelOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of labels. - labelOverlap : anyOf(:class:`LabelOverlap`, :class:`ExprRef`) + labelOverlap : :class:`ExprRef`, Dict[required=[expr]], :class:`LabelOverlap`, bool, str The strategy to use for resolving overlap of labels in gradient legends. If ``false``, no overlap reduction is attempted. If set to ``true`` or ``"parity"``, a strategy of removing every other label is used. If set to ``"greedy"``, a linear @@ -8028,83 +20728,83 @@ class LegendConfig(VegaLiteSchema): visible label (this often works better for log-scaled axes). **Default value:** ``"greedy"`` for ``log scales otherwise`` true`. - labelPadding : anyOf(float, :class:`ExprRef`) + labelPadding : :class:`ExprRef`, Dict[required=[expr]], float Padding in pixels between the legend and legend labels. - labelSeparation : anyOf(float, :class:`ExprRef`) + labelSeparation : :class:`ExprRef`, Dict[required=[expr]], float The minimum separation that must be between label bounding boxes for them to be considered non-overlapping (default ``0`` ). This property is ignored if *labelOverlap* resolution is not enabled. - layout : :class:`ExprRef` + layout : :class:`ExprRef`, Dict[required=[expr]] - legendX : anyOf(float, :class:`ExprRef`) + legendX : :class:`ExprRef`, Dict[required=[expr]], float Custom x-position for legend with orient "none". - legendY : anyOf(float, :class:`ExprRef`) + legendY : :class:`ExprRef`, Dict[required=[expr]], float Custom y-position for legend with orient "none". - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels by which to displace the legend from the data rectangle and axes. **Default value:** ``18``. - orient : :class:`LegendOrient` + orient : :class:`LegendOrient`, Literal['none', 'left', 'right', 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'] The orientation of the legend, which determines how the legend is positioned within the scene. One of ``"left"``, ``"right"``, ``"top"``, ``"bottom"``, ``"top-left"``, ``"top-right"``, ``"bottom-left"``, ``"bottom-right"``, ``"none"``. **Default value:** ``"right"`` - padding : anyOf(float, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], float The padding between the border and content of the legend group. **Default value:** ``0``. - rowPadding : anyOf(float, :class:`ExprRef`) + rowPadding : :class:`ExprRef`, Dict[required=[expr]], float The vertical padding in pixels between symbol legend entries. **Default value:** ``2``. - strokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + strokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Border stroke color for the full legend. - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] Border stroke dash pattern for the full legend. - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float Border stroke width for the full legend. - symbolBaseFillColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + symbolBaseFillColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Default fill color for legend symbols. Only applied if there is no ``"fill"`` scale color encoding for the legend. **Default value:** ``"transparent"``. - symbolBaseStrokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + symbolBaseStrokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Default stroke color for legend symbols. Only applied if there is no ``"fill"`` scale color encoding for the legend. **Default value:** ``"gray"``. - symbolDash : anyOf(List(float), :class:`ExprRef`) + symbolDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating [stroke, space] lengths for dashed symbol strokes. - symbolDashOffset : anyOf(float, :class:`ExprRef`) + symbolDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The pixel offset at which to start drawing with the symbol stroke dash array. - symbolDirection : anyOf(:class:`Orientation`, :class:`ExprRef`) + symbolDirection : :class:`ExprRef`, Dict[required=[expr]], :class:`Orientation`, Literal['horizontal', 'vertical'] The default direction ( ``"horizontal"`` or ``"vertical"`` ) for symbol legends. **Default value:** ``"vertical"``. - symbolFillColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + symbolFillColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the legend symbol, - symbolLimit : anyOf(float, :class:`ExprRef`) + symbolLimit : :class:`ExprRef`, Dict[required=[expr]], float The maximum number of allowed entries for a symbol legend. Additional entries will be dropped. - symbolOffset : anyOf(float, :class:`ExprRef`) + symbolOffset : :class:`ExprRef`, Dict[required=[expr]], float Horizontal pixel offset for legend symbols. **Default value:** ``0``. - symbolOpacity : anyOf(float, :class:`ExprRef`) + symbolOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the legend symbols. - symbolSize : anyOf(float, :class:`ExprRef`) + symbolSize : :class:`ExprRef`, Dict[required=[expr]], float The size of the legend symbol, in pixels. **Default value:** ``100``. - symbolStrokeColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + symbolStrokeColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Stroke color for legend symbols. - symbolStrokeWidth : anyOf(float, :class:`ExprRef`) + symbolStrokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The width of the symbol's stroke. **Default value:** ``1.5``. - symbolType : anyOf(:class:`SymbolShape`, :class:`ExprRef`) + symbolType : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str The symbol shape. One of the plotting shapes ``circle`` (default), ``square``, ``cross``, ``diamond``, ``triangle-up``, ``triangle-down``, ``triangle-right``, or ``triangle-left``, the line symbol ``stroke``, or one of the centered directional @@ -8115,17 +20815,17 @@ class LegendConfig(VegaLiteSchema): dimensions. **Default value:** ``"circle"``. - tickCount : anyOf(:class:`TickCount`, :class:`ExprRef`) + tickCount : :class:`ExprRef`, Dict[required=[expr]], :class:`TickCount`, :class:`TimeIntervalStep`, Dict[required=[interval, step]], :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year'], float The desired number of tick values for quantitative legends. title : None Set to null to disable title for the axis, legend, or header. - titleAlign : anyOf(:class:`Align`, :class:`ExprRef`) + titleAlign : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] Horizontal text alignment for legend titles. **Default value:** ``"left"``. - titleAnchor : anyOf(:class:`TitleAnchor`, :class:`ExprRef`) + titleAnchor : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] Text anchor position for placing legend titles. - titleBaseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + titleBaseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] Vertical text baseline for legend titles. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and @@ -8133,30 +20833,30 @@ class LegendConfig(VegaLiteSchema): alone. **Default value:** ``"top"``. - titleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + titleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] The color of the legend title, can be in hex color code or regular color name. - titleFont : anyOf(string, :class:`ExprRef`) + titleFont : :class:`ExprRef`, Dict[required=[expr]], str The font of the legend title. - titleFontSize : anyOf(float, :class:`ExprRef`) + titleFontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size of the legend title. - titleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + titleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style of the legend title. - titleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + titleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight of the legend title. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - titleLimit : anyOf(float, :class:`ExprRef`) + titleLimit : :class:`ExprRef`, Dict[required=[expr]], float Maximum allowed pixel width of legend titles. **Default value:** ``180``. - titleLineHeight : anyOf(float, :class:`ExprRef`) + titleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - titleOpacity : anyOf(float, :class:`ExprRef`) + titleOpacity : :class:`ExprRef`, Dict[required=[expr]], float Opacity of the legend title. - titleOrient : anyOf(:class:`Orient`, :class:`ExprRef`) + titleOrient : :class:`ExprRef`, Dict[required=[expr]], :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] Orientation of the legend title. - titlePadding : anyOf(float, :class:`ExprRef`) + titlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding, in pixels, between title and legend. **Default value:** ``5``. @@ -8164,90 +20864,1917 @@ class LegendConfig(VegaLiteSchema): The opacity of unselected legend entries. **Default value:** 0.35. - zindex : anyOf(float, :class:`ExprRef`) + zindex : :class:`ExprRef`, Dict[required=[expr]], float The integer z-index indicating the layering of the legend group relative to other axis, mark, and legend groups. """ - _schema = {'$ref': '#/definitions/LegendConfig'} - - def __init__(self, aria=Undefined, clipHeight=Undefined, columnPadding=Undefined, columns=Undefined, - cornerRadius=Undefined, description=Undefined, direction=Undefined, disable=Undefined, - fillColor=Undefined, gradientDirection=Undefined, - gradientHorizontalMaxLength=Undefined, gradientHorizontalMinLength=Undefined, - gradientLabelLimit=Undefined, gradientLabelOffset=Undefined, gradientLength=Undefined, - gradientOpacity=Undefined, gradientStrokeColor=Undefined, - gradientStrokeWidth=Undefined, gradientThickness=Undefined, - gradientVerticalMaxLength=Undefined, gradientVerticalMinLength=Undefined, - gridAlign=Undefined, labelAlign=Undefined, labelBaseline=Undefined, - labelColor=Undefined, labelFont=Undefined, labelFontSize=Undefined, - labelFontStyle=Undefined, labelFontWeight=Undefined, labelLimit=Undefined, - labelOffset=Undefined, labelOpacity=Undefined, labelOverlap=Undefined, - labelPadding=Undefined, labelSeparation=Undefined, layout=Undefined, legendX=Undefined, - legendY=Undefined, offset=Undefined, orient=Undefined, padding=Undefined, - rowPadding=Undefined, strokeColor=Undefined, strokeDash=Undefined, - strokeWidth=Undefined, symbolBaseFillColor=Undefined, symbolBaseStrokeColor=Undefined, - symbolDash=Undefined, symbolDashOffset=Undefined, symbolDirection=Undefined, - symbolFillColor=Undefined, symbolLimit=Undefined, symbolOffset=Undefined, - symbolOpacity=Undefined, symbolSize=Undefined, symbolStrokeColor=Undefined, - symbolStrokeWidth=Undefined, symbolType=Undefined, tickCount=Undefined, - title=Undefined, titleAlign=Undefined, titleAnchor=Undefined, titleBaseline=Undefined, - titleColor=Undefined, titleFont=Undefined, titleFontSize=Undefined, - titleFontStyle=Undefined, titleFontWeight=Undefined, titleLimit=Undefined, - titleLineHeight=Undefined, titleOpacity=Undefined, titleOrient=Undefined, - titlePadding=Undefined, unselectedOpacity=Undefined, zindex=Undefined, **kwds): - super(LegendConfig, self).__init__(aria=aria, clipHeight=clipHeight, - columnPadding=columnPadding, columns=columns, - cornerRadius=cornerRadius, description=description, - direction=direction, disable=disable, fillColor=fillColor, - gradientDirection=gradientDirection, - gradientHorizontalMaxLength=gradientHorizontalMaxLength, - gradientHorizontalMinLength=gradientHorizontalMinLength, - gradientLabelLimit=gradientLabelLimit, - gradientLabelOffset=gradientLabelOffset, - gradientLength=gradientLength, - gradientOpacity=gradientOpacity, - gradientStrokeColor=gradientStrokeColor, - gradientStrokeWidth=gradientStrokeWidth, - gradientThickness=gradientThickness, - gradientVerticalMaxLength=gradientVerticalMaxLength, - gradientVerticalMinLength=gradientVerticalMinLength, - gridAlign=gridAlign, labelAlign=labelAlign, - labelBaseline=labelBaseline, labelColor=labelColor, - labelFont=labelFont, labelFontSize=labelFontSize, - labelFontStyle=labelFontStyle, - labelFontWeight=labelFontWeight, labelLimit=labelLimit, - labelOffset=labelOffset, labelOpacity=labelOpacity, - labelOverlap=labelOverlap, labelPadding=labelPadding, - labelSeparation=labelSeparation, layout=layout, - legendX=legendX, legendY=legendY, offset=offset, - orient=orient, padding=padding, rowPadding=rowPadding, - strokeColor=strokeColor, strokeDash=strokeDash, - strokeWidth=strokeWidth, - symbolBaseFillColor=symbolBaseFillColor, - symbolBaseStrokeColor=symbolBaseStrokeColor, - symbolDash=symbolDash, symbolDashOffset=symbolDashOffset, - symbolDirection=symbolDirection, - symbolFillColor=symbolFillColor, symbolLimit=symbolLimit, - symbolOffset=symbolOffset, symbolOpacity=symbolOpacity, - symbolSize=symbolSize, symbolStrokeColor=symbolStrokeColor, - symbolStrokeWidth=symbolStrokeWidth, symbolType=symbolType, - tickCount=tickCount, title=title, titleAlign=titleAlign, - titleAnchor=titleAnchor, titleBaseline=titleBaseline, - titleColor=titleColor, titleFont=titleFont, - titleFontSize=titleFontSize, titleFontStyle=titleFontStyle, - titleFontWeight=titleFontWeight, titleLimit=titleLimit, - titleLineHeight=titleLineHeight, titleOpacity=titleOpacity, - titleOrient=titleOrient, titlePadding=titlePadding, - unselectedOpacity=unselectedOpacity, zindex=zindex, **kwds) + + _schema = {"$ref": "#/definitions/LegendConfig"} + + def __init__( + self, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + clipHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + columnPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + columns: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + direction: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + disable: Union[bool, UndefinedType] = Undefined, + fillColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + gradientDirection: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Orientation", Literal["horizontal", "vertical"]], + ], + UndefinedType, + ] = Undefined, + gradientHorizontalMaxLength: Union[float, UndefinedType] = Undefined, + gradientHorizontalMinLength: Union[float, UndefinedType] = Undefined, + gradientLabelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientLabelOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientLength: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientStrokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + gradientStrokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientThickness: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + gradientVerticalMaxLength: Union[float, UndefinedType] = Undefined, + gradientVerticalMinLength: Union[float, UndefinedType] = Undefined, + gridAlign: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["LayoutAlign", Literal["all", "each", "none"]], + ], + UndefinedType, + ] = Undefined, + labelAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + labelBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + labelColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + labelFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + labelFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + labelLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelOverlap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["LabelOverlap", bool, str] + ], + UndefinedType, + ] = Undefined, + labelPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + labelSeparation: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + layout: Union[Union["ExprRef", "_Parameter", dict], UndefinedType] = Undefined, + legendX: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + legendY: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + "LegendOrient", + Literal[ + "none", + "left", + "right", + "top", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + ], + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + rowPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolBaseFillColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolBaseStrokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + symbolDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolDirection: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Orientation", Literal["horizontal", "vertical"]], + ], + UndefinedType, + ] = Undefined, + symbolFillColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolStrokeColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + symbolStrokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + symbolType: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["SymbolShape", str]], + UndefinedType, + ] = Undefined, + tickCount: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TickCount", + Union[ + "TimeInterval", + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + ], + Union["TimeIntervalStep", dict], + float, + ], + ], + UndefinedType, + ] = Undefined, + title: Union[None, UndefinedType] = Undefined, + titleAlign: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + titleAnchor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], + ], + UndefinedType, + ] = Undefined, + titleBaseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + titleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + titleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + titleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + titleLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + titleOrient: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Orient", Literal["left", "right", "top", "bottom"]], + ], + UndefinedType, + ] = Undefined, + titlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + unselectedOpacity: Union[float, UndefinedType] = Undefined, + zindex: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(LegendConfig, self).__init__( + aria=aria, + clipHeight=clipHeight, + columnPadding=columnPadding, + columns=columns, + cornerRadius=cornerRadius, + description=description, + direction=direction, + disable=disable, + fillColor=fillColor, + gradientDirection=gradientDirection, + gradientHorizontalMaxLength=gradientHorizontalMaxLength, + gradientHorizontalMinLength=gradientHorizontalMinLength, + gradientLabelLimit=gradientLabelLimit, + gradientLabelOffset=gradientLabelOffset, + gradientLength=gradientLength, + gradientOpacity=gradientOpacity, + gradientStrokeColor=gradientStrokeColor, + gradientStrokeWidth=gradientStrokeWidth, + gradientThickness=gradientThickness, + gradientVerticalMaxLength=gradientVerticalMaxLength, + gradientVerticalMinLength=gradientVerticalMinLength, + gridAlign=gridAlign, + labelAlign=labelAlign, + labelBaseline=labelBaseline, + labelColor=labelColor, + labelFont=labelFont, + labelFontSize=labelFontSize, + labelFontStyle=labelFontStyle, + labelFontWeight=labelFontWeight, + labelLimit=labelLimit, + labelOffset=labelOffset, + labelOpacity=labelOpacity, + labelOverlap=labelOverlap, + labelPadding=labelPadding, + labelSeparation=labelSeparation, + layout=layout, + legendX=legendX, + legendY=legendY, + offset=offset, + orient=orient, + padding=padding, + rowPadding=rowPadding, + strokeColor=strokeColor, + strokeDash=strokeDash, + strokeWidth=strokeWidth, + symbolBaseFillColor=symbolBaseFillColor, + symbolBaseStrokeColor=symbolBaseStrokeColor, + symbolDash=symbolDash, + symbolDashOffset=symbolDashOffset, + symbolDirection=symbolDirection, + symbolFillColor=symbolFillColor, + symbolLimit=symbolLimit, + symbolOffset=symbolOffset, + symbolOpacity=symbolOpacity, + symbolSize=symbolSize, + symbolStrokeColor=symbolStrokeColor, + symbolStrokeWidth=symbolStrokeWidth, + symbolType=symbolType, + tickCount=tickCount, + title=title, + titleAlign=titleAlign, + titleAnchor=titleAnchor, + titleBaseline=titleBaseline, + titleColor=titleColor, + titleFont=titleFont, + titleFontSize=titleFontSize, + titleFontStyle=titleFontStyle, + titleFontWeight=titleFontWeight, + titleLimit=titleLimit, + titleLineHeight=titleLineHeight, + titleOpacity=titleOpacity, + titleOrient=titleOrient, + titlePadding=titlePadding, + unselectedOpacity=unselectedOpacity, + zindex=zindex, + **kwds, + ) class LegendOrient(VegaLiteSchema): """LegendOrient schema wrapper - enum('none', 'left', 'right', 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', - 'bottom-right') + :class:`LegendOrient`, Literal['none', 'left', 'right', 'top', 'bottom', 'top-left', + 'top-right', 'bottom-left', 'bottom-right'] """ - _schema = {'$ref': '#/definitions/LegendOrient'} + + _schema = {"$ref": "#/definitions/LegendOrient"} def __init__(self, *args): super(LegendOrient, self).__init__(*args) @@ -8256,97 +22783,157 @@ def __init__(self, *args): class LegendResolveMap(VegaLiteSchema): """LegendResolveMap schema wrapper - Mapping(required=[]) + :class:`LegendResolveMap`, Dict Parameters ---------- - angle : :class:`ResolveMode` - - color : :class:`ResolveMode` - - fill : :class:`ResolveMode` - - fillOpacity : :class:`ResolveMode` - - opacity : :class:`ResolveMode` - - shape : :class:`ResolveMode` - - size : :class:`ResolveMode` - - stroke : :class:`ResolveMode` - - strokeDash : :class:`ResolveMode` - - strokeOpacity : :class:`ResolveMode` - - strokeWidth : :class:`ResolveMode` - - """ - _schema = {'$ref': '#/definitions/LegendResolveMap'} - - def __init__(self, angle=Undefined, color=Undefined, fill=Undefined, fillOpacity=Undefined, - opacity=Undefined, shape=Undefined, size=Undefined, stroke=Undefined, - strokeDash=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, **kwds): - super(LegendResolveMap, self).__init__(angle=angle, color=color, fill=fill, - fillOpacity=fillOpacity, opacity=opacity, shape=shape, - size=size, stroke=stroke, strokeDash=strokeDash, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - **kwds) + angle : :class:`ResolveMode`, Literal['independent', 'shared'] + + color : :class:`ResolveMode`, Literal['independent', 'shared'] + + fill : :class:`ResolveMode`, Literal['independent', 'shared'] + + fillOpacity : :class:`ResolveMode`, Literal['independent', 'shared'] + + opacity : :class:`ResolveMode`, Literal['independent', 'shared'] + + shape : :class:`ResolveMode`, Literal['independent', 'shared'] + + size : :class:`ResolveMode`, Literal['independent', 'shared'] + + stroke : :class:`ResolveMode`, Literal['independent', 'shared'] + + strokeDash : :class:`ResolveMode`, Literal['independent', 'shared'] + + strokeOpacity : :class:`ResolveMode`, Literal['independent', 'shared'] + + strokeWidth : :class:`ResolveMode`, Literal['independent', 'shared'] + + """ + + _schema = {"$ref": "#/definitions/LegendResolveMap"} + + def __init__( + self, + angle: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + color: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + fill: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + fillOpacity: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + opacity: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + shape: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + size: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + stroke: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + strokeDash: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + **kwds, + ): + super(LegendResolveMap, self).__init__( + angle=angle, + color=color, + fill=fill, + fillOpacity=fillOpacity, + opacity=opacity, + shape=shape, + size=size, + stroke=stroke, + strokeDash=strokeDash, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + **kwds, + ) class LegendStreamBinding(LegendBinding): """LegendStreamBinding schema wrapper - Mapping(required=[legend]) + :class:`LegendStreamBinding`, Dict[required=[legend]] Parameters ---------- - legend : anyOf(string, :class:`Stream`) + legend : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, str """ - _schema = {'$ref': '#/definitions/LegendStreamBinding'} - def __init__(self, legend=Undefined, **kwds): + _schema = {"$ref": "#/definitions/LegendStreamBinding"} + + def __init__( + self, + legend: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(LegendStreamBinding, self).__init__(legend=legend, **kwds) class LineConfig(AnyMarkConfig): """LineConfig schema wrapper - Mapping(required=[]) + :class:`LineConfig`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -8357,13 +22944,13 @@ class LineConfig(AnyMarkConfig): ``"middle"``, ``"bottom"``. **Note:** Expression reference is *not* supported for range marks. - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -8376,63 +22963,63 @@ class LineConfig(AnyMarkConfig): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -8442,28 +23029,28 @@ class LineConfig(AnyMarkConfig): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -8485,7 +23072,7 @@ class LineConfig(AnyMarkConfig): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -8494,26 +23081,26 @@ class LineConfig(AnyMarkConfig): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -8525,13 +23112,13 @@ class LineConfig(AnyMarkConfig): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - point : anyOf(boolean, :class:`OverlayMarkDef`, string) + point : :class:`OverlayMarkDef`, Dict, bool, str A flag for overlaying points on top of line or area marks, or an object defining the properties of the overlayed points. @@ -8546,18 +23133,18 @@ class LineConfig(AnyMarkConfig): area marks. **Default value:** ``false``. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -8572,7 +23159,7 @@ class LineConfig(AnyMarkConfig): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -8589,56 +23176,56 @@ class LineConfig(AnyMarkConfig): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. timeUnitBandPosition : float @@ -8649,7 +23236,7 @@ class LineConfig(AnyMarkConfig): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -8664,118 +23251,1016 @@ class LineConfig(AnyMarkConfig): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. """ - _schema = {'$ref': '#/definitions/LineConfig'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, blend=Undefined, - color=Undefined, cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, - cornerRadiusBottomRight=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - dx=Undefined, dy=Undefined, ellipsis=Undefined, endAngle=Undefined, fill=Undefined, - fillOpacity=Undefined, filled=Undefined, font=Undefined, fontSize=Undefined, - fontStyle=Undefined, fontWeight=Undefined, height=Undefined, href=Undefined, - innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, limit=Undefined, - lineBreak=Undefined, lineHeight=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, - timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, tooltip=Undefined, - url=Undefined, width=Undefined, x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, - **kwds): - super(LineConfig, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - baseline=baseline, blend=blend, color=color, - cornerRadius=cornerRadius, - cornerRadiusBottomLeft=cornerRadiusBottomLeft, - cornerRadiusBottomRight=cornerRadiusBottomRight, - cornerRadiusTopLeft=cornerRadiusTopLeft, - cornerRadiusTopRight=cornerRadiusTopRight, cursor=cursor, - description=description, dir=dir, dx=dx, dy=dy, - ellipsis=ellipsis, endAngle=endAngle, 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, - lineBreak=lineBreak, lineHeight=lineHeight, opacity=opacity, - order=order, orient=orient, outerRadius=outerRadius, - padAngle=padAngle, point=point, radius=radius, radius2=radius2, - shape=shape, size=size, smooth=smooth, startAngle=startAngle, - stroke=stroke, strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOffset=strokeOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - tension=tension, text=text, theta=theta, theta2=theta2, - timeUnitBandPosition=timeUnitBandPosition, - timeUnitBandSize=timeUnitBandSize, tooltip=tooltip, url=url, - width=width, x=x, x2=x2, y=y, y2=y2, **kwds) + + _schema = {"$ref": "#/definitions/LineConfig"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + point: Union[ + Union[Union["OverlayMarkDef", dict], bool, str], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + timeUnitBandPosition: Union[float, UndefinedType] = Undefined, + timeUnitBandSize: Union[float, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): + super(LineConfig, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + baseline=baseline, + blend=blend, + color=color, + cornerRadius=cornerRadius, + cornerRadiusBottomLeft=cornerRadiusBottomLeft, + cornerRadiusBottomRight=cornerRadiusBottomRight, + cornerRadiusTopLeft=cornerRadiusTopLeft, + cornerRadiusTopRight=cornerRadiusTopRight, + cursor=cursor, + description=description, + dir=dir, + dx=dx, + dy=dy, + ellipsis=ellipsis, + endAngle=endAngle, + 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, + lineBreak=lineBreak, + lineHeight=lineHeight, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + point=point, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOffset=strokeOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + tension=tension, + text=text, + theta=theta, + theta2=theta2, + timeUnitBandPosition=timeUnitBandPosition, + timeUnitBandSize=timeUnitBandSize, + tooltip=tooltip, + url=url, + width=width, + x=x, + x2=x2, + y=y, + y2=y2, + **kwds, + ) class LineString(Geometry): """LineString schema wrapper - Mapping(required=[coordinates, type]) + :class:`LineString`, Dict[required=[coordinates, type]] LineString geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.4 Parameters ---------- - coordinates : List(:class:`Position`) + coordinates : Sequence[:class:`Position`, Sequence[float]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/LineString'} - def __init__(self, coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(LineString, self).__init__(coordinates=coordinates, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/LineString"} + + def __init__( + self, + coordinates: Union[ + Sequence[Union["Position", Sequence[float]]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(LineString, self).__init__( + coordinates=coordinates, type=type, bbox=bbox, **kwds + ) class LinearGradient(Gradient): """LinearGradient schema wrapper - Mapping(required=[gradient, stops]) + :class:`LinearGradient`, Dict[required=[gradient, stops]] Parameters ---------- - gradient : string + gradient : str The type of gradient. Use ``"linear"`` for a linear gradient. - stops : List(:class:`GradientStop`) + stops : Sequence[:class:`GradientStop`, Dict[required=[offset, color]]] An array of gradient stops defining the gradient color sequence. - id : string + id : str x1 : float The starting x-coordinate, in normalized [0, 1] coordinates, of the linear gradient. @@ -8794,85 +24279,136 @@ class LinearGradient(Gradient): **Default value:** ``0`` """ - _schema = {'$ref': '#/definitions/LinearGradient'} - def __init__(self, gradient=Undefined, stops=Undefined, id=Undefined, x1=Undefined, x2=Undefined, - y1=Undefined, y2=Undefined, **kwds): - super(LinearGradient, self).__init__(gradient=gradient, stops=stops, id=id, x1=x1, x2=x2, y1=y1, - y2=y2, **kwds) + _schema = {"$ref": "#/definitions/LinearGradient"} + + def __init__( + self, + gradient: Union[str, UndefinedType] = Undefined, + stops: Union[Sequence[Union["GradientStop", dict]], UndefinedType] = Undefined, + id: Union[str, UndefinedType] = Undefined, + x1: Union[float, UndefinedType] = Undefined, + x2: Union[float, UndefinedType] = Undefined, + y1: Union[float, UndefinedType] = Undefined, + y2: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(LinearGradient, self).__init__( + gradient=gradient, stops=stops, id=id, x1=x1, x2=x2, y1=y1, y2=y2, **kwds + ) class Locale(VegaLiteSchema): """Locale schema wrapper - Mapping(required=[]) + :class:`Locale`, Dict Parameters ---------- - number : :class:`NumberLocale` + number : :class:`NumberLocale`, Dict[required=[decimal, thousands, grouping, currency]] Locale definition for formatting numbers. - time : :class:`TimeLocale` + time : :class:`TimeLocale`, Dict[required=[dateTime, date, time, periods, days, shortDays, months, shortMonths]] Locale definition for formatting dates and times. """ - _schema = {'$ref': '#/definitions/Locale'} - def __init__(self, number=Undefined, time=Undefined, **kwds): + _schema = {"$ref": "#/definitions/Locale"} + + def __init__( + self, + number: Union[Union["NumberLocale", dict], UndefinedType] = Undefined, + time: Union[Union["TimeLocale", dict], UndefinedType] = Undefined, + **kwds, + ): super(Locale, self).__init__(number=number, time=time, **kwds) class LookupData(VegaLiteSchema): """LookupData schema wrapper - Mapping(required=[data, key]) + :class:`LookupData`, Dict[required=[data, key]] Parameters ---------- - data : :class:`Data` + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]] Secondary data source to lookup in. - key : :class:`FieldName` + key : :class:`FieldName`, str Key in data to lookup. - fields : List(:class:`FieldName`) + fields : Sequence[:class:`FieldName`, str] Fields in foreign data or selection to lookup. If not specified, the entire object is queried. """ - _schema = {'$ref': '#/definitions/LookupData'} - def __init__(self, data=Undefined, key=Undefined, fields=Undefined, **kwds): + _schema = {"$ref": "#/definitions/LookupData"} + + def __init__( + self, + data: Union[ + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + UndefinedType, + ] = Undefined, + key: Union[Union["FieldName", str], UndefinedType] = Undefined, + fields: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): super(LookupData, self).__init__(data=data, key=key, fields=fields, **kwds) class LookupSelection(VegaLiteSchema): """LookupSelection schema wrapper - Mapping(required=[key, param]) + :class:`LookupSelection`, Dict[required=[key, param]] Parameters ---------- - key : :class:`FieldName` + key : :class:`FieldName`, str Key in data to lookup. - param : :class:`ParameterName` + param : :class:`ParameterName`, str Selection parameter name to look up. - fields : List(:class:`FieldName`) + fields : Sequence[:class:`FieldName`, str] Fields in foreign data or selection to lookup. If not specified, the entire object is queried. """ - _schema = {'$ref': '#/definitions/LookupSelection'} - def __init__(self, key=Undefined, param=Undefined, fields=Undefined, **kwds): - super(LookupSelection, self).__init__(key=key, param=param, fields=fields, **kwds) + _schema = {"$ref": "#/definitions/LookupSelection"} + + def __init__( + self, + key: Union[Union["FieldName", str], UndefinedType] = Undefined, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + fields: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): + super(LookupSelection, self).__init__( + key=key, param=param, fields=fields, **kwds + ) class Mark(AnyMark): """Mark schema wrapper - enum('arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', - 'trail', 'circle', 'square', 'geoshape') + :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', + 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] All types of primitive marks. """ - _schema = {'$ref': '#/definitions/Mark'} + + _schema = {"$ref": "#/definitions/Mark"} def __init__(self, *args): super(Mark, self).__init__(*args) @@ -8881,37 +24417,37 @@ def __init__(self, *args): class MarkConfig(AnyMarkConfig): """MarkConfig schema wrapper - Mapping(required=[]) + :class:`MarkConfig`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -8922,13 +24458,13 @@ class MarkConfig(AnyMarkConfig): ``"middle"``, ``"bottom"``. **Note:** Expression reference is *not* supported for range marks. - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -8941,63 +24477,63 @@ class MarkConfig(AnyMarkConfig): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -9007,28 +24543,28 @@ class MarkConfig(AnyMarkConfig): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -9050,7 +24586,7 @@ class MarkConfig(AnyMarkConfig): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -9059,26 +24595,26 @@ class MarkConfig(AnyMarkConfig): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -9090,24 +24626,24 @@ class MarkConfig(AnyMarkConfig): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -9122,7 +24658,7 @@ class MarkConfig(AnyMarkConfig): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -9139,56 +24675,56 @@ class MarkConfig(AnyMarkConfig): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. timeUnitBandPosition : float @@ -9199,7 +24735,7 @@ class MarkConfig(AnyMarkConfig): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -9214,126 +24750,1009 @@ class MarkConfig(AnyMarkConfig): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. """ - _schema = {'$ref': '#/definitions/MarkConfig'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, blend=Undefined, - color=Undefined, cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, - cornerRadiusBottomRight=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - dx=Undefined, dy=Undefined, ellipsis=Undefined, endAngle=Undefined, fill=Undefined, - fillOpacity=Undefined, filled=Undefined, font=Undefined, fontSize=Undefined, - fontStyle=Undefined, fontWeight=Undefined, height=Undefined, href=Undefined, - innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, limit=Undefined, - lineBreak=Undefined, lineHeight=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, radius=Undefined, - radius2=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, - timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, tooltip=Undefined, - url=Undefined, width=Undefined, x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, - **kwds): - super(MarkConfig, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - baseline=baseline, blend=blend, color=color, - cornerRadius=cornerRadius, - cornerRadiusBottomLeft=cornerRadiusBottomLeft, - cornerRadiusBottomRight=cornerRadiusBottomRight, - cornerRadiusTopLeft=cornerRadiusTopLeft, - cornerRadiusTopRight=cornerRadiusTopRight, cursor=cursor, - description=description, dir=dir, dx=dx, dy=dy, - ellipsis=ellipsis, endAngle=endAngle, 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, - lineBreak=lineBreak, lineHeight=lineHeight, opacity=opacity, - order=order, orient=orient, outerRadius=outerRadius, - padAngle=padAngle, radius=radius, radius2=radius2, shape=shape, - size=size, smooth=smooth, startAngle=startAngle, stroke=stroke, - strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOffset=strokeOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - tension=tension, text=text, theta=theta, theta2=theta2, - timeUnitBandPosition=timeUnitBandPosition, - timeUnitBandSize=timeUnitBandSize, tooltip=tooltip, url=url, - width=width, x=x, x2=x2, y=y, y2=y2, **kwds) + + _schema = {"$ref": "#/definitions/MarkConfig"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + timeUnitBandPosition: Union[float, UndefinedType] = Undefined, + timeUnitBandSize: Union[float, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): + super(MarkConfig, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + baseline=baseline, + blend=blend, + color=color, + cornerRadius=cornerRadius, + cornerRadiusBottomLeft=cornerRadiusBottomLeft, + cornerRadiusBottomRight=cornerRadiusBottomRight, + cornerRadiusTopLeft=cornerRadiusTopLeft, + cornerRadiusTopRight=cornerRadiusTopRight, + cursor=cursor, + description=description, + dir=dir, + dx=dx, + dy=dy, + ellipsis=ellipsis, + endAngle=endAngle, + 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, + lineBreak=lineBreak, + lineHeight=lineHeight, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOffset=strokeOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + tension=tension, + text=text, + theta=theta, + theta2=theta2, + timeUnitBandPosition=timeUnitBandPosition, + timeUnitBandSize=timeUnitBandSize, + tooltip=tooltip, + url=url, + width=width, + x=x, + x2=x2, + y=y, + y2=y2, + **kwds, + ) class MarkDef(AnyMark): """MarkDef schema wrapper - Mapping(required=[type]) + :class:`MarkDef`, Dict[required=[type]] Parameters ---------- - type : :class:`Mark` + type : :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] The mark type. This could a primitive mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"geoshape"``, ``"rule"``, and ``"text"`` ) or a composite mark type ( ``"boxplot"``, ``"errorband"``, ``"errorbar"`` ). - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. bandSize : float The width of the ticks. **Default value:** 3/4 of step (width step for horizontal ticks and height step for vertical ticks). - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -9349,15 +25768,15 @@ class MarkDef(AnyMark): (preferred by statisticians) or 1 (Vega-Lite default, D3 example style). **Default value:** ``1`` - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - clip : boolean + clip : bool Whether a mark be clipped to the enclosing group’s width and height. - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -9374,67 +25793,67 @@ class MarkDef(AnyMark): The default size of the bars on continuous scales. **Default value:** ``5`` - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusEnd : anyOf(float, :class:`ExprRef`) + cornerRadiusEnd : :class:`ExprRef`, Dict[required=[expr]], float For vertical bars, top-left and top-right corner radius. For horizontal bars, top-right and bottom-right corner radius. - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - discreteBandSize : anyOf(float, :class:`RelativeBandSize`) + discreteBandSize : :class:`RelativeBandSize`, Dict[required=[band]], float The default size of the bars with discrete dimensions. If unspecified, the default size is ``step-2``, which provides 2 pixel offset between bars. - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -9444,19 +25863,19 @@ class MarkDef(AnyMark): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`, :class:`RelativeBandSize`) + height : :class:`ExprRef`, Dict[required=[expr]], :class:`RelativeBandSize`, Dict[required=[band]], float Height of the marks. One of: @@ -9464,14 +25883,14 @@ class MarkDef(AnyMark): A relative band size definition. For example, ``{band: 0.5}`` represents half of the band - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -9493,7 +25912,7 @@ class MarkDef(AnyMark): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -9502,12 +25921,12 @@ class MarkDef(AnyMark): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - line : anyOf(boolean, :class:`OverlayMarkDef`) + line : :class:`OverlayMarkDef`, Dict, bool A flag for overlaying line on top of area marks, or an object defining the properties of the overlayed lines. @@ -9518,23 +25937,23 @@ class MarkDef(AnyMark): If this value is ``false``, no lines would be automatically added to area marks. **Default value:** ``false``. - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - minBandSize : anyOf(float, :class:`ExprRef`) + minBandSize : :class:`ExprRef`, Dict[required=[expr]], float The minimum band size for bar and rectangle marks. **Default value:** ``0.25`` - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -9546,13 +25965,13 @@ class MarkDef(AnyMark): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - point : anyOf(boolean, :class:`OverlayMarkDef`, string) + point : :class:`OverlayMarkDef`, Dict, bool, str A flag for overlaying points on top of line or area marks, or an object defining the properties of the overlayed points. @@ -9567,22 +25986,22 @@ class MarkDef(AnyMark): area marks. **Default value:** ``false``. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - radius2Offset : anyOf(float, :class:`ExprRef`) + radius2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for radius2. - radiusOffset : anyOf(float, :class:`ExprRef`) + radiusOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for radius. - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -9597,7 +26016,7 @@ class MarkDef(AnyMark): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -9614,42 +26033,42 @@ class MarkDef(AnyMark): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - style : anyOf(string, List(string)) + style : Sequence[str], str A string or array of strings indicating the name of custom styles to apply to the mark. A style is a named collection of mark property defaults defined within the `style configuration @@ -9663,23 +26082,23 @@ class MarkDef(AnyMark): For example, a bar mark with ``"style": "foo"`` will receive from ``config.style.bar`` and ``config.style.foo`` (the specified style ``"foo"`` has higher precedence). - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. - theta2Offset : anyOf(float, :class:`ExprRef`) + theta2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for theta2. - thetaOffset : anyOf(float, :class:`ExprRef`) + thetaOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for theta. thickness : float Thickness of the tick mark. @@ -9693,7 +26112,7 @@ class MarkDef(AnyMark): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -9708,9 +26127,9 @@ class MarkDef(AnyMark): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`, :class:`RelativeBandSize`) + width : :class:`ExprRef`, Dict[required=[expr]], :class:`RelativeBandSize`, Dict[required=[band]], float Width of the marks. One of: @@ -9718,114 +26137,1079 @@ class MarkDef(AnyMark): A relative band size definition. For example, ``{band: 0.5}`` represents half of the band. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2Offset : anyOf(float, :class:`ExprRef`) + x2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for x2-position. - xOffset : anyOf(float, :class:`ExprRef`) + xOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for x-position. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2Offset : anyOf(float, :class:`ExprRef`) + y2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for y2-position. - yOffset : anyOf(float, :class:`ExprRef`) + yOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for y-position. """ - _schema = {'$ref': '#/definitions/MarkDef'} - - def __init__(self, type=Undefined, align=Undefined, angle=Undefined, aria=Undefined, - ariaRole=Undefined, ariaRoleDescription=Undefined, aspect=Undefined, - bandSize=Undefined, baseline=Undefined, binSpacing=Undefined, blend=Undefined, - clip=Undefined, color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - discreteBandSize=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, - fill=Undefined, fillOpacity=Undefined, filled=Undefined, font=Undefined, - fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, height=Undefined, - href=Undefined, innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, - limit=Undefined, line=Undefined, lineBreak=Undefined, lineHeight=Undefined, - minBandSize=Undefined, opacity=Undefined, order=Undefined, orient=Undefined, - outerRadius=Undefined, padAngle=Undefined, point=Undefined, radius=Undefined, - radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, shape=Undefined, - size=Undefined, smooth=Undefined, stroke=Undefined, strokeCap=Undefined, - strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, - strokeMiterLimit=Undefined, strokeOffset=Undefined, strokeOpacity=Undefined, - strokeWidth=Undefined, style=Undefined, tension=Undefined, text=Undefined, - theta=Undefined, theta2=Undefined, theta2Offset=Undefined, thetaOffset=Undefined, - thickness=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, y2Offset=Undefined, - yOffset=Undefined, **kwds): - super(MarkDef, self).__init__(type=type, 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) + + _schema = {"$ref": "#/definitions/MarkDef"} + + def __init__( + self, + type: Union[ + Union[ + "Mark", + Literal[ + "arc", + "area", + "bar", + "image", + "line", + "point", + "rect", + "rule", + "text", + "tick", + "trail", + "circle", + "square", + "geoshape", + ], + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + bandSize: Union[float, UndefinedType] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + binSpacing: Union[float, UndefinedType] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + clip: Union[bool, UndefinedType] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + continuousBandSize: Union[float, UndefinedType] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusEnd: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + discreteBandSize: Union[ + Union[Union["RelativeBandSize", dict], float], UndefinedType + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["RelativeBandSize", dict], + float, + ], + UndefinedType, + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + line: Union[ + Union[Union["OverlayMarkDef", dict], bool], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + minBandSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + point: Union[ + Union[Union["OverlayMarkDef", dict], bool, str], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radiusOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + thetaOffset: Union[ + Union[Union["ExprRef", "_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["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["RelativeBandSize", dict], + float, + ], + UndefinedType, + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + xOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + yOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(MarkDef, self).__init__( + type=type, + 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, + ) class MarkPropDefGradientstringnull(VegaLiteSchema): """MarkPropDefGradientstringnull schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, - :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`) + :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, + Dict[required=[shorthand]], :class:`MarkPropDefGradientstringnull`, + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict """ - _schema = {'$ref': '#/definitions/MarkPropDef<(Gradient|string|null)>'} + + _schema = {"$ref": "#/definitions/MarkPropDef<(Gradient|string|null)>"} def __init__(self, *args, **kwds): super(MarkPropDefGradientstringnull, self).__init__(*args, **kwds) -class FieldOrDatumDefWithConditionDatumDefGradientstringnull(ColorDef, MarkPropDefGradientstringnull): +class FieldOrDatumDefWithConditionDatumDefGradientstringnull( + ColorDef, MarkPropDefGradientstringnull +): """FieldOrDatumDefWithConditionDatumDefGradientstringnull schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefGradientstringnull`, Dict Parameters ---------- @@ -9834,16 +27218,16 @@ class FieldOrDatumDefWithConditionDatumDefGradientstringnull(ColorDef, MarkPropD Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -9863,7 +27247,7 @@ class FieldOrDatumDefWithConditionDatumDefGradientstringnull(ColorDef, MarkPropD 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -9933,26 +27317,86 @@ class FieldOrDatumDefWithConditionDatumDefGradientstringnull(ColorDef, MarkPropD **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, bandPosition=Undefined, condition=Undefined, datum=Undefined, title=Undefined, - type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionDatumDefGradientstringnull, self).__init__(bandPosition=bandPosition, - condition=condition, - datum=datum, - title=title, - type=type, **kwds) - - -class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, MarkPropDefGradientstringnull): + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefGradientstringnullExprRef", + Union[ + "ConditionalParameterValueDefGradientstringnullExprRef", + dict, + ], + Union[ + "ConditionalPredicateValueDefGradientstringnullExprRef", + dict, + ], + ] + ], + Union[ + "ConditionalValueDefGradientstringnullExprRef", + Union[ + "ConditionalParameterValueDefGradientstringnullExprRef", dict + ], + Union[ + "ConditionalPredicateValueDefGradientstringnullExprRef", dict + ], + ], + ], + UndefinedType, + ] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionDatumDefGradientstringnull, self).__init__( + bandPosition=bandPosition, + condition=condition, + datum=datum, + title=title, + type=type, + **kwds, + ) + + +class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull( + ColorDef, MarkPropDefGradientstringnull +): """FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull`, + Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -9964,7 +27408,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -9985,14 +27429,14 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -10007,7 +27451,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -10016,7 +27460,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -10029,7 +27473,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -10068,7 +27512,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -10077,7 +27521,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10097,7 +27541,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10167,33 +27611,332 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull(ColorDef, M **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, - bin=bin, - condition=condition, - field=field, - legend=legend, - scale=scale, - sort=sort, - timeUnit=timeUnit, - title=title, - type=type, - **kwds) + + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefGradientstringnullExprRef", + Union[ + "ConditionalParameterValueDefGradientstringnullExprRef", + dict, + ], + Union[ + "ConditionalPredicateValueDefGradientstringnullExprRef", + dict, + ], + ] + ], + Union[ + "ConditionalValueDefGradientstringnullExprRef", + Union[ + "ConditionalParameterValueDefGradientstringnullExprRef", dict + ], + Union[ + "ConditionalPredicateValueDefGradientstringnullExprRef", dict + ], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union["Legend", dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super( + FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull, self + ).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class MarkPropDefnumber(VegaLiteSchema): """MarkPropDefnumber schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, - :class:`FieldOrDatumDefWithConditionDatumDefnumber`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], + :class:`MarkPropDefnumber`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, + Dict """ - _schema = {'$ref': '#/definitions/MarkPropDef'} + + _schema = {"$ref": "#/definitions/MarkPropDef"} def __init__(self, *args, **kwds): super(MarkPropDefnumber, self).__init__(*args, **kwds) @@ -10202,11 +27945,13 @@ def __init__(self, *args, **kwds): class MarkPropDefnumberArray(VegaLiteSchema): """MarkPropDefnumberArray schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, - :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`) + :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, + Dict[required=[shorthand]], :class:`MarkPropDefnumberArray`, + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`, Dict """ - _schema = {'$ref': '#/definitions/MarkPropDef'} + + _schema = {"$ref": "#/definitions/MarkPropDef"} def __init__(self, *args, **kwds): super(MarkPropDefnumberArray, self).__init__(*args, **kwds) @@ -10215,11 +27960,13 @@ def __init__(self, *args, **kwds): class MarkPropDefstringnullTypeForShape(VegaLiteSchema): """MarkPropDefstringnullTypeForShape schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, - :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`) + :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, + Dict[required=[shorthand]], :class:`MarkPropDefstringnullTypeForShape`, + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`, Dict """ - _schema = {'$ref': '#/definitions/MarkPropDef<(string|null),TypeForShape>'} + + _schema = {"$ref": "#/definitions/MarkPropDef<(string|null),TypeForShape>"} def __init__(self, *args, **kwds): super(MarkPropDefstringnullTypeForShape, self).__init__(*args, **kwds) @@ -10228,10 +27975,11 @@ def __init__(self, *args, **kwds): class MarkType(VegaLiteSchema): """MarkType schema wrapper - enum('arc', 'area', 'image', 'group', 'line', 'path', 'rect', 'rule', 'shape', 'symbol', - 'text', 'trail') + :class:`MarkType`, Literal['arc', 'area', 'image', 'group', 'line', 'path', 'rect', 'rule', + 'shape', 'symbol', 'text', 'trail'] """ - _schema = {'$ref': '#/definitions/MarkType'} + + _schema = {"$ref": "#/definitions/MarkType"} def __init__(self, *args): super(MarkType, self).__init__(*args) @@ -10240,9 +27988,10 @@ def __init__(self, *args): class Month(VegaLiteSchema): """Month schema wrapper - float + :class:`Month`, float """ - _schema = {'$ref': '#/definitions/Month'} + + _schema = {"$ref": "#/definitions/Month"} def __init__(self, *args): super(Month, self).__init__(*args) @@ -10251,104 +28000,154 @@ def __init__(self, *args): class MultiLineString(Geometry): """MultiLineString schema wrapper - Mapping(required=[coordinates, type]) + :class:`MultiLineString`, Dict[required=[coordinates, type]] MultiLineString geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.5 Parameters ---------- - coordinates : List(List(:class:`Position`)) + coordinates : Sequence[Sequence[:class:`Position`, Sequence[float]]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/MultiLineString'} - def __init__(self, coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(MultiLineString, self).__init__(coordinates=coordinates, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/MultiLineString"} + + def __init__( + self, + coordinates: Union[ + Sequence[Sequence[Union["Position", Sequence[float]]]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(MultiLineString, self).__init__( + coordinates=coordinates, type=type, bbox=bbox, **kwds + ) class MultiPoint(Geometry): """MultiPoint schema wrapper - Mapping(required=[coordinates, type]) + :class:`MultiPoint`, Dict[required=[coordinates, type]] MultiPoint geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.3 Parameters ---------- - coordinates : List(:class:`Position`) + coordinates : Sequence[:class:`Position`, Sequence[float]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/MultiPoint'} - def __init__(self, coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(MultiPoint, self).__init__(coordinates=coordinates, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/MultiPoint"} + + def __init__( + self, + coordinates: Union[ + Sequence[Union["Position", Sequence[float]]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(MultiPoint, self).__init__( + coordinates=coordinates, type=type, bbox=bbox, **kwds + ) class MultiPolygon(Geometry): """MultiPolygon schema wrapper - Mapping(required=[coordinates, type]) + :class:`MultiPolygon`, Dict[required=[coordinates, type]] MultiPolygon geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.7 Parameters ---------- - coordinates : List(List(List(:class:`Position`))) + coordinates : Sequence[Sequence[Sequence[:class:`Position`, Sequence[float]]]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/MultiPolygon'} - def __init__(self, coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(MultiPolygon, self).__init__(coordinates=coordinates, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/MultiPolygon"} + + def __init__( + self, + coordinates: Union[ + Sequence[Sequence[Sequence[Union["Position", Sequence[float]]]]], + UndefinedType, + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(MultiPolygon, self).__init__( + coordinates=coordinates, type=type, bbox=bbox, **kwds + ) class NamedData(DataSource): """NamedData schema wrapper - Mapping(required=[name]) + :class:`NamedData`, Dict[required=[name]] Parameters ---------- - name : string + name : str Provide a placeholder name and bind data at runtime. New data may change the layout but Vega does not always resize the chart. To update the layout when the data updates, set `autosize `__ or explicitly use `view.resize `__. - format : :class:`DataFormat` + format : :class:`CsvDataFormat`, Dict, :class:`DataFormat`, :class:`DsvDataFormat`, Dict[required=[delimiter]], :class:`JsonDataFormat`, Dict, :class:`TopoDataFormat`, Dict An object that specifies the format for parsing the data. """ - _schema = {'$ref': '#/definitions/NamedData'} - def __init__(self, name=Undefined, format=Undefined, **kwds): + _schema = {"$ref": "#/definitions/NamedData"} + + def __init__( + self, + name: Union[str, UndefinedType] = Undefined, + format: Union[ + Union[ + "DataFormat", + Union["CsvDataFormat", dict], + Union["DsvDataFormat", dict], + Union["JsonDataFormat", dict], + Union["TopoDataFormat", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(NamedData, self).__init__(name=name, format=format, **kwds) class NonArgAggregateOp(Aggregate): """NonArgAggregateOp schema wrapper - enum('average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', - 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', - 'variancep') + :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', + 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', + 'valid', 'values', 'variance', 'variancep'] """ - _schema = {'$ref': '#/definitions/NonArgAggregateOp'} + + _schema = {"$ref": "#/definitions/NonArgAggregateOp"} def __init__(self, *args): super(NonArgAggregateOp, self).__init__(*args) @@ -10357,12 +28156,16 @@ def __init__(self, *args): class NonNormalizedSpec(VegaLiteSchema): """NonNormalizedSpec schema wrapper - anyOf(:class:`FacetedUnitSpec`, :class:`LayerSpec`, :class:`RepeatSpec`, :class:`FacetSpec`, - :class:`ConcatSpecGenericSpec`, :class:`VConcatSpecGenericSpec`, - :class:`HConcatSpecGenericSpec`) + :class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, + Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], + :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, + Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], + :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`NonNormalizedSpec`, + :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]] Any specification in Vega-Lite. """ - _schema = {'$ref': '#/definitions/NonNormalizedSpec'} + + _schema = {"$ref": "#/definitions/NonNormalizedSpec"} def __init__(self, *args, **kwds): super(NonNormalizedSpec, self).__init__(*args, **kwds) @@ -10371,55 +28174,82 @@ def __init__(self, *args, **kwds): class NumberLocale(VegaLiteSchema): """NumberLocale schema wrapper - Mapping(required=[decimal, thousands, grouping, currency]) + :class:`NumberLocale`, Dict[required=[decimal, thousands, grouping, currency]] Locale definition for formatting numbers. Parameters ---------- - currency : :class:`Vector2string` + currency : :class:`Vector2string`, Sequence[str] The currency prefix and suffix (e.g., ["$", ""]). - decimal : string + decimal : str The decimal point (e.g., "."). - grouping : List(float) + grouping : Sequence[float] The array of group sizes (e.g., [3]), cycled as needed. - thousands : string + thousands : str The group separator (e.g., ","). - minus : string + minus : str The minus sign (defaults to hyphen-minus, "-"). - nan : string + nan : str The not-a-number value (defaults to "NaN"). - numerals : :class:`Vector10string` + numerals : :class:`Vector10string`, Sequence[str] An array of ten strings to replace the numerals 0-9. - percent : string + percent : str The percent sign (defaults to "%"). """ - _schema = {'$ref': '#/definitions/NumberLocale'} - def __init__(self, currency=Undefined, decimal=Undefined, grouping=Undefined, thousands=Undefined, - minus=Undefined, nan=Undefined, numerals=Undefined, percent=Undefined, **kwds): - super(NumberLocale, self).__init__(currency=currency, decimal=decimal, grouping=grouping, - thousands=thousands, minus=minus, nan=nan, numerals=numerals, - percent=percent, **kwds) + _schema = {"$ref": "#/definitions/NumberLocale"} + + def __init__( + self, + currency: Union[ + Union["Vector2string", Sequence[str]], UndefinedType + ] = Undefined, + decimal: Union[str, UndefinedType] = Undefined, + grouping: Union[Sequence[float], UndefinedType] = Undefined, + thousands: Union[str, UndefinedType] = Undefined, + minus: Union[str, UndefinedType] = Undefined, + nan: Union[str, UndefinedType] = Undefined, + numerals: Union[ + Union["Vector10string", Sequence[str]], UndefinedType + ] = Undefined, + percent: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(NumberLocale, self).__init__( + currency=currency, + decimal=decimal, + grouping=grouping, + thousands=thousands, + minus=minus, + nan=nan, + numerals=numerals, + percent=percent, + **kwds, + ) class NumericArrayMarkPropDef(VegaLiteSchema): """NumericArrayMarkPropDef schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, - :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`) + :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, + Dict[required=[shorthand]], :class:`NumericArrayMarkPropDef`, + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`, Dict """ - _schema = {'$ref': '#/definitions/NumericArrayMarkPropDef'} + + _schema = {"$ref": "#/definitions/NumericArrayMarkPropDef"} def __init__(self, *args, **kwds): super(NumericArrayMarkPropDef, self).__init__(*args, **kwds) -class FieldOrDatumDefWithConditionDatumDefnumberArray(MarkPropDefnumberArray, NumericArrayMarkPropDef): +class FieldOrDatumDefWithConditionDatumDefnumberArray( + MarkPropDefnumberArray, NumericArrayMarkPropDef +): """FieldOrDatumDefWithConditionDatumDefnumberArray schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumberArray`, Dict Parameters ---------- @@ -10428,16 +28258,16 @@ class FieldOrDatumDefWithConditionDatumDefnumberArray(MarkPropDefnumberArray, Nu Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10457,7 +28287,7 @@ class FieldOrDatumDefWithConditionDatumDefnumberArray(MarkPropDefnumberArray, Nu 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10527,25 +28357,73 @@ class FieldOrDatumDefWithConditionDatumDefnumberArray(MarkPropDefnumberArray, Nu **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, bandPosition=Undefined, condition=Undefined, datum=Undefined, title=Undefined, - type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionDatumDefnumberArray, self).__init__(bandPosition=bandPosition, - condition=condition, - datum=datum, title=title, - type=type, **kwds) - - -class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberArray, NumericArrayMarkPropDef): + _schema = {"$ref": "#/definitions/FieldOrDatumDefWithCondition"} + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumberArrayExprRef", + Union["ConditionalParameterValueDefnumberArrayExprRef", dict], + Union["ConditionalPredicateValueDefnumberArrayExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefnumberArrayExprRef", + Union["ConditionalParameterValueDefnumberArrayExprRef", dict], + Union["ConditionalPredicateValueDefnumberArrayExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionDatumDefnumberArray, self).__init__( + bandPosition=bandPosition, + condition=condition, + datum=datum, + title=title, + type=type, + **kwds, + ) + + +class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray( + MarkPropDefnumberArray, NumericArrayMarkPropDef +): """FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -10557,7 +28435,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -10578,14 +28456,14 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -10600,7 +28478,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -10609,7 +28487,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -10622,7 +28500,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -10661,7 +28539,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -10670,7 +28548,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10690,7 +28568,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10760,32 +28638,320 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray(MarkPropDefnumberA **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, - bin=bin, - condition=condition, - field=field, - legend=legend, - scale=scale, - sort=sort, - timeUnit=timeUnit, - title=title, - type=type, **kwds) + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumberArrayExprRef", + Union["ConditionalParameterValueDefnumberArrayExprRef", dict], + Union["ConditionalPredicateValueDefnumberArrayExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefnumberArrayExprRef", + Union["ConditionalParameterValueDefnumberArrayExprRef", dict], + Union["ConditionalPredicateValueDefnumberArrayExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union["Legend", dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class NumericMarkPropDef(VegaLiteSchema): """NumericMarkPropDef schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, - :class:`FieldOrDatumDefWithConditionDatumDefnumber`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]], + :class:`NumericMarkPropDef`, :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, + Dict """ - _schema = {'$ref': '#/definitions/NumericMarkPropDef'} + + _schema = {"$ref": "#/definitions/NumericMarkPropDef"} def __init__(self, *args, **kwds): super(NumericMarkPropDef, self).__init__(*args, **kwds) @@ -10794,7 +28960,7 @@ def __init__(self, *args, **kwds): class FieldOrDatumDefWithConditionDatumDefnumber(MarkPropDefnumber, NumericMarkPropDef): """FieldOrDatumDefWithConditionDatumDefnumber schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefnumber`, Dict Parameters ---------- @@ -10803,16 +28969,16 @@ class FieldOrDatumDefWithConditionDatumDefnumber(MarkPropDefnumber, NumericMarkP Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -10832,7 +28998,7 @@ class FieldOrDatumDefWithConditionDatumDefnumber(MarkPropDefnumber, NumericMarkP 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -10902,25 +29068,73 @@ class FieldOrDatumDefWithConditionDatumDefnumber(MarkPropDefnumber, NumericMarkP **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - - def __init__(self, bandPosition=Undefined, condition=Undefined, datum=Undefined, title=Undefined, - type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionDatumDefnumber, self).__init__(bandPosition=bandPosition, - condition=condition, - datum=datum, title=title, - type=type, **kwds) - -class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, NumericMarkPropDef): + _schema = {"$ref": "#/definitions/FieldOrDatumDefWithCondition"} + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumberExprRef", + Union["ConditionalParameterValueDefnumberExprRef", dict], + Union["ConditionalPredicateValueDefnumberExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefnumberExprRef", + Union["ConditionalParameterValueDefnumberExprRef", dict], + Union["ConditionalPredicateValueDefnumberExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionDatumDefnumber, self).__init__( + bandPosition=bandPosition, + condition=condition, + datum=datum, + title=title, + type=type, + **kwds, + ) + + +class FieldOrDatumDefWithConditionMarkPropFieldDefnumber( + MarkPropDefnumber, NumericMarkPropDef +): """FieldOrDatumDefWithConditionMarkPropFieldDefnumber schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefnumber`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -10932,7 +29146,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -10953,14 +29167,14 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -10975,7 +29189,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -10984,7 +29198,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -10997,7 +29211,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -11036,7 +29250,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -11045,7 +29259,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -11065,7 +29279,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -11135,29 +29349,318 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefnumber(MarkPropDefnumber, Nume **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionMarkPropFieldDefnumber, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, - bin=bin, - condition=condition, - field=field, - legend=legend, - scale=scale, sort=sort, - timeUnit=timeUnit, - title=title, type=type, - **kwds) + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumberExprRef", + Union["ConditionalParameterValueDefnumberExprRef", dict], + Union["ConditionalPredicateValueDefnumberExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefnumberExprRef", + Union["ConditionalParameterValueDefnumberExprRef", dict], + Union["ConditionalPredicateValueDefnumberExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union["Legend", dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionMarkPropFieldDefnumber, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class OffsetDef(VegaLiteSchema): """OffsetDef schema wrapper - anyOf(:class:`ScaleFieldDef`, :class:`ScaleDatumDef`, :class:`ValueDefnumber`) + :class:`OffsetDef`, :class:`ScaleDatumDef`, Dict, :class:`ScaleFieldDef`, + Dict[required=[shorthand]], :class:`ValueDefnumber`, Dict[required=[value]] """ - _schema = {'$ref': '#/definitions/OffsetDef'} + + _schema = {"$ref": "#/definitions/OffsetDef"} def __init__(self, *args, **kwds): super(OffsetDef, self).__init__(*args, **kwds) @@ -11166,12 +29669,14 @@ def __init__(self, *args, **kwds): class OrderFieldDef(VegaLiteSchema): """OrderFieldDef schema wrapper - Mapping(required=[]) + :class:`OrderFieldDef`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -11183,7 +29688,7 @@ class OrderFieldDef(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -11204,7 +29709,7 @@ class OrderFieldDef(VegaLiteSchema): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -11219,9 +29724,9 @@ class OrderFieldDef(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - sort : :class:`SortOrder` + sort : :class:`SortOrder`, Literal['ascending', 'descending'] The sort order. One of ``"ascending"`` (default) or ``"descending"``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -11230,7 +29735,7 @@ class OrderFieldDef(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -11250,7 +29755,7 @@ class OrderFieldDef(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -11320,45 +29825,272 @@ class OrderFieldDef(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/OrderFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(OrderFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, sort=sort, timeUnit=timeUnit, title=title, - type=type, **kwds) + _schema = {"$ref": "#/definitions/OrderFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + sort: Union[ + Union["SortOrder", Literal["ascending", "descending"]], UndefinedType + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(OrderFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class OrderOnlyDef(VegaLiteSchema): """OrderOnlyDef schema wrapper - Mapping(required=[]) + :class:`OrderOnlyDef`, Dict Parameters ---------- - sort : :class:`SortOrder` + sort : :class:`SortOrder`, Literal['ascending', 'descending'] The sort order. One of ``"ascending"`` (default) or ``"descending"``. """ - _schema = {'$ref': '#/definitions/OrderOnlyDef'} - def __init__(self, sort=Undefined, **kwds): + _schema = {"$ref": "#/definitions/OrderOnlyDef"} + + def __init__( + self, + sort: Union[ + Union["SortOrder", Literal["ascending", "descending"]], UndefinedType + ] = Undefined, + **kwds, + ): super(OrderOnlyDef, self).__init__(sort=sort, **kwds) class OrderValueDef(VegaLiteSchema): """OrderValueDef schema wrapper - Mapping(required=[value]) + :class:`OrderValueDef`, Dict[required=[value]] Parameters ---------- - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). - condition : anyOf(:class:`ConditionalValueDefnumber`, List(:class:`ConditionalValueDefnumber`)) + condition : :class:`ConditionalParameterValueDefnumber`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumber`, Dict[required=[test, value]], :class:`ConditionalValueDefnumber`, Sequence[:class:`ConditionalParameterValueDefnumber`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumber`, Dict[required=[test, value]], :class:`ConditionalValueDefnumber`] One or more value definition(s) with `a parameter or a test predicate `__. @@ -11366,18 +30098,43 @@ class OrderValueDef(VegaLiteSchema): value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. """ - _schema = {'$ref': '#/definitions/OrderValueDef'} - def __init__(self, value=Undefined, condition=Undefined, **kwds): + _schema = {"$ref": "#/definitions/OrderValueDef"} + + def __init__( + self, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumber", + Union["ConditionalParameterValueDefnumber", dict], + Union["ConditionalPredicateValueDefnumber", dict], + ] + ], + Union[ + "ConditionalValueDefnumber", + Union["ConditionalParameterValueDefnumber", dict], + Union["ConditionalPredicateValueDefnumber", dict], + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(OrderValueDef, self).__init__(value=value, condition=condition, **kwds) class Orient(VegaLiteSchema): """Orient schema wrapper - enum('left', 'right', 'top', 'bottom') + :class:`Orient`, Literal['left', 'right', 'top', 'bottom'] """ - _schema = {'$ref': '#/definitions/Orient'} + + _schema = {"$ref": "#/definitions/Orient"} def __init__(self, *args): super(Orient, self).__init__(*args) @@ -11386,9 +30143,10 @@ def __init__(self, *args): class Orientation(VegaLiteSchema): """Orientation schema wrapper - enum('horizontal', 'vertical') + :class:`Orientation`, Literal['horizontal', 'vertical'] """ - _schema = {'$ref': '#/definitions/Orientation'} + + _schema = {"$ref": "#/definitions/Orientation"} def __init__(self, *args): super(Orientation, self).__init__(*args) @@ -11397,37 +30155,37 @@ def __init__(self, *args): class OverlayMarkDef(VegaLiteSchema): """OverlayMarkDef schema wrapper - Mapping(required=[]) + :class:`OverlayMarkDef`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -11438,15 +30196,15 @@ class OverlayMarkDef(VegaLiteSchema): ``"middle"``, ``"bottom"``. **Note:** Expression reference is *not* supported for range marks. - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - clip : boolean + clip : bool Whether a mark be clipped to the enclosing group’s width and height. - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -11459,63 +30217,63 @@ class OverlayMarkDef(VegaLiteSchema): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -11525,28 +30283,28 @@ class OverlayMarkDef(VegaLiteSchema): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -11568,7 +30326,7 @@ class OverlayMarkDef(VegaLiteSchema): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -11577,26 +30335,26 @@ class OverlayMarkDef(VegaLiteSchema): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -11608,28 +30366,28 @@ class OverlayMarkDef(VegaLiteSchema): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - radius2Offset : anyOf(float, :class:`ExprRef`) + radius2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for radius2. - radiusOffset : anyOf(float, :class:`ExprRef`) + radiusOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for radius. - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -11644,7 +30402,7 @@ class OverlayMarkDef(VegaLiteSchema): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -11661,45 +30419,45 @@ class OverlayMarkDef(VegaLiteSchema): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - style : anyOf(string, List(string)) + style : Sequence[str], str A string or array of strings indicating the name of custom styles to apply to the mark. A style is a named collection of mark property defaults defined within the `style configuration @@ -11713,23 +30471,23 @@ class OverlayMarkDef(VegaLiteSchema): For example, a bar mark with ``"style": "foo"`` will receive from ``config.style.bar`` and ``config.style.foo`` (the specified style ``"foo"`` has higher precedence). - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. - theta2Offset : anyOf(float, :class:`ExprRef`) + theta2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for theta2. - thetaOffset : anyOf(float, :class:`ExprRef`) + thetaOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for theta. timeUnitBandPosition : float Default relative band position for a time unit. If set to ``0``, the marks will be @@ -11739,7 +30497,7 @@ class OverlayMarkDef(VegaLiteSchema): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -11754,104 +30512,1016 @@ class OverlayMarkDef(VegaLiteSchema): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2Offset : anyOf(float, :class:`ExprRef`) + x2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for x2-position. - xOffset : anyOf(float, :class:`ExprRef`) + xOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for x-position. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2Offset : anyOf(float, :class:`ExprRef`) + y2Offset : :class:`ExprRef`, Dict[required=[expr]], float Offset for y2-position. - yOffset : anyOf(float, :class:`ExprRef`) + yOffset : :class:`ExprRef`, Dict[required=[expr]], float Offset for y-position. """ - _schema = {'$ref': '#/definitions/OverlayMarkDef'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, blend=Undefined, - clip=Undefined, color=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusTopLeft=Undefined, cornerRadiusTopRight=Undefined, cursor=Undefined, - description=Undefined, dir=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, - endAngle=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, lineBreak=Undefined, lineHeight=Undefined, - opacity=Undefined, order=Undefined, orient=Undefined, outerRadius=Undefined, - padAngle=Undefined, radius=Undefined, radius2=Undefined, radius2Offset=Undefined, - radiusOffset=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - startAngle=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - style=Undefined, tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, - theta2Offset=Undefined, thetaOffset=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=Undefined, **kwds): - super(OverlayMarkDef, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - baseline=baseline, blend=blend, clip=clip, color=color, - cornerRadius=cornerRadius, - cornerRadiusBottomLeft=cornerRadiusBottomLeft, - cornerRadiusBottomRight=cornerRadiusBottomRight, - cornerRadiusTopLeft=cornerRadiusTopLeft, - cornerRadiusTopRight=cornerRadiusTopRight, cursor=cursor, - description=description, dir=dir, dx=dx, dy=dy, - ellipsis=ellipsis, endAngle=endAngle, 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, lineBreak=lineBreak, - lineHeight=lineHeight, opacity=opacity, order=order, - orient=orient, outerRadius=outerRadius, padAngle=padAngle, - radius=radius, radius2=radius2, - radius2Offset=radius2Offset, radiusOffset=radiusOffset, - shape=shape, size=size, smooth=smooth, - startAngle=startAngle, 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, - 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) + + _schema = {"$ref": "#/definitions/OverlayMarkDef"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + clip: Union[bool, UndefinedType] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radiusOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + thetaOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + timeUnitBandPosition: Union[float, UndefinedType] = Undefined, + timeUnitBandSize: Union[float, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + xOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2Offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + yOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(OverlayMarkDef, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + baseline=baseline, + blend=blend, + clip=clip, + color=color, + cornerRadius=cornerRadius, + cornerRadiusBottomLeft=cornerRadiusBottomLeft, + cornerRadiusBottomRight=cornerRadiusBottomRight, + cornerRadiusTopLeft=cornerRadiusTopLeft, + cornerRadiusTopRight=cornerRadiusTopRight, + cursor=cursor, + description=description, + dir=dir, + dx=dx, + dy=dy, + ellipsis=ellipsis, + endAngle=endAngle, + 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, + lineBreak=lineBreak, + lineHeight=lineHeight, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + radius=radius, + radius2=radius2, + radius2Offset=radius2Offset, + radiusOffset=radiusOffset, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + 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, + 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, + ) class Padding(VegaLiteSchema): """Padding schema wrapper - anyOf(float, Mapping(required=[])) + :class:`Padding`, Dict, float """ - _schema = {'$ref': '#/definitions/Padding'} + + _schema = {"$ref": "#/definitions/Padding"} def __init__(self, *args, **kwds): super(Padding, self).__init__(*args, **kwds) @@ -11860,9 +31530,10 @@ def __init__(self, *args, **kwds): class ParameterExtent(BinExtent): """ParameterExtent schema wrapper - anyOf(Mapping(required=[param]), Mapping(required=[param])) + :class:`ParameterExtent`, Dict[required=[param]] """ - _schema = {'$ref': '#/definitions/ParameterExtent'} + + _schema = {"$ref": "#/definitions/ParameterExtent"} def __init__(self, *args, **kwds): super(ParameterExtent, self).__init__(*args, **kwds) @@ -11871,9 +31542,10 @@ def __init__(self, *args, **kwds): class ParameterName(VegaLiteSchema): """ParameterName schema wrapper - string + :class:`ParameterName`, str """ - _schema = {'$ref': '#/definitions/ParameterName'} + + _schema = {"$ref": "#/definitions/ParameterName"} def __init__(self, *args): super(ParameterName, self).__init__(*args) @@ -11882,9 +31554,10 @@ def __init__(self, *args): class Parse(VegaLiteSchema): """Parse schema wrapper - Mapping(required=[]) + :class:`Parse`, Dict """ - _schema = {'$ref': '#/definitions/Parse'} + + _schema = {"$ref": "#/definitions/Parse"} def __init__(self, **kwds): super(Parse, self).__init__(**kwds) @@ -11893,9 +31566,10 @@ def __init__(self, **kwds): class ParseValue(VegaLiteSchema): """ParseValue schema wrapper - anyOf(None, string, string, string, string, string) + :class:`ParseValue`, None, str """ - _schema = {'$ref': '#/definitions/ParseValue'} + + _schema = {"$ref": "#/definitions/ParseValue"} def __init__(self, *args, **kwds): super(ParseValue, self).__init__(*args, **kwds) @@ -11904,39 +31578,50 @@ def __init__(self, *args, **kwds): class Point(Geometry): """Point schema wrapper - Mapping(required=[coordinates, type]) + :class:`Point`, Dict[required=[coordinates, type]] Point geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.2 Parameters ---------- - coordinates : :class:`Position` + coordinates : :class:`Position`, Sequence[float] A Position is an array of coordinates. https://tools.ietf.org/html/rfc7946#section-3.1.1 Array should contain between two and three elements. The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values), but the current specification only allows X, Y, and (optionally) Z to be defined. - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/Point'} - def __init__(self, coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(Point, self).__init__(coordinates=coordinates, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/Point"} + + def __init__( + self, + coordinates: Union[ + Union["Position", Sequence[float]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(Point, self).__init__( + coordinates=coordinates, type=type, bbox=bbox, **kwds + ) class PointSelectionConfig(VegaLiteSchema): """PointSelectionConfig schema wrapper - Mapping(required=[type]) + :class:`PointSelectionConfig`, Dict[required=[type]] Parameters ---------- - type : string + type : str Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types: @@ -11944,7 +31629,7 @@ class PointSelectionConfig(VegaLiteSchema): * ``"point"`` -- to select multiple discrete data values; the first value is selected on ``click`` and additional values toggled on shift-click. * ``"interval"`` -- to select a continuous range of data values on ``drag``. - clear : anyOf(:class:`Stream`, string, boolean) + clear : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, bool, str Clears the selection, emptying it of all values. This property can be a `Event Stream `__ or ``false`` to disable clear. @@ -11954,21 +31639,21 @@ class PointSelectionConfig(VegaLiteSchema): **See also:** `clear examples `__ in the documentation. - encodings : List(:class:`SingleDefUnitChannel`) + encodings : Sequence[:class:`SingleDefUnitChannel`, Literal['x', 'y', 'xOffset', 'yOffset', 'x2', 'y2', 'longitude', 'latitude', 'longitude2', 'latitude2', 'theta', 'theta2', 'radius', 'radius2', 'color', 'fill', 'stroke', 'opacity', 'fillOpacity', 'strokeOpacity', 'strokeWidth', 'strokeDash', 'size', 'angle', 'shape', 'key', 'text', 'href', 'url', 'description']] An array of encoding channels. The corresponding data field values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - fields : List(:class:`FieldName`) + fields : Sequence[:class:`FieldName`, str] An array of field names whose values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - nearest : boolean + nearest : bool When true, an invisible voronoi diagram is computed to accelerate discrete selection. The data value *nearest* the mouse cursor is added to the selection. @@ -11977,7 +31662,7 @@ class PointSelectionConfig(VegaLiteSchema): **See also:** `nearest examples `__ documentation. - on : anyOf(:class:`Stream`, string) + on : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, str A `Vega event stream `__ (object or selector) that triggers the selection. For interval selections, the event stream must specify a `start and end @@ -11985,7 +31670,7 @@ class PointSelectionConfig(VegaLiteSchema): **See also:** `on examples `__ in the documentation. - resolve : :class:`SelectionResolution` + resolve : :class:`SelectionResolution`, Literal['global', 'union', 'intersect'] With layered and multi-view displays, a strategy that determines how selections' data queries are resolved when applied in a filter transform, conditional encoding rule, or scale domain. @@ -12005,7 +31690,7 @@ class PointSelectionConfig(VegaLiteSchema): **See also:** `resolve examples `__ in the documentation. - toggle : anyOf(string, boolean) + toggle : bool, str Controls whether data values should be toggled (inserted or removed from a point selection) or only ever inserted into point selections. @@ -12030,24 +31715,108 @@ class PointSelectionConfig(VegaLiteSchema): `__ in the documentation. """ - _schema = {'$ref': '#/definitions/PointSelectionConfig'} - def __init__(self, type=Undefined, clear=Undefined, encodings=Undefined, fields=Undefined, - nearest=Undefined, on=Undefined, resolve=Undefined, toggle=Undefined, **kwds): - super(PointSelectionConfig, self).__init__(type=type, clear=clear, encodings=encodings, - fields=fields, nearest=nearest, on=on, - resolve=resolve, toggle=toggle, **kwds) + _schema = {"$ref": "#/definitions/PointSelectionConfig"} + + def __init__( + self, + type: Union[str, UndefinedType] = Undefined, + clear: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + bool, + str, + ], + UndefinedType, + ] = Undefined, + encodings: Union[ + Sequence[ + Union[ + "SingleDefUnitChannel", + Literal[ + "x", + "y", + "xOffset", + "yOffset", + "x2", + "y2", + "longitude", + "latitude", + "longitude2", + "latitude2", + "theta", + "theta2", + "radius", + "radius2", + "color", + "fill", + "stroke", + "opacity", + "fillOpacity", + "strokeOpacity", + "strokeWidth", + "strokeDash", + "size", + "angle", + "shape", + "key", + "text", + "href", + "url", + "description", + ], + ] + ], + UndefinedType, + ] = Undefined, + fields: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + nearest: Union[bool, UndefinedType] = Undefined, + on: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + resolve: Union[ + Union["SelectionResolution", Literal["global", "union", "intersect"]], + UndefinedType, + ] = Undefined, + toggle: Union[Union[bool, str], UndefinedType] = Undefined, + **kwds, + ): + super(PointSelectionConfig, self).__init__( + type=type, + clear=clear, + encodings=encodings, + fields=fields, + nearest=nearest, + on=on, + resolve=resolve, + toggle=toggle, + **kwds, + ) class PointSelectionConfigWithoutType(VegaLiteSchema): """PointSelectionConfigWithoutType schema wrapper - Mapping(required=[]) + :class:`PointSelectionConfigWithoutType`, Dict Parameters ---------- - clear : anyOf(:class:`Stream`, string, boolean) + clear : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, bool, str Clears the selection, emptying it of all values. This property can be a `Event Stream `__ or ``false`` to disable clear. @@ -12057,21 +31826,21 @@ class PointSelectionConfigWithoutType(VegaLiteSchema): **See also:** `clear examples `__ in the documentation. - encodings : List(:class:`SingleDefUnitChannel`) + encodings : Sequence[:class:`SingleDefUnitChannel`, Literal['x', 'y', 'xOffset', 'yOffset', 'x2', 'y2', 'longitude', 'latitude', 'longitude2', 'latitude2', 'theta', 'theta2', 'radius', 'radius2', 'color', 'fill', 'stroke', 'opacity', 'fillOpacity', 'strokeOpacity', 'strokeWidth', 'strokeDash', 'size', 'angle', 'shape', 'key', 'text', 'href', 'url', 'description']] An array of encoding channels. The corresponding data field values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - fields : List(:class:`FieldName`) + fields : Sequence[:class:`FieldName`, str] An array of field names whose values must match for a data tuple to fall within the selection. **See also:** The `projection with encodings and fields section `__ in the documentation. - nearest : boolean + nearest : bool When true, an invisible voronoi diagram is computed to accelerate discrete selection. The data value *nearest* the mouse cursor is added to the selection. @@ -12080,7 +31849,7 @@ class PointSelectionConfigWithoutType(VegaLiteSchema): **See also:** `nearest examples `__ documentation. - on : anyOf(:class:`Stream`, string) + on : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`, str A `Vega event stream `__ (object or selector) that triggers the selection. For interval selections, the event stream must specify a `start and end @@ -12088,7 +31857,7 @@ class PointSelectionConfigWithoutType(VegaLiteSchema): **See also:** `on examples `__ in the documentation. - resolve : :class:`SelectionResolution` + resolve : :class:`SelectionResolution`, Literal['global', 'union', 'intersect'] With layered and multi-view displays, a strategy that determines how selections' data queries are resolved when applied in a filter transform, conditional encoding rule, or scale domain. @@ -12108,7 +31877,7 @@ class PointSelectionConfigWithoutType(VegaLiteSchema): **See also:** `resolve examples `__ in the documentation. - toggle : anyOf(string, boolean) + toggle : bool, str Controls whether data values should be toggled (inserted or removed from a point selection) or only ever inserted into point selections. @@ -12133,22 +31902,105 @@ class PointSelectionConfigWithoutType(VegaLiteSchema): `__ in the documentation. """ - _schema = {'$ref': '#/definitions/PointSelectionConfigWithoutType'} - def __init__(self, clear=Undefined, encodings=Undefined, fields=Undefined, nearest=Undefined, - on=Undefined, resolve=Undefined, toggle=Undefined, **kwds): - super(PointSelectionConfigWithoutType, self).__init__(clear=clear, encodings=encodings, - fields=fields, nearest=nearest, on=on, - resolve=resolve, toggle=toggle, **kwds) + _schema = {"$ref": "#/definitions/PointSelectionConfigWithoutType"} + + def __init__( + self, + clear: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + bool, + str, + ], + UndefinedType, + ] = Undefined, + encodings: Union[ + Sequence[ + Union[ + "SingleDefUnitChannel", + Literal[ + "x", + "y", + "xOffset", + "yOffset", + "x2", + "y2", + "longitude", + "latitude", + "longitude2", + "latitude2", + "theta", + "theta2", + "radius", + "radius2", + "color", + "fill", + "stroke", + "opacity", + "fillOpacity", + "strokeOpacity", + "strokeWidth", + "strokeDash", + "size", + "angle", + "shape", + "key", + "text", + "href", + "url", + "description", + ], + ] + ], + UndefinedType, + ] = Undefined, + fields: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + nearest: Union[bool, UndefinedType] = Undefined, + on: Union[ + Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + resolve: Union[ + Union["SelectionResolution", Literal["global", "union", "intersect"]], + UndefinedType, + ] = Undefined, + toggle: Union[Union[bool, str], UndefinedType] = Undefined, + **kwds, + ): + super(PointSelectionConfigWithoutType, self).__init__( + clear=clear, + encodings=encodings, + fields=fields, + nearest=nearest, + on=on, + resolve=resolve, + toggle=toggle, + **kwds, + ) class PolarDef(VegaLiteSchema): """PolarDef schema wrapper - anyOf(:class:`PositionFieldDefBase`, :class:`PositionDatumDefBase`, - :class:`PositionValueDef`) + :class:`PolarDef`, :class:`PositionDatumDefBase`, Dict, :class:`PositionFieldDefBase`, + Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] """ - _schema = {'$ref': '#/definitions/PolarDef'} + + _schema = {"$ref": "#/definitions/PolarDef"} def __init__(self, *args, **kwds): super(PolarDef, self).__init__(*args, **kwds) @@ -12157,36 +32009,48 @@ def __init__(self, *args, **kwds): class Polygon(Geometry): """Polygon schema wrapper - Mapping(required=[coordinates, type]) + :class:`Polygon`, Dict[required=[coordinates, type]] Polygon geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.6 Parameters ---------- - coordinates : List(List(:class:`Position`)) + coordinates : Sequence[Sequence[:class:`Position`, Sequence[float]]] - type : string + type : str Specifies the type of GeoJSON object. - bbox : :class:`BBox` + bbox : :class:`BBox`, Sequence[float] Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. https://tools.ietf.org/html/rfc7946#section-5 """ - _schema = {'$ref': '#/definitions/Polygon'} - def __init__(self, coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds): - super(Polygon, self).__init__(coordinates=coordinates, type=type, bbox=bbox, **kwds) + _schema = {"$ref": "#/definitions/Polygon"} + + def __init__( + self, + coordinates: Union[ + Sequence[Sequence[Union["Position", Sequence[float]]]], UndefinedType + ] = Undefined, + type: Union[str, UndefinedType] = Undefined, + bbox: Union[Union["BBox", Sequence[float]], UndefinedType] = Undefined, + **kwds, + ): + super(Polygon, self).__init__( + coordinates=coordinates, type=type, bbox=bbox, **kwds + ) class Position(VegaLiteSchema): """Position schema wrapper - List(float) + :class:`Position`, Sequence[float] A Position is an array of coordinates. https://tools.ietf.org/html/rfc7946#section-3.1.1 Array should contain between two and three elements. The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values), but the current specification only allows X, Y, and (optionally) Z to be defined. """ - _schema = {'$ref': '#/definitions/Position'} + + _schema = {"$ref": "#/definitions/Position"} def __init__(self, *args): super(Position, self).__init__(*args) @@ -12195,9 +32059,11 @@ def __init__(self, *args): class Position2Def(VegaLiteSchema): """Position2Def schema wrapper - anyOf(:class:`SecondaryFieldDef`, :class:`DatumDef`, :class:`PositionValueDef`) + :class:`DatumDef`, Dict, :class:`Position2Def`, :class:`PositionValueDef`, + Dict[required=[value]], :class:`SecondaryFieldDef`, Dict[required=[shorthand]] """ - _schema = {'$ref': '#/definitions/Position2Def'} + + _schema = {"$ref": "#/definitions/Position2Def"} def __init__(self, *args, **kwds): super(Position2Def, self).__init__(*args, **kwds) @@ -12206,7 +32072,7 @@ def __init__(self, *args, **kwds): class DatumDef(LatLongDef, Position2Def): """DatumDef schema wrapper - Mapping(required=[]) + :class:`DatumDef`, Dict Parameters ---------- @@ -12215,9 +32081,9 @@ class DatumDef(LatLongDef, Position2Def): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12237,7 +32103,7 @@ class DatumDef(LatLongDef, Position2Def): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12307,17 +32173,42 @@ class DatumDef(LatLongDef, Position2Def): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/DatumDef'} - def __init__(self, bandPosition=Undefined, datum=Undefined, title=Undefined, type=Undefined, **kwds): - super(DatumDef, self).__init__(bandPosition=bandPosition, datum=datum, title=title, type=type, - **kwds) + _schema = {"$ref": "#/definitions/DatumDef"} + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(DatumDef, self).__init__( + bandPosition=bandPosition, datum=datum, title=title, type=type, **kwds + ) class PositionDatumDefBase(PolarDef): """PositionDatumDefBase schema wrapper - Mapping(required=[]) + :class:`PositionDatumDefBase`, Dict Parameters ---------- @@ -12326,9 +32217,9 @@ class PositionDatumDefBase(PolarDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -12341,7 +32232,7 @@ class PositionDatumDefBase(PolarDef): **See also:** `scale `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -12372,7 +32263,7 @@ class PositionDatumDefBase(PolarDef): **See also:** `stack `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12392,7 +32283,7 @@ class PositionDatumDefBase(PolarDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12462,20 +32353,59 @@ class PositionDatumDefBase(PolarDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/PositionDatumDefBase'} - def __init__(self, bandPosition=Undefined, datum=Undefined, scale=Undefined, stack=Undefined, - title=Undefined, type=Undefined, **kwds): - super(PositionDatumDefBase, self).__init__(bandPosition=bandPosition, datum=datum, scale=scale, - stack=stack, title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/PositionDatumDefBase"} + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + stack: Union[ + Union[ + None, Union["StackOffset", Literal["zero", "center", "normalize"]], bool + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(PositionDatumDefBase, self).__init__( + bandPosition=bandPosition, + datum=datum, + scale=scale, + stack=stack, + title=title, + type=type, + **kwds, + ) class PositionDef(VegaLiteSchema): """PositionDef schema wrapper - anyOf(:class:`PositionFieldDef`, :class:`PositionDatumDef`, :class:`PositionValueDef`) + :class:`PositionDatumDef`, Dict, :class:`PositionDef`, :class:`PositionFieldDef`, + Dict[required=[shorthand]], :class:`PositionValueDef`, Dict[required=[value]] """ - _schema = {'$ref': '#/definitions/PositionDef'} + + _schema = {"$ref": "#/definitions/PositionDef"} def __init__(self, *args, **kwds): super(PositionDef, self).__init__(*args, **kwds) @@ -12484,12 +32414,12 @@ def __init__(self, *args, **kwds): class PositionDatumDef(PositionDef): """PositionDatumDef schema wrapper - Mapping(required=[]) + :class:`PositionDatumDef`, Dict Parameters ---------- - axis : anyOf(:class:`Axis`, None) + axis : :class:`Axis`, Dict, None An object defining properties of axis's gridlines, ticks and labels. If ``null``, the axis for the encoding channel will be removed. @@ -12502,9 +32432,9 @@ class PositionDatumDef(PositionDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - impute : anyOf(:class:`ImputeParams`, None) + impute : :class:`ImputeParams`, Dict, None An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as ``key`` of the ``Impute`` Operation. The field of the ``color`` channel if specified is used as ``groupby`` of @@ -12512,7 +32442,7 @@ class PositionDatumDef(PositionDef): **See also:** `impute `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -12525,7 +32455,7 @@ class PositionDatumDef(PositionDef): **See also:** `scale `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -12556,7 +32486,7 @@ class PositionDatumDef(PositionDef): **See also:** `stack `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12576,7 +32506,7 @@ class PositionDatumDef(PositionDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12646,24 +32576,68 @@ class PositionDatumDef(PositionDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/PositionDatumDef'} - def __init__(self, axis=Undefined, bandPosition=Undefined, datum=Undefined, impute=Undefined, - scale=Undefined, stack=Undefined, title=Undefined, type=Undefined, **kwds): - super(PositionDatumDef, self).__init__(axis=axis, bandPosition=bandPosition, datum=datum, - impute=impute, scale=scale, stack=stack, title=title, - type=type, **kwds) + _schema = {"$ref": "#/definitions/PositionDatumDef"} + + def __init__( + self, + axis: Union[Union[None, Union["Axis", dict]], UndefinedType] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + impute: Union[ + Union[None, Union["ImputeParams", dict]], UndefinedType + ] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + stack: Union[ + Union[ + None, Union["StackOffset", Literal["zero", "center", "normalize"]], bool + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(PositionDatumDef, self).__init__( + axis=axis, + bandPosition=bandPosition, + datum=datum, + impute=impute, + scale=scale, + stack=stack, + title=title, + type=type, + **kwds, + ) class PositionFieldDef(PositionDef): """PositionFieldDef schema wrapper - Mapping(required=[]) + :class:`PositionFieldDef`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -12671,7 +32645,7 @@ class PositionFieldDef(PositionDef): **See also:** `aggregate `__ documentation. - axis : anyOf(:class:`Axis`, None) + axis : :class:`Axis`, Dict, None An object defining properties of axis's gridlines, ticks and labels. If ``null``, the axis for the encoding channel will be removed. @@ -12684,7 +32658,7 @@ class PositionFieldDef(PositionDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -12705,7 +32679,7 @@ class PositionFieldDef(PositionDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -12720,7 +32694,7 @@ class PositionFieldDef(PositionDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - impute : anyOf(:class:`ImputeParams`, None) + impute : :class:`ImputeParams`, Dict, None An object defining the properties of the Impute Operation to be applied. The field value of the other positional channel is taken as ``key`` of the ``Impute`` Operation. The field of the ``color`` channel if specified is used as ``groupby`` of @@ -12728,7 +32702,7 @@ class PositionFieldDef(PositionDef): **See also:** `impute `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -12741,7 +32715,7 @@ class PositionFieldDef(PositionDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -12780,7 +32754,7 @@ class PositionFieldDef(PositionDef): **See also:** `sort `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -12811,7 +32785,7 @@ class PositionFieldDef(PositionDef): **See also:** `stack `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -12820,7 +32794,7 @@ class PositionFieldDef(PositionDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -12840,7 +32814,7 @@ class PositionFieldDef(PositionDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -12910,26 +32884,312 @@ class PositionFieldDef(PositionDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/PositionFieldDef'} - def __init__(self, aggregate=Undefined, axis=Undefined, bandPosition=Undefined, bin=Undefined, - field=Undefined, impute=Undefined, scale=Undefined, sort=Undefined, stack=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(PositionFieldDef, self).__init__(aggregate=aggregate, axis=axis, - bandPosition=bandPosition, bin=bin, field=field, - impute=impute, scale=scale, sort=sort, stack=stack, - timeUnit=timeUnit, title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/PositionFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + axis: Union[Union[None, Union["Axis", dict]], UndefinedType] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + impute: Union[ + Union[None, Union["ImputeParams", dict]], UndefinedType + ] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + stack: Union[ + Union[ + None, Union["StackOffset", Literal["zero", "center", "normalize"]], bool + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(PositionFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + axis=axis, + bandPosition=bandPosition, + bin=bin, + field=field, + impute=impute, + scale=scale, + sort=sort, + stack=stack, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class PositionFieldDefBase(PolarDef): """PositionFieldDefBase schema wrapper - Mapping(required=[]) + :class:`PositionFieldDefBase`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -12941,7 +33201,7 @@ class PositionFieldDefBase(PolarDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -12962,7 +33222,7 @@ class PositionFieldDefBase(PolarDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -12977,7 +33237,7 @@ class PositionFieldDefBase(PolarDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -12990,7 +33250,7 @@ class PositionFieldDefBase(PolarDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -13029,7 +33289,7 @@ class PositionFieldDefBase(PolarDef): **See also:** `sort `__ documentation. - stack : anyOf(:class:`StackOffset`, None, boolean) + stack : :class:`StackOffset`, Literal['zero', 'center', 'normalize'], None, bool Type of stacking offset if the field should be stacked. ``stack`` is only applicable for ``x``, ``y``, ``theta``, and ``radius`` channels with continuous domains. For example, ``stack`` of ``y`` can be used to customize stacking for a vertical bar @@ -13060,7 +33320,7 @@ class PositionFieldDefBase(PolarDef): **See also:** `stack `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -13069,7 +33329,7 @@ class PositionFieldDefBase(PolarDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -13089,7 +33349,7 @@ class PositionFieldDefBase(PolarDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -13159,45 +33419,338 @@ class PositionFieldDefBase(PolarDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/PositionFieldDefBase'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - scale=Undefined, sort=Undefined, stack=Undefined, timeUnit=Undefined, title=Undefined, - type=Undefined, **kwds): - super(PositionFieldDefBase, self).__init__(aggregate=aggregate, bandPosition=bandPosition, - bin=bin, field=field, scale=scale, sort=sort, - stack=stack, timeUnit=timeUnit, title=title, - type=type, **kwds) + _schema = {"$ref": "#/definitions/PositionFieldDefBase"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + stack: Union[ + Union[ + None, Union["StackOffset", Literal["zero", "center", "normalize"]], bool + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(PositionFieldDefBase, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + scale=scale, + sort=sort, + stack=stack, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class PositionValueDef(PolarDef, Position2Def, PositionDef): """PositionValueDef schema wrapper - Mapping(required=[value]) + :class:`PositionValueDef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/PositionValueDef'} - def __init__(self, value=Undefined, **kwds): + _schema = {"$ref": "#/definitions/PositionValueDef"} + + def __init__( + self, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): super(PositionValueDef, self).__init__(value=value, **kwds) class PredicateComposition(VegaLiteSchema): """PredicateComposition schema wrapper - anyOf(:class:`LogicalNotPredicate`, :class:`LogicalAndPredicate`, - :class:`LogicalOrPredicate`, :class:`Predicate`) + :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, + Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], + :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, + Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], + :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, + Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], + :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], + :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, + Dict[required=[or]], :class:`PredicateComposition` """ - _schema = {'$ref': '#/definitions/PredicateComposition'} + + _schema = {"$ref": "#/definitions/PredicateComposition"} def __init__(self, *args, **kwds): super(PredicateComposition, self).__init__(*args, **kwds) @@ -13206,15 +33759,16 @@ def __init__(self, *args, **kwds): class LogicalAndPredicate(PredicateComposition): """LogicalAndPredicate schema wrapper - Mapping(required=[and]) + :class:`LogicalAndPredicate`, Dict[required=[and]] Parameters ---------- - and : List(:class:`PredicateComposition`) + and : Sequence[:class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition`] """ - _schema = {'$ref': '#/definitions/LogicalAnd'} + + _schema = {"$ref": "#/definitions/LogicalAnd"} def __init__(self, **kwds): super(LogicalAndPredicate, self).__init__(**kwds) @@ -13223,15 +33777,16 @@ def __init__(self, **kwds): class LogicalNotPredicate(PredicateComposition): """LogicalNotPredicate schema wrapper - Mapping(required=[not]) + :class:`LogicalNotPredicate`, Dict[required=[not]] Parameters ---------- - not : :class:`PredicateComposition` + not : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` """ - _schema = {'$ref': '#/definitions/LogicalNot'} + + _schema = {"$ref": "#/definitions/LogicalNot"} def __init__(self, **kwds): super(LogicalNotPredicate, self).__init__(**kwds) @@ -13240,15 +33795,16 @@ def __init__(self, **kwds): class LogicalOrPredicate(PredicateComposition): """LogicalOrPredicate schema wrapper - Mapping(required=[or]) + :class:`LogicalOrPredicate`, Dict[required=[or]] Parameters ---------- - or : List(:class:`PredicateComposition`) + or : Sequence[:class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition`] """ - _schema = {'$ref': '#/definitions/LogicalOr'} + + _schema = {"$ref": "#/definitions/LogicalOr"} def __init__(self, **kwds): super(LogicalOrPredicate, self).__init__(**kwds) @@ -13257,12 +33813,16 @@ def __init__(self, **kwds): class Predicate(PredicateComposition): """Predicate schema wrapper - anyOf(:class:`FieldEqualPredicate`, :class:`FieldRangePredicate`, - :class:`FieldOneOfPredicate`, :class:`FieldLTPredicate`, :class:`FieldGTPredicate`, - :class:`FieldLTEPredicate`, :class:`FieldGTEPredicate`, :class:`FieldValidPredicate`, - :class:`ParameterPredicate`, string) + :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, + Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], + :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, + Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], + :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, + Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], + :class:`Predicate`, str """ - _schema = {'$ref': '#/definitions/Predicate'} + + _schema = {"$ref": "#/definitions/Predicate"} def __init__(self, *args, **kwds): super(Predicate, self).__init__(*args, **kwds) @@ -13271,297 +33831,1629 @@ def __init__(self, *args, **kwds): class FieldEqualPredicate(Predicate): """FieldEqualPredicate schema wrapper - Mapping(required=[equal, field]) + :class:`FieldEqualPredicate`, Dict[required=[equal, field]] Parameters ---------- - equal : anyOf(string, float, boolean, :class:`DateTime`, :class:`ExprRef`) + equal : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], bool, float, str The value that the field should be equal to. - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldEqualPredicate'} - def __init__(self, equal=Undefined, field=Undefined, timeUnit=Undefined, **kwds): - super(FieldEqualPredicate, self).__init__(equal=equal, field=field, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldEqualPredicate"} + + def __init__( + self, + equal: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldEqualPredicate, self).__init__( + equal=equal, field=field, timeUnit=timeUnit, **kwds + ) class FieldGTEPredicate(Predicate): """FieldGTEPredicate schema wrapper - Mapping(required=[field, gte]) + :class:`FieldGTEPredicate`, Dict[required=[field, gte]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - gte : anyOf(string, float, :class:`DateTime`, :class:`ExprRef`) + gte : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], float, str The value that the field should be greater than or equals to. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldGTEPredicate'} - def __init__(self, field=Undefined, gte=Undefined, timeUnit=Undefined, **kwds): - super(FieldGTEPredicate, self).__init__(field=field, gte=gte, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldGTEPredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + gte: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + float, + str, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldGTEPredicate, self).__init__( + field=field, gte=gte, timeUnit=timeUnit, **kwds + ) class FieldGTPredicate(Predicate): """FieldGTPredicate schema wrapper - Mapping(required=[field, gt]) + :class:`FieldGTPredicate`, Dict[required=[field, gt]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - gt : anyOf(string, float, :class:`DateTime`, :class:`ExprRef`) + gt : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], float, str The value that the field should be greater than. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldGTPredicate'} - def __init__(self, field=Undefined, gt=Undefined, timeUnit=Undefined, **kwds): - super(FieldGTPredicate, self).__init__(field=field, gt=gt, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldGTPredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + gt: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + float, + str, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldGTPredicate, self).__init__( + field=field, gt=gt, timeUnit=timeUnit, **kwds + ) class FieldLTEPredicate(Predicate): """FieldLTEPredicate schema wrapper - Mapping(required=[field, lte]) + :class:`FieldLTEPredicate`, Dict[required=[field, lte]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - lte : anyOf(string, float, :class:`DateTime`, :class:`ExprRef`) + lte : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], float, str The value that the field should be less than or equals to. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldLTEPredicate'} - def __init__(self, field=Undefined, lte=Undefined, timeUnit=Undefined, **kwds): - super(FieldLTEPredicate, self).__init__(field=field, lte=lte, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldLTEPredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + lte: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + float, + str, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldLTEPredicate, self).__init__( + field=field, lte=lte, timeUnit=timeUnit, **kwds + ) class FieldLTPredicate(Predicate): """FieldLTPredicate schema wrapper - Mapping(required=[field, lt]) + :class:`FieldLTPredicate`, Dict[required=[field, lt]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - lt : anyOf(string, float, :class:`DateTime`, :class:`ExprRef`) + lt : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], float, str The value that the field should be less than. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldLTPredicate'} - def __init__(self, field=Undefined, lt=Undefined, timeUnit=Undefined, **kwds): - super(FieldLTPredicate, self).__init__(field=field, lt=lt, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldLTPredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + lt: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + float, + str, + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldLTPredicate, self).__init__( + field=field, lt=lt, timeUnit=timeUnit, **kwds + ) class FieldOneOfPredicate(Predicate): """FieldOneOfPredicate schema wrapper - Mapping(required=[field, oneOf]) + :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - oneOf : anyOf(List(string), List(float), List(boolean), List(:class:`DateTime`)) + oneOf : Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str] A set of values that the ``field`` 's value should be a member of, for a data item included in the filtered data. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldOneOfPredicate'} - def __init__(self, field=Undefined, oneOf=Undefined, timeUnit=Undefined, **kwds): - super(FieldOneOfPredicate, self).__init__(field=field, oneOf=oneOf, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldOneOfPredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + oneOf: Union[ + Union[ + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOneOfPredicate, self).__init__( + field=field, oneOf=oneOf, timeUnit=timeUnit, **kwds + ) class FieldRangePredicate(Predicate): """FieldRangePredicate schema wrapper - Mapping(required=[field, range]) + :class:`FieldRangePredicate`, Dict[required=[field, range]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - range : anyOf(List(anyOf(float, :class:`DateTime`, None, :class:`ExprRef`)), :class:`ExprRef`) + range : :class:`ExprRef`, Dict[required=[expr]], Sequence[:class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], None, float] An array of inclusive minimum and maximum values for a field value of a data item to be included in the filtered data. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldRangePredicate'} - def __init__(self, field=Undefined, range=Undefined, timeUnit=Undefined, **kwds): - super(FieldRangePredicate, self).__init__(field=field, range=range, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldRangePredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + None, + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + float, + ] + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldRangePredicate, self).__init__( + field=field, range=range, timeUnit=timeUnit, **kwds + ) class FieldValidPredicate(Predicate): """FieldValidPredicate schema wrapper - Mapping(required=[field, valid]) + :class:`FieldValidPredicate`, Dict[required=[field, valid]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str Field to be tested. - valid : boolean + valid : bool If set to true the field's value has to be valid, meaning both not ``null`` and not `NaN `__. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit for the field to be tested. """ - _schema = {'$ref': '#/definitions/FieldValidPredicate'} - def __init__(self, field=Undefined, valid=Undefined, timeUnit=Undefined, **kwds): - super(FieldValidPredicate, self).__init__(field=field, valid=valid, timeUnit=timeUnit, **kwds) + _schema = {"$ref": "#/definitions/FieldValidPredicate"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + valid: Union[bool, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldValidPredicate, self).__init__( + field=field, valid=valid, timeUnit=timeUnit, **kwds + ) class ParameterPredicate(Predicate): """ParameterPredicate schema wrapper - Mapping(required=[param]) + :class:`ParameterPredicate`, Dict[required=[param]] Parameters ---------- - param : :class:`ParameterName` + param : :class:`ParameterName`, str Filter using a parameter name. - empty : boolean + empty : bool For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property ``empty: false``. """ - _schema = {'$ref': '#/definitions/ParameterPredicate'} - def __init__(self, param=Undefined, empty=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ParameterPredicate"} + + def __init__( + self, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + empty: Union[bool, UndefinedType] = Undefined, + **kwds, + ): super(ParameterPredicate, self).__init__(param=param, empty=empty, **kwds) class Projection(VegaLiteSchema): """Projection schema wrapper - Mapping(required=[]) + :class:`Projection`, Dict Parameters ---------- - center : anyOf(:class:`Vector2number`, :class:`ExprRef`) + center : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float] The projection's center, a two-element array of longitude and latitude in degrees. **Default value:** ``[0, 0]`` - clipAngle : anyOf(float, :class:`ExprRef`) + clipAngle : :class:`ExprRef`, Dict[required=[expr]], float The projection's clipping circle radius to the specified angle in degrees. If ``null``, switches to `antimeridian `__ cutting rather than small-circle clipping. - clipExtent : anyOf(:class:`Vector2Vector2number`, :class:`ExprRef`) + clipExtent : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] The projection's viewport clip extent to the specified bounds in pixels. The extent bounds are specified as an array ``[[x0, y0], [x1, y1]]``, where ``x0`` is the left-side of the viewport, ``y0`` is the top, ``x1`` is the right and ``y1`` is the bottom. If ``null``, no viewport clipping is performed. - coefficient : anyOf(float, :class:`ExprRef`) + coefficient : :class:`ExprRef`, Dict[required=[expr]], float The coefficient parameter for the ``hammer`` projection. **Default value:** ``2`` - distance : anyOf(float, :class:`ExprRef`) + distance : :class:`ExprRef`, Dict[required=[expr]], float For the ``satellite`` projection, the distance from the center of the sphere to the point of view, as a proportion of the sphere’s radius. The recommended maximum clip angle for a given ``distance`` is acos(1 / distance) converted to degrees. If tilt is also applied, then more conservative clipping may be necessary. **Default value:** ``2.0`` - extent : anyOf(:class:`Vector2Vector2number`, :class:`ExprRef`) + extent : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] - fit : anyOf(:class:`Fit`, List(:class:`Fit`), :class:`ExprRef`) + fit : :class:`ExprRef`, Dict[required=[expr]], :class:`Fit`, :class:`GeoJsonFeatureCollection`, Dict[required=[features, type]], :class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]], Sequence[:class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]]], Sequence[:class:`Fit`, :class:`GeoJsonFeatureCollection`, Dict[required=[features, type]], :class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]], Sequence[:class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]]]] - fraction : anyOf(float, :class:`ExprRef`) + fraction : :class:`ExprRef`, Dict[required=[expr]], float The fraction parameter for the ``bottomley`` projection. **Default value:** ``0.5``, corresponding to a sin(ψ) where ψ = π/6. - lobes : anyOf(float, :class:`ExprRef`) + lobes : :class:`ExprRef`, Dict[required=[expr]], float The number of lobes in projections that support multi-lobe views: ``berghaus``, ``gingery``, or ``healpix``. The default value varies based on the projection type. - parallel : anyOf(float, :class:`ExprRef`) + parallel : :class:`ExprRef`, Dict[required=[expr]], float The parallel parameter for projections that support it: ``armadillo``, ``bonne``, ``craig``, ``cylindricalEqualArea``, ``cylindricalStereographic``, ``hammerRetroazimuthal``, ``loximuthal``, or ``rectangularPolyconic``. The default value varies based on the projection type. - parallels : anyOf(List(float), :class:`ExprRef`) + parallels : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] For conic projections, the `two standard parallels `__ that define the map layout. The default depends on the specific conic projection used. - pointRadius : anyOf(float, :class:`ExprRef`) + pointRadius : :class:`ExprRef`, Dict[required=[expr]], float The default radius (in pixels) to use when drawing GeoJSON ``Point`` and ``MultiPoint`` geometries. This parameter sets a constant default value. To modify the point radius in response to data, see the corresponding parameter of the GeoPath and GeoShape transforms. **Default value:** ``4.5`` - precision : anyOf(float, :class:`ExprRef`) + precision : :class:`ExprRef`, Dict[required=[expr]], float The threshold for the projection's `adaptive resampling `__ to the specified value in pixels. This value corresponds to the `Douglas–Peucker distance `__. If precision is not specified, returns the projection's current resampling precision which defaults to ``√0.5 ≅ 0.70710…``. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float The radius parameter for the ``airy`` or ``gingery`` projection. The default value varies based on the projection type. - ratio : anyOf(float, :class:`ExprRef`) + ratio : :class:`ExprRef`, Dict[required=[expr]], float The ratio parameter for the ``hill``, ``hufnagel``, or ``wagner`` projections. The default value varies based on the projection type. - reflectX : anyOf(boolean, :class:`ExprRef`) + reflectX : :class:`ExprRef`, Dict[required=[expr]], bool Sets whether or not the x-dimension is reflected (negated) in the output. - reflectY : anyOf(boolean, :class:`ExprRef`) + reflectY : :class:`ExprRef`, Dict[required=[expr]], bool Sets whether or not the y-dimension is reflected (negated) in the output. - rotate : anyOf(anyOf(:class:`Vector2number`, :class:`Vector3number`), :class:`ExprRef`) + rotate : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float], :class:`Vector3number`, Sequence[float] The projection's three-axis rotation to the specified angles, which must be a two- or three-element array of numbers [ ``lambda``, ``phi``, ``gamma`` ] specifying the rotation angles in degrees about each spherical axis. (These correspond to yaw, pitch and roll.) **Default value:** ``[0, 0, 0]`` - scale : anyOf(float, :class:`ExprRef`) + scale : :class:`ExprRef`, Dict[required=[expr]], float The projection’s scale (zoom) factor, overriding automatic fitting. The default scale is projection-specific. The scale factor corresponds linearly to the distance between projected points; however, scale factor values are not equivalent across projections. - size : anyOf(:class:`Vector2number`, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float] Used in conjunction with fit, provides the width and height in pixels of the area to which the projection should be automatically fit. - spacing : anyOf(float, :class:`ExprRef`) + spacing : :class:`ExprRef`, Dict[required=[expr]], float The spacing parameter for the ``lagrange`` projection. **Default value:** ``0.5`` - tilt : anyOf(float, :class:`ExprRef`) + tilt : :class:`ExprRef`, Dict[required=[expr]], float The tilt angle (in degrees) for the ``satellite`` projection. **Default value:** ``0``. - translate : anyOf(:class:`Vector2number`, :class:`ExprRef`) + translate : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float] The projection’s translation offset as a two-element array ``[tx, ty]``. - type : anyOf(:class:`ProjectionType`, :class:`ExprRef`) + type : :class:`ExprRef`, Dict[required=[expr]], :class:`ProjectionType`, Literal['albers', 'albersUsa', 'azimuthalEqualArea', 'azimuthalEquidistant', 'conicConformal', 'conicEqualArea', 'conicEquidistant', 'equalEarth', 'equirectangular', 'gnomonic', 'identity', 'mercator', 'naturalEarth1', 'orthographic', 'stereographic', 'transverseMercator'] The cartographic projection to use. This value is case-insensitive, for example ``"albers"`` and ``"Albers"`` indicate the same projection type. You can find all valid projection types `in the documentation @@ -13569,127 +35461,290 @@ class Projection(VegaLiteSchema): **Default value:** ``equalEarth`` """ - _schema = {'$ref': '#/definitions/Projection'} - - def __init__(self, center=Undefined, clipAngle=Undefined, clipExtent=Undefined, - coefficient=Undefined, distance=Undefined, extent=Undefined, fit=Undefined, - fraction=Undefined, lobes=Undefined, parallel=Undefined, parallels=Undefined, - pointRadius=Undefined, precision=Undefined, radius=Undefined, ratio=Undefined, - reflectX=Undefined, reflectY=Undefined, rotate=Undefined, scale=Undefined, - size=Undefined, spacing=Undefined, tilt=Undefined, translate=Undefined, type=Undefined, - **kwds): - super(Projection, self).__init__(center=center, clipAngle=clipAngle, clipExtent=clipExtent, - coefficient=coefficient, distance=distance, extent=extent, - fit=fit, fraction=fraction, lobes=lobes, parallel=parallel, - parallels=parallels, pointRadius=pointRadius, - precision=precision, radius=radius, ratio=ratio, - reflectX=reflectX, reflectY=reflectY, rotate=rotate, - scale=scale, size=size, spacing=spacing, tilt=tilt, - translate=translate, type=type, **kwds) + + _schema = {"$ref": "#/definitions/Projection"} + + def __init__( + self, + center: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Vector2number", Sequence[float]], + ], + UndefinedType, + ] = Undefined, + clipAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + clipExtent: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + ], + UndefinedType, + ] = Undefined, + coefficient: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + distance: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + extent: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + ], + UndefinedType, + ] = Undefined, + fit: Union[ + Union[ + Sequence[ + Union[ + "Fit", + Sequence[Union["GeoJsonFeature", dict]], + Union["GeoJsonFeature", dict], + Union["GeoJsonFeatureCollection", dict], + ] + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Fit", + Sequence[Union["GeoJsonFeature", dict]], + Union["GeoJsonFeature", dict], + Union["GeoJsonFeatureCollection", dict], + ], + ], + UndefinedType, + ] = Undefined, + fraction: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lobes: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + parallel: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + parallels: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + pointRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + precision: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ratio: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + reflectX: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + reflectY: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + rotate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + Union["Vector2number", Sequence[float]], + Union["Vector3number", Sequence[float]], + ], + ], + UndefinedType, + ] = Undefined, + scale: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + size: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Vector2number", Sequence[float]], + ], + UndefinedType, + ] = Undefined, + spacing: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tilt: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Vector2number", Sequence[float]], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "ProjectionType", + Literal[ + "albers", + "albersUsa", + "azimuthalEqualArea", + "azimuthalEquidistant", + "conicConformal", + "conicEqualArea", + "conicEquidistant", + "equalEarth", + "equirectangular", + "gnomonic", + "identity", + "mercator", + "naturalEarth1", + "orthographic", + "stereographic", + "transverseMercator", + ], + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(Projection, self).__init__( + center=center, + clipAngle=clipAngle, + clipExtent=clipExtent, + coefficient=coefficient, + distance=distance, + extent=extent, + fit=fit, + fraction=fraction, + lobes=lobes, + parallel=parallel, + parallels=parallels, + pointRadius=pointRadius, + precision=precision, + radius=radius, + ratio=ratio, + reflectX=reflectX, + reflectY=reflectY, + rotate=rotate, + scale=scale, + size=size, + spacing=spacing, + tilt=tilt, + translate=translate, + type=type, + **kwds, + ) class ProjectionConfig(VegaLiteSchema): """ProjectionConfig schema wrapper - Mapping(required=[]) + :class:`ProjectionConfig`, Dict Parameters ---------- - center : anyOf(:class:`Vector2number`, :class:`ExprRef`) + center : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float] The projection's center, a two-element array of longitude and latitude in degrees. **Default value:** ``[0, 0]`` - clipAngle : anyOf(float, :class:`ExprRef`) + clipAngle : :class:`ExprRef`, Dict[required=[expr]], float The projection's clipping circle radius to the specified angle in degrees. If ``null``, switches to `antimeridian `__ cutting rather than small-circle clipping. - clipExtent : anyOf(:class:`Vector2Vector2number`, :class:`ExprRef`) + clipExtent : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] The projection's viewport clip extent to the specified bounds in pixels. The extent bounds are specified as an array ``[[x0, y0], [x1, y1]]``, where ``x0`` is the left-side of the viewport, ``y0`` is the top, ``x1`` is the right and ``y1`` is the bottom. If ``null``, no viewport clipping is performed. - coefficient : anyOf(float, :class:`ExprRef`) + coefficient : :class:`ExprRef`, Dict[required=[expr]], float The coefficient parameter for the ``hammer`` projection. **Default value:** ``2`` - distance : anyOf(float, :class:`ExprRef`) + distance : :class:`ExprRef`, Dict[required=[expr]], float For the ``satellite`` projection, the distance from the center of the sphere to the point of view, as a proportion of the sphere’s radius. The recommended maximum clip angle for a given ``distance`` is acos(1 / distance) converted to degrees. If tilt is also applied, then more conservative clipping may be necessary. **Default value:** ``2.0`` - extent : anyOf(:class:`Vector2Vector2number`, :class:`ExprRef`) + extent : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] - fit : anyOf(:class:`Fit`, List(:class:`Fit`), :class:`ExprRef`) + fit : :class:`ExprRef`, Dict[required=[expr]], :class:`Fit`, :class:`GeoJsonFeatureCollection`, Dict[required=[features, type]], :class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]], Sequence[:class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]]], Sequence[:class:`Fit`, :class:`GeoJsonFeatureCollection`, Dict[required=[features, type]], :class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]], Sequence[:class:`GeoJsonFeature`, Dict[required=[geometry, properties, type]]]] - fraction : anyOf(float, :class:`ExprRef`) + fraction : :class:`ExprRef`, Dict[required=[expr]], float The fraction parameter for the ``bottomley`` projection. **Default value:** ``0.5``, corresponding to a sin(ψ) where ψ = π/6. - lobes : anyOf(float, :class:`ExprRef`) + lobes : :class:`ExprRef`, Dict[required=[expr]], float The number of lobes in projections that support multi-lobe views: ``berghaus``, ``gingery``, or ``healpix``. The default value varies based on the projection type. - parallel : anyOf(float, :class:`ExprRef`) + parallel : :class:`ExprRef`, Dict[required=[expr]], float The parallel parameter for projections that support it: ``armadillo``, ``bonne``, ``craig``, ``cylindricalEqualArea``, ``cylindricalStereographic``, ``hammerRetroazimuthal``, ``loximuthal``, or ``rectangularPolyconic``. The default value varies based on the projection type. - parallels : anyOf(List(float), :class:`ExprRef`) + parallels : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] For conic projections, the `two standard parallels `__ that define the map layout. The default depends on the specific conic projection used. - pointRadius : anyOf(float, :class:`ExprRef`) + pointRadius : :class:`ExprRef`, Dict[required=[expr]], float The default radius (in pixels) to use when drawing GeoJSON ``Point`` and ``MultiPoint`` geometries. This parameter sets a constant default value. To modify the point radius in response to data, see the corresponding parameter of the GeoPath and GeoShape transforms. **Default value:** ``4.5`` - precision : anyOf(float, :class:`ExprRef`) + precision : :class:`ExprRef`, Dict[required=[expr]], float The threshold for the projection's `adaptive resampling `__ to the specified value in pixels. This value corresponds to the `Douglas–Peucker distance `__. If precision is not specified, returns the projection's current resampling precision which defaults to ``√0.5 ≅ 0.70710…``. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float The radius parameter for the ``airy`` or ``gingery`` projection. The default value varies based on the projection type. - ratio : anyOf(float, :class:`ExprRef`) + ratio : :class:`ExprRef`, Dict[required=[expr]], float The ratio parameter for the ``hill``, ``hufnagel``, or ``wagner`` projections. The default value varies based on the projection type. - reflectX : anyOf(boolean, :class:`ExprRef`) + reflectX : :class:`ExprRef`, Dict[required=[expr]], bool Sets whether or not the x-dimension is reflected (negated) in the output. - reflectY : anyOf(boolean, :class:`ExprRef`) + reflectY : :class:`ExprRef`, Dict[required=[expr]], bool Sets whether or not the y-dimension is reflected (negated) in the output. - rotate : anyOf(anyOf(:class:`Vector2number`, :class:`Vector3number`), :class:`ExprRef`) + rotate : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float], :class:`Vector3number`, Sequence[float] The projection's three-axis rotation to the specified angles, which must be a two- or three-element array of numbers [ ``lambda``, ``phi``, ``gamma`` ] specifying the rotation angles in degrees about each spherical axis. (These correspond to yaw, pitch and roll.) **Default value:** ``[0, 0, 0]`` - scale : anyOf(float, :class:`ExprRef`) + scale : :class:`ExprRef`, Dict[required=[expr]], float The projection’s scale (zoom) factor, overriding automatic fitting. The default scale is projection-specific. The scale factor corresponds linearly to the distance between projected points; however, scale factor values are not equivalent across projections. - size : anyOf(:class:`Vector2number`, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float] Used in conjunction with fit, provides the width and height in pixels of the area to which the projection should be automatically fit. - spacing : anyOf(float, :class:`ExprRef`) + spacing : :class:`ExprRef`, Dict[required=[expr]], float The spacing parameter for the ``lagrange`` projection. **Default value:** ``0.5`` - tilt : anyOf(float, :class:`ExprRef`) + tilt : :class:`ExprRef`, Dict[required=[expr]], float The tilt angle (in degrees) for the ``satellite`` projection. **Default value:** ``0``. - translate : anyOf(:class:`Vector2number`, :class:`ExprRef`) + translate : :class:`ExprRef`, Dict[required=[expr]], :class:`Vector2number`, Sequence[float] The projection’s translation offset as a two-element array ``[tx, ty]``. - type : anyOf(:class:`ProjectionType`, :class:`ExprRef`) + type : :class:`ExprRef`, Dict[required=[expr]], :class:`ProjectionType`, Literal['albers', 'albersUsa', 'azimuthalEqualArea', 'azimuthalEquidistant', 'conicConformal', 'conicEqualArea', 'conicEquidistant', 'equalEarth', 'equirectangular', 'gnomonic', 'identity', 'mercator', 'naturalEarth1', 'orthographic', 'stereographic', 'transverseMercator'] The cartographic projection to use. This value is case-insensitive, for example ``"albers"`` and ``"Albers"`` indicate the same projection type. You can find all valid projection types `in the documentation @@ -13697,35 +35752,198 @@ class ProjectionConfig(VegaLiteSchema): **Default value:** ``equalEarth`` """ - _schema = {'$ref': '#/definitions/ProjectionConfig'} - - def __init__(self, center=Undefined, clipAngle=Undefined, clipExtent=Undefined, - coefficient=Undefined, distance=Undefined, extent=Undefined, fit=Undefined, - fraction=Undefined, lobes=Undefined, parallel=Undefined, parallels=Undefined, - pointRadius=Undefined, precision=Undefined, radius=Undefined, ratio=Undefined, - reflectX=Undefined, reflectY=Undefined, rotate=Undefined, scale=Undefined, - size=Undefined, spacing=Undefined, tilt=Undefined, translate=Undefined, type=Undefined, - **kwds): - super(ProjectionConfig, self).__init__(center=center, clipAngle=clipAngle, - clipExtent=clipExtent, coefficient=coefficient, - distance=distance, extent=extent, fit=fit, - fraction=fraction, lobes=lobes, parallel=parallel, - parallels=parallels, pointRadius=pointRadius, - precision=precision, radius=radius, ratio=ratio, - reflectX=reflectX, reflectY=reflectY, rotate=rotate, - scale=scale, size=size, spacing=spacing, tilt=tilt, - translate=translate, type=type, **kwds) + + _schema = {"$ref": "#/definitions/ProjectionConfig"} + + def __init__( + self, + center: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Vector2number", Sequence[float]], + ], + UndefinedType, + ] = Undefined, + clipAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + clipExtent: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + ], + UndefinedType, + ] = Undefined, + coefficient: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + distance: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + extent: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Vector2Vector2number", + Sequence[Union["Vector2number", Sequence[float]]], + ], + ], + UndefinedType, + ] = Undefined, + fit: Union[ + Union[ + Sequence[ + Union[ + "Fit", + Sequence[Union["GeoJsonFeature", dict]], + Union["GeoJsonFeature", dict], + Union["GeoJsonFeatureCollection", dict], + ] + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Fit", + Sequence[Union["GeoJsonFeature", dict]], + Union["GeoJsonFeature", dict], + Union["GeoJsonFeatureCollection", dict], + ], + ], + UndefinedType, + ] = Undefined, + fraction: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lobes: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + parallel: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + parallels: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + pointRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + precision: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ratio: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + reflectX: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + reflectY: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + rotate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + Union["Vector2number", Sequence[float]], + Union["Vector3number", Sequence[float]], + ], + ], + UndefinedType, + ] = Undefined, + scale: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + size: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Vector2number", Sequence[float]], + ], + UndefinedType, + ] = Undefined, + spacing: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tilt: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + translate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["Vector2number", Sequence[float]], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "ProjectionType", + Literal[ + "albers", + "albersUsa", + "azimuthalEqualArea", + "azimuthalEquidistant", + "conicConformal", + "conicEqualArea", + "conicEquidistant", + "equalEarth", + "equirectangular", + "gnomonic", + "identity", + "mercator", + "naturalEarth1", + "orthographic", + "stereographic", + "transverseMercator", + ], + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ProjectionConfig, self).__init__( + center=center, + clipAngle=clipAngle, + clipExtent=clipExtent, + coefficient=coefficient, + distance=distance, + extent=extent, + fit=fit, + fraction=fraction, + lobes=lobes, + parallel=parallel, + parallels=parallels, + pointRadius=pointRadius, + precision=precision, + radius=radius, + ratio=ratio, + reflectX=reflectX, + reflectY=reflectY, + rotate=rotate, + scale=scale, + size=size, + spacing=spacing, + tilt=tilt, + translate=translate, + type=type, + **kwds, + ) class ProjectionType(VegaLiteSchema): """ProjectionType schema wrapper - enum('albers', 'albersUsa', 'azimuthalEqualArea', 'azimuthalEquidistant', 'conicConformal', - 'conicEqualArea', 'conicEquidistant', 'equalEarth', 'equirectangular', 'gnomonic', - 'identity', 'mercator', 'naturalEarth1', 'orthographic', 'stereographic', - 'transverseMercator') + :class:`ProjectionType`, Literal['albers', 'albersUsa', 'azimuthalEqualArea', + 'azimuthalEquidistant', 'conicConformal', 'conicEqualArea', 'conicEquidistant', + 'equalEarth', 'equirectangular', 'gnomonic', 'identity', 'mercator', 'naturalEarth1', + 'orthographic', 'stereographic', 'transverseMercator'] """ - _schema = {'$ref': '#/definitions/ProjectionType'} + + _schema = {"$ref": "#/definitions/ProjectionType"} def __init__(self, *args): super(ProjectionType, self).__init__(*args) @@ -13734,16 +35952,16 @@ def __init__(self, *args): class RadialGradient(Gradient): """RadialGradient schema wrapper - Mapping(required=[gradient, stops]) + :class:`RadialGradient`, Dict[required=[gradient, stops]] Parameters ---------- - gradient : string + gradient : str The type of gradient. Use ``"radial"`` for a radial gradient. - stops : List(:class:`GradientStop`) + stops : Sequence[:class:`GradientStop`, Dict[required=[offset, color]]] An array of gradient stops defining the gradient color sequence. - id : string + id : str r1 : float The radius length, in normalized [0, 1] coordinates, of the inner circle for the @@ -13776,55 +35994,1059 @@ class RadialGradient(Gradient): **Default value:** ``0.5`` """ - _schema = {'$ref': '#/definitions/RadialGradient'} - def __init__(self, gradient=Undefined, stops=Undefined, id=Undefined, r1=Undefined, r2=Undefined, - x1=Undefined, x2=Undefined, y1=Undefined, y2=Undefined, **kwds): - super(RadialGradient, self).__init__(gradient=gradient, stops=stops, id=id, r1=r1, r2=r2, x1=x1, - x2=x2, y1=y1, y2=y2, **kwds) + _schema = {"$ref": "#/definitions/RadialGradient"} + + def __init__( + self, + gradient: Union[str, UndefinedType] = Undefined, + stops: Union[Sequence[Union["GradientStop", dict]], UndefinedType] = Undefined, + id: Union[str, UndefinedType] = Undefined, + r1: Union[float, UndefinedType] = Undefined, + r2: Union[float, UndefinedType] = Undefined, + x1: Union[float, UndefinedType] = Undefined, + x2: Union[float, UndefinedType] = Undefined, + y1: Union[float, UndefinedType] = Undefined, + y2: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(RadialGradient, self).__init__( + gradient=gradient, + stops=stops, + id=id, + r1=r1, + r2=r2, + x1=x1, + x2=x2, + y1=y1, + y2=y2, + **kwds, + ) class RangeConfig(VegaLiteSchema): """RangeConfig schema wrapper - Mapping(required=[]) + :class:`RangeConfig`, Dict Parameters ---------- - category : anyOf(:class:`RangeScheme`, List(:class:`Color`)) + category : :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap'], :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, Sequence[float], None, bool, float, str], :class:`RangeScheme`, Dict[required=[scheme]], Sequence[:class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str] Default `color scheme `__ for categorical data. - diverging : anyOf(:class:`RangeScheme`, List(:class:`Color`)) + diverging : :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap'], :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, Sequence[float], None, bool, float, str], :class:`RangeScheme`, Dict[required=[scheme]], Sequence[:class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str] Default `color scheme `__ for diverging quantitative ramps. - heatmap : anyOf(:class:`RangeScheme`, List(:class:`Color`)) + heatmap : :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap'], :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, Sequence[float], None, bool, float, str], :class:`RangeScheme`, Dict[required=[scheme]], Sequence[:class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str] Default `color scheme `__ for quantitative heatmaps. - ordinal : anyOf(:class:`RangeScheme`, List(:class:`Color`)) + ordinal : :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap'], :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, Sequence[float], None, bool, float, str], :class:`RangeScheme`, Dict[required=[scheme]], Sequence[:class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str] Default `color scheme `__ for rank-ordered data. - ramp : anyOf(:class:`RangeScheme`, List(:class:`Color`)) + ramp : :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap'], :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, Sequence[float], None, bool, float, str], :class:`RangeScheme`, Dict[required=[scheme]], Sequence[:class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str] Default `color scheme `__ for sequential quantitative ramps. - symbol : List(:class:`SymbolShape`) + symbol : Sequence[:class:`SymbolShape`, str] Array of `symbol `__ names or paths for the default shape palette. """ - _schema = {'$ref': '#/definitions/RangeConfig'} - def __init__(self, category=Undefined, diverging=Undefined, heatmap=Undefined, ordinal=Undefined, - ramp=Undefined, symbol=Undefined, **kwds): - super(RangeConfig, self).__init__(category=category, diverging=diverging, heatmap=heatmap, - ordinal=ordinal, ramp=ramp, symbol=symbol, **kwds) + _schema = {"$ref": "#/definitions/RangeConfig"} + + def __init__( + self, + category: Union[ + Union[ + Sequence[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ] + ], + Union[ + "RangeScheme", + Union[ + "RangeEnum", + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + ], + Union[ + "RangeRaw", + Sequence[ + Union[ + None, + Union["RangeRawArray", Sequence[float]], + bool, + float, + str, + ] + ], + ], + dict, + ], + ], + UndefinedType, + ] = Undefined, + diverging: Union[ + Union[ + Sequence[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ] + ], + Union[ + "RangeScheme", + Union[ + "RangeEnum", + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + ], + Union[ + "RangeRaw", + Sequence[ + Union[ + None, + Union["RangeRawArray", Sequence[float]], + bool, + float, + str, + ] + ], + ], + dict, + ], + ], + UndefinedType, + ] = Undefined, + heatmap: Union[ + Union[ + Sequence[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ] + ], + Union[ + "RangeScheme", + Union[ + "RangeEnum", + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + ], + Union[ + "RangeRaw", + Sequence[ + Union[ + None, + Union["RangeRawArray", Sequence[float]], + bool, + float, + str, + ] + ], + ], + dict, + ], + ], + UndefinedType, + ] = Undefined, + ordinal: Union[ + Union[ + Sequence[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ] + ], + Union[ + "RangeScheme", + Union[ + "RangeEnum", + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + ], + Union[ + "RangeRaw", + Sequence[ + Union[ + None, + Union["RangeRawArray", Sequence[float]], + bool, + float, + str, + ] + ], + ], + dict, + ], + ], + UndefinedType, + ] = Undefined, + ramp: Union[ + Union[ + Sequence[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ] + ], + Union[ + "RangeScheme", + Union[ + "RangeEnum", + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + ], + Union[ + "RangeRaw", + Sequence[ + Union[ + None, + Union["RangeRawArray", Sequence[float]], + bool, + float, + str, + ] + ], + ], + dict, + ], + ], + UndefinedType, + ] = Undefined, + symbol: Union[Sequence[Union["SymbolShape", str]], UndefinedType] = Undefined, + **kwds, + ): + super(RangeConfig, self).__init__( + category=category, + diverging=diverging, + heatmap=heatmap, + ordinal=ordinal, + ramp=ramp, + symbol=symbol, + **kwds, + ) class RangeRawArray(VegaLiteSchema): """RangeRawArray schema wrapper - List(float) + :class:`RangeRawArray`, Sequence[float] """ - _schema = {'$ref': '#/definitions/RangeRawArray'} + + _schema = {"$ref": "#/definitions/RangeRawArray"} def __init__(self, *args): super(RangeRawArray, self).__init__(*args) @@ -13833,9 +37055,12 @@ def __init__(self, *args): class RangeScheme(VegaLiteSchema): """RangeScheme schema wrapper - anyOf(:class:`RangeEnum`, :class:`RangeRaw`, Mapping(required=[scheme])) + :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', + 'diverging', 'heatmap'], :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, + Sequence[float], None, bool, float, str], :class:`RangeScheme`, Dict[required=[scheme]] """ - _schema = {'$ref': '#/definitions/RangeScheme'} + + _schema = {"$ref": "#/definitions/RangeScheme"} def __init__(self, *args, **kwds): super(RangeScheme, self).__init__(*args, **kwds) @@ -13844,9 +37069,11 @@ def __init__(self, *args, **kwds): class RangeEnum(RangeScheme): """RangeEnum schema wrapper - enum('width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap') + :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', + 'diverging', 'heatmap'] """ - _schema = {'$ref': '#/definitions/RangeEnum'} + + _schema = {"$ref": "#/definitions/RangeEnum"} def __init__(self, *args): super(RangeEnum, self).__init__(*args) @@ -13855,9 +37082,10 @@ def __init__(self, *args): class RangeRaw(RangeScheme): """RangeRaw schema wrapper - List(anyOf(None, boolean, string, float, :class:`RangeRawArray`)) + :class:`RangeRaw`, Sequence[:class:`RangeRawArray`, Sequence[float], None, bool, float, str] """ - _schema = {'$ref': '#/definitions/RangeRaw'} + + _schema = {"$ref": "#/definitions/RangeRaw"} def __init__(self, *args): super(RangeRaw, self).__init__(*args) @@ -13866,37 +37094,37 @@ def __init__(self, *args): class RectConfig(AnyMarkConfig): """RectConfig schema wrapper - Mapping(required=[]) + :class:`RectConfig`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -13912,13 +37140,13 @@ class RectConfig(AnyMarkConfig): (preferred by statisticians) or 1 (Vega-Lite default, D3 example style). **Default value:** ``1`` - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -13935,66 +37163,66 @@ class RectConfig(AnyMarkConfig): The default size of the bars on continuous scales. **Default value:** ``5`` - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - discreteBandSize : anyOf(float, :class:`RelativeBandSize`) + discreteBandSize : :class:`RelativeBandSize`, Dict[required=[band]], float The default size of the bars with discrete dimensions. If unspecified, the default size is ``step-2``, which provides 2 pixel offset between bars. - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -14004,28 +37232,28 @@ class RectConfig(AnyMarkConfig): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -14047,7 +37275,7 @@ class RectConfig(AnyMarkConfig): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -14056,28 +37284,28 @@ class RectConfig(AnyMarkConfig): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - minBandSize : anyOf(float, :class:`ExprRef`) + minBandSize : :class:`ExprRef`, Dict[required=[expr]], float The minimum band size for bar and rectangle marks. **Default value:** ``0.25`` - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -14089,24 +37317,24 @@ class RectConfig(AnyMarkConfig): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -14121,7 +37349,7 @@ class RectConfig(AnyMarkConfig): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -14138,56 +37366,56 @@ class RectConfig(AnyMarkConfig): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. timeUnitBandPosition : float @@ -14198,7 +37426,7 @@ class RectConfig(AnyMarkConfig): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -14213,91 +37441,981 @@ class RectConfig(AnyMarkConfig): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. """ - _schema = {'$ref': '#/definitions/RectConfig'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, baseline=Undefined, - binSpacing=Undefined, blend=Undefined, color=Undefined, continuousBandSize=Undefined, - cornerRadius=Undefined, cornerRadiusBottomLeft=Undefined, - cornerRadiusBottomRight=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - discreteBandSize=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, - endAngle=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, lineBreak=Undefined, lineHeight=Undefined, - minBandSize=Undefined, opacity=Undefined, order=Undefined, orient=Undefined, - outerRadius=Undefined, padAngle=Undefined, radius=Undefined, radius2=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, startAngle=Undefined, - stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - tension=Undefined, text=Undefined, theta=Undefined, theta2=Undefined, - timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, tooltip=Undefined, - url=Undefined, width=Undefined, x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, - **kwds): - super(RectConfig, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - baseline=baseline, binSpacing=binSpacing, blend=blend, - color=color, continuousBandSize=continuousBandSize, - cornerRadius=cornerRadius, - cornerRadiusBottomLeft=cornerRadiusBottomLeft, - cornerRadiusBottomRight=cornerRadiusBottomRight, - cornerRadiusTopLeft=cornerRadiusTopLeft, - cornerRadiusTopRight=cornerRadiusTopRight, cursor=cursor, - description=description, dir=dir, - discreteBandSize=discreteBandSize, dx=dx, dy=dy, - ellipsis=ellipsis, endAngle=endAngle, 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, - lineBreak=lineBreak, lineHeight=lineHeight, - minBandSize=minBandSize, opacity=opacity, order=order, - orient=orient, outerRadius=outerRadius, padAngle=padAngle, - radius=radius, radius2=radius2, shape=shape, size=size, - smooth=smooth, startAngle=startAngle, stroke=stroke, - strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOffset=strokeOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - tension=tension, text=text, theta=theta, theta2=theta2, - timeUnitBandPosition=timeUnitBandPosition, - timeUnitBandSize=timeUnitBandSize, tooltip=tooltip, url=url, - width=width, x=x, x2=x2, y=y, y2=y2, **kwds) + + _schema = {"$ref": "#/definitions/RectConfig"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + binSpacing: Union[float, UndefinedType] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + continuousBandSize: Union[float, UndefinedType] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + discreteBandSize: Union[ + Union[Union["RelativeBandSize", dict], float], UndefinedType + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + minBandSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + timeUnitBandPosition: Union[float, UndefinedType] = Undefined, + timeUnitBandSize: Union[float, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): + super(RectConfig, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + baseline=baseline, + binSpacing=binSpacing, + blend=blend, + color=color, + continuousBandSize=continuousBandSize, + cornerRadius=cornerRadius, + cornerRadiusBottomLeft=cornerRadiusBottomLeft, + cornerRadiusBottomRight=cornerRadiusBottomRight, + cornerRadiusTopLeft=cornerRadiusTopLeft, + cornerRadiusTopRight=cornerRadiusTopRight, + cursor=cursor, + description=description, + dir=dir, + discreteBandSize=discreteBandSize, + dx=dx, + dy=dy, + ellipsis=ellipsis, + endAngle=endAngle, + 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, + lineBreak=lineBreak, + lineHeight=lineHeight, + minBandSize=minBandSize, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOffset=strokeOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + tension=tension, + text=text, + theta=theta, + theta2=theta2, + timeUnitBandPosition=timeUnitBandPosition, + timeUnitBandSize=timeUnitBandSize, + tooltip=tooltip, + url=url, + width=width, + x=x, + x2=x2, + y=y, + y2=y2, + **kwds, + ) class RelativeBandSize(VegaLiteSchema): """RelativeBandSize schema wrapper - Mapping(required=[band]) + :class:`RelativeBandSize`, Dict[required=[band]] Parameters ---------- @@ -14306,53 +38424,67 @@ class RelativeBandSize(VegaLiteSchema): The relative band size. For example ``0.5`` means half of the band scale's band width. """ - _schema = {'$ref': '#/definitions/RelativeBandSize'} - def __init__(self, band=Undefined, **kwds): + _schema = {"$ref": "#/definitions/RelativeBandSize"} + + def __init__(self, band: Union[float, UndefinedType] = Undefined, **kwds): super(RelativeBandSize, self).__init__(band=band, **kwds) class RepeatMapping(VegaLiteSchema): """RepeatMapping schema wrapper - Mapping(required=[]) + :class:`RepeatMapping`, Dict Parameters ---------- - column : List(string) + column : Sequence[str] An array of fields to be repeated horizontally. - row : List(string) + row : Sequence[str] An array of fields to be repeated vertically. """ - _schema = {'$ref': '#/definitions/RepeatMapping'} - def __init__(self, column=Undefined, row=Undefined, **kwds): + _schema = {"$ref": "#/definitions/RepeatMapping"} + + def __init__( + self, + column: Union[Sequence[str], UndefinedType] = Undefined, + row: Union[Sequence[str], UndefinedType] = Undefined, + **kwds, + ): super(RepeatMapping, self).__init__(column=column, row=row, **kwds) class RepeatRef(Field): """RepeatRef schema wrapper - Mapping(required=[repeat]) + :class:`RepeatRef`, Dict[required=[repeat]] Reference to a repeated value. Parameters ---------- - repeat : enum('row', 'column', 'repeat', 'layer') + repeat : Literal['row', 'column', 'repeat', 'layer'] """ - _schema = {'$ref': '#/definitions/RepeatRef'} - def __init__(self, repeat=Undefined, **kwds): + _schema = {"$ref": "#/definitions/RepeatRef"} + + def __init__( + self, + repeat: Union[ + Literal["row", "column", "repeat", "layer"], UndefinedType + ] = Undefined, + **kwds, + ): super(RepeatRef, self).__init__(repeat=repeat, **kwds) class Resolve(VegaLiteSchema): """Resolve schema wrapper - Mapping(required=[]) + :class:`Resolve`, Dict Defines how scales, axes, and legends from different specs should be combined. Resolve is a mapping from ``scale``, ``axis``, and ``legend`` to a mapping from channels to resolutions. Scales and guides can be resolved to be ``"independent"`` or ``"shared"``. @@ -14360,25 +38492,33 @@ class Resolve(VegaLiteSchema): Parameters ---------- - axis : :class:`AxisResolveMap` + axis : :class:`AxisResolveMap`, Dict - legend : :class:`LegendResolveMap` + legend : :class:`LegendResolveMap`, Dict - scale : :class:`ScaleResolveMap` + scale : :class:`ScaleResolveMap`, Dict """ - _schema = {'$ref': '#/definitions/Resolve'} - def __init__(self, axis=Undefined, legend=Undefined, scale=Undefined, **kwds): + _schema = {"$ref": "#/definitions/Resolve"} + + def __init__( + self, + axis: Union[Union["AxisResolveMap", dict], UndefinedType] = Undefined, + legend: Union[Union["LegendResolveMap", dict], UndefinedType] = Undefined, + scale: Union[Union["ScaleResolveMap", dict], UndefinedType] = Undefined, + **kwds, + ): super(Resolve, self).__init__(axis=axis, legend=legend, scale=scale, **kwds) class ResolveMode(VegaLiteSchema): """ResolveMode schema wrapper - enum('independent', 'shared') + :class:`ResolveMode`, Literal['independent', 'shared'] """ - _schema = {'$ref': '#/definitions/ResolveMode'} + + _schema = {"$ref": "#/definitions/ResolveMode"} def __init__(self, *args): super(ResolveMode, self).__init__(*args) @@ -14387,45 +38527,61 @@ def __init__(self, *args): class RowColLayoutAlign(VegaLiteSchema): """RowColLayoutAlign schema wrapper - Mapping(required=[]) + :class:`RowColLayoutAlign`, Dict Parameters ---------- - column : :class:`LayoutAlign` + column : :class:`LayoutAlign`, Literal['all', 'each', 'none'] - row : :class:`LayoutAlign` + row : :class:`LayoutAlign`, Literal['all', 'each', 'none'] """ - _schema = {'$ref': '#/definitions/RowCol'} - def __init__(self, column=Undefined, row=Undefined, **kwds): + _schema = {"$ref": "#/definitions/RowCol"} + + def __init__( + self, + column: Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], UndefinedType + ] = Undefined, + row: Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], UndefinedType + ] = Undefined, + **kwds, + ): super(RowColLayoutAlign, self).__init__(column=column, row=row, **kwds) class RowColboolean(VegaLiteSchema): """RowColboolean schema wrapper - Mapping(required=[]) + :class:`RowColboolean`, Dict Parameters ---------- - column : boolean + column : bool - row : boolean + row : bool """ - _schema = {'$ref': '#/definitions/RowCol'} - def __init__(self, column=Undefined, row=Undefined, **kwds): + _schema = {"$ref": "#/definitions/RowCol"} + + def __init__( + self, + column: Union[bool, UndefinedType] = Undefined, + row: Union[bool, UndefinedType] = Undefined, + **kwds, + ): super(RowColboolean, self).__init__(column=column, row=row, **kwds) class RowColnumber(VegaLiteSchema): """RowColnumber schema wrapper - Mapping(required=[]) + :class:`RowColnumber`, Dict Parameters ---------- @@ -14435,21 +38591,29 @@ class RowColnumber(VegaLiteSchema): row : float """ - _schema = {'$ref': '#/definitions/RowCol'} - def __init__(self, column=Undefined, row=Undefined, **kwds): + _schema = {"$ref": "#/definitions/RowCol"} + + def __init__( + self, + column: Union[float, UndefinedType] = Undefined, + row: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(RowColnumber, self).__init__(column=column, row=row, **kwds) class RowColumnEncodingFieldDef(VegaLiteSchema): """RowColumnEncodingFieldDef schema wrapper - Mapping(required=[]) + :class:`RowColumnEncodingFieldDef`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -14457,7 +38621,7 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): **See also:** `aggregate `__ documentation. - align : :class:`LayoutAlign` + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'] The alignment to apply to row/column facet's subplot. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -14475,7 +38639,7 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -14496,12 +38660,12 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): **See also:** `bin `__ documentation. - center : boolean + center : bool Boolean flag indicating if facet's subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -14516,9 +38680,9 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - header : anyOf(:class:`Header`, None) + header : :class:`Header`, Dict, None An object defining properties of a facet's header. - sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None) + sort : :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortOrder`, Literal['ascending', 'descending'], None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -14551,7 +38715,7 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -14560,7 +38724,7 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -14580,7 +38744,7 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -14650,27 +38814,266 @@ class RowColumnEncodingFieldDef(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/RowColumnEncodingFieldDef'} - def __init__(self, aggregate=Undefined, align=Undefined, bandPosition=Undefined, bin=Undefined, - center=Undefined, field=Undefined, header=Undefined, sort=Undefined, spacing=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(RowColumnEncodingFieldDef, self).__init__(aggregate=aggregate, align=align, - bandPosition=bandPosition, bin=bin, - center=center, field=field, header=header, - sort=sort, spacing=spacing, timeUnit=timeUnit, - title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/RowColumnEncodingFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], UndefinedType + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + header: Union[Union[None, Union["Header", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + None, + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + UndefinedType, + ] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(RowColumnEncodingFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + align=align, + bandPosition=bandPosition, + bin=bin, + center=center, + field=field, + header=header, + sort=sort, + spacing=spacing, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class Scale(VegaLiteSchema): """Scale schema wrapper - Mapping(required=[]) + :class:`Scale`, Dict Parameters ---------- - align : anyOf(float, :class:`ExprRef`) + align : :class:`ExprRef`, Dict[required=[expr]], float The alignment of the steps within the scale range. This value must lie in the range ``[0,1]``. A value of ``0.5`` indicates that the @@ -14678,9 +39081,9 @@ class Scale(VegaLiteSchema): shift the bands to one side, say to position them adjacent to an axis. **Default value:** ``0.5`` - base : anyOf(float, :class:`ExprRef`) + base : :class:`ExprRef`, Dict[required=[expr]], float The logarithm base of the ``log`` scale (default ``10`` ). - bins : :class:`ScaleBins` + bins : :class:`ScaleBinParams`, Dict[required=[step]], :class:`ScaleBins`, Sequence[float] Bin boundaries can be provided to scales as either an explicit array of bin boundaries or as a bin specification object. The legal values are: @@ -14695,19 +39098,19 @@ class Scale(VegaLiteSchema): *step* size, and optionally the *start* and *stop* boundaries. * An array of bin boundaries over the scale domain. If provided, axes and legends will use the bin boundaries to inform the choice of tick marks and text labels. - clamp : anyOf(boolean, :class:`ExprRef`) + clamp : :class:`ExprRef`, Dict[required=[expr]], bool If ``true``, values that exceed the data domain are clamped to either the minimum or maximum range value **Default value:** derived from the `scale config `__ 's ``clamp`` ( ``true`` by default). - constant : anyOf(float, :class:`ExprRef`) + constant : :class:`ExprRef`, Dict[required=[expr]], float A constant determining the slope of the symlog function around zero. Only used for ``symlog`` scales. **Default value:** ``1`` - domain : anyOf(List(anyOf(None, string, float, boolean, :class:`DateTime`, :class:`ExprRef`)), string, :class:`ParameterExtent`, :class:`DomainUnionWith`, :class:`ExprRef`) + domain : :class:`DomainUnionWith`, Dict[required=[unionWith]], :class:`ExprRef`, Dict[required=[expr]], :class:`ParameterExtent`, Dict[required=[param]], Sequence[:class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], None, bool, float, str], str Customized domain values in the form of constant values or dynamic values driven by a parameter. @@ -14739,27 +39142,27 @@ class Scale(VegaLiteSchema): `interactively determines `__ the scale domain. - domainMax : anyOf(float, :class:`DateTime`, :class:`ExprRef`) + domainMax : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], float Sets the maximum value in the scale domain, overriding the ``domain`` property. This property is only intended for use with scales having continuous domains. - domainMid : anyOf(float, :class:`ExprRef`) + domainMid : :class:`ExprRef`, Dict[required=[expr]], float Inserts a single mid-point value into a two-element domain. The mid-point value must lie between the domain minimum and maximum values. This property can be useful for setting a midpoint for `diverging color scales `__. The domainMid property is only intended for use with scales supporting continuous, piecewise domains. - domainMin : anyOf(float, :class:`DateTime`, :class:`ExprRef`) + domainMin : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], float Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains. - domainRaw : :class:`ExprRef` + domainRaw : :class:`ExprRef`, Dict[required=[expr]] An expression for an array of raw values that, if non-null, directly overrides the *domain* property. This is useful for supporting interactions such as panning or zooming a scale. The scale may be initially determined using a data-driven domain, then modified in response to user input by setting the rawDomain value. - exponent : anyOf(float, :class:`ExprRef`) + exponent : :class:`ExprRef`, Dict[required=[expr]], float The exponent of the ``pow`` scale. - interpolate : anyOf(:class:`ScaleInterpolateEnum`, :class:`ExprRef`, :class:`ScaleInterpolateParams`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`ScaleInterpolateEnum`, Literal['rgb', 'lab', 'hcl', 'hsl', 'hsl-long', 'hcl-long', 'cubehelix', 'cubehelix-long'], :class:`ScaleInterpolateParams`, Dict[required=[type]] The interpolation method for range values. By default, a general interpolator for numbers, dates, strings and colors (in HCL space) is used. For color ranges, this property allows interpolation in alternative color spaces. Legal values include @@ -14772,7 +39175,7 @@ class Scale(VegaLiteSchema): * **Default value:** ``hcl`` - nice : anyOf(boolean, float, :class:`TimeInterval`, :class:`TimeIntervalStep`, :class:`ExprRef`) + nice : :class:`ExprRef`, Dict[required=[expr]], :class:`TimeIntervalStep`, Dict[required=[interval, step]], :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year'], bool, float Extending the domain so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value. Nicing is useful if the domain is computed from data and may be @@ -14794,7 +39197,7 @@ class Scale(VegaLiteSchema): **Default value:** ``true`` for unbinned *quantitative* fields without explicit domain bounds; ``false`` otherwise. - padding : anyOf(float, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], float For * `continuous `__ * scales, expands the scale domain to accommodate the specified number of pixels on each of the scale range. The scale range must represent pixels for this parameter to @@ -14813,7 +39216,7 @@ class Scale(VegaLiteSchema): ``continuousPadding``. For *band and point* scales, see ``paddingInner`` and ``paddingOuter``. By default, Vega-Lite sets padding such that *width/height = number of unique values * step*. - paddingInner : anyOf(float, :class:`ExprRef`) + paddingInner : :class:`ExprRef`, Dict[required=[expr]], float The inner padding (spacing) within each band step of band scales, as a fraction of the step size. This value must lie in the range [0,1]. @@ -14823,7 +39226,7 @@ class Scale(VegaLiteSchema): **Default value:** derived from the `scale config `__ 's ``bandPaddingInner``. - paddingOuter : anyOf(float, :class:`ExprRef`) + paddingOuter : :class:`ExprRef`, Dict[required=[expr]], float The outer padding (spacing) at the ends of the range of band and point scales, as a fraction of the step size. This value must lie in the range [0,1]. @@ -14831,7 +39234,7 @@ class Scale(VegaLiteSchema): `__ 's ``bandPaddingOuter`` for band scales and ``pointPadding`` for point scales. By default, Vega-Lite sets outer padding such that *width/height = number of unique values * step*. - range : anyOf(:class:`RangeEnum`, List(anyOf(float, string, List(float), :class:`ExprRef`)), :class:`FieldRange`) + range : :class:`FieldRange`, Dict[required=[field]], :class:`RangeEnum`, Literal['width', 'height', 'symbol', 'category', 'ordinal', 'ramp', 'diverging', 'heatmap'], Sequence[:class:`ExprRef`, Dict[required=[expr]], Sequence[float], float, str] The range of the scale. One of: @@ -14859,22 +39262,22 @@ class Scale(VegaLiteSchema): 2) Any directly specified ``range`` for ``x`` and ``y`` channels will be ignored. Range can be customized via the view's corresponding `size `__ ( ``width`` and ``height`` ). - rangeMax : anyOf(float, string, :class:`ExprRef`) + rangeMax : :class:`ExprRef`, Dict[required=[expr]], float, str Sets the maximum value in the scale range, overriding the ``range`` property or the default range. This property is only intended for use with scales having continuous ranges. - rangeMin : anyOf(float, string, :class:`ExprRef`) + rangeMin : :class:`ExprRef`, Dict[required=[expr]], float, str Sets the minimum value in the scale range, overriding the ``range`` property or the default range. This property is only intended for use with scales having continuous ranges. - reverse : anyOf(boolean, :class:`ExprRef`) + reverse : :class:`ExprRef`, Dict[required=[expr]], bool If true, reverses the order of the scale range. **Default value:** ``false``. - round : anyOf(boolean, :class:`ExprRef`) + round : :class:`ExprRef`, Dict[required=[expr]], bool If ``true``, rounds numeric output values to integers. This can be helpful for snapping to the pixel grid. **Default value:** ``false``. - scheme : anyOf(:class:`ColorScheme`, :class:`SchemeParams`, :class:`ExprRef`) + scheme : :class:`Categorical`, Literal['accent', 'category10', 'category20', 'category20b', 'category20c', 'dark2', 'paired', 'pastel1', 'pastel2', 'set1', 'set2', 'set3', 'tableau10', 'tableau20'], :class:`ColorScheme`, :class:`Cyclical`, Literal['rainbow', 'sinebow'], :class:`Diverging`, Literal['blueorange', 'blueorange-3', 'blueorange-4', 'blueorange-5', 'blueorange-6', 'blueorange-7', 'blueorange-8', 'blueorange-9', 'blueorange-10', 'blueorange-11', 'brownbluegreen', 'brownbluegreen-3', 'brownbluegreen-4', 'brownbluegreen-5', 'brownbluegreen-6', 'brownbluegreen-7', 'brownbluegreen-8', 'brownbluegreen-9', 'brownbluegreen-10', 'brownbluegreen-11', 'purplegreen', 'purplegreen-3', 'purplegreen-4', 'purplegreen-5', 'purplegreen-6', 'purplegreen-7', 'purplegreen-8', 'purplegreen-9', 'purplegreen-10', 'purplegreen-11', 'pinkyellowgreen', 'pinkyellowgreen-3', 'pinkyellowgreen-4', 'pinkyellowgreen-5', 'pinkyellowgreen-6', 'pinkyellowgreen-7', 'pinkyellowgreen-8', 'pinkyellowgreen-9', 'pinkyellowgreen-10', 'pinkyellowgreen-11', 'purpleorange', 'purpleorange-3', 'purpleorange-4', 'purpleorange-5', 'purpleorange-6', 'purpleorange-7', 'purpleorange-8', 'purpleorange-9', 'purpleorange-10', 'purpleorange-11', 'redblue', 'redblue-3', 'redblue-4', 'redblue-5', 'redblue-6', 'redblue-7', 'redblue-8', 'redblue-9', 'redblue-10', 'redblue-11', 'redgrey', 'redgrey-3', 'redgrey-4', 'redgrey-5', 'redgrey-6', 'redgrey-7', 'redgrey-8', 'redgrey-9', 'redgrey-10', 'redgrey-11', 'redyellowblue', 'redyellowblue-3', 'redyellowblue-4', 'redyellowblue-5', 'redyellowblue-6', 'redyellowblue-7', 'redyellowblue-8', 'redyellowblue-9', 'redyellowblue-10', 'redyellowblue-11', 'redyellowgreen', 'redyellowgreen-3', 'redyellowgreen-4', 'redyellowgreen-5', 'redyellowgreen-6', 'redyellowgreen-7', 'redyellowgreen-8', 'redyellowgreen-9', 'redyellowgreen-10', 'redyellowgreen-11', 'spectral', 'spectral-3', 'spectral-4', 'spectral-5', 'spectral-6', 'spectral-7', 'spectral-8', 'spectral-9', 'spectral-10', 'spectral-11'], :class:`SequentialMultiHue`, Literal['turbo', 'viridis', 'inferno', 'magma', 'plasma', 'cividis', 'bluegreen', 'bluegreen-3', 'bluegreen-4', 'bluegreen-5', 'bluegreen-6', 'bluegreen-7', 'bluegreen-8', 'bluegreen-9', 'bluepurple', 'bluepurple-3', 'bluepurple-4', 'bluepurple-5', 'bluepurple-6', 'bluepurple-7', 'bluepurple-8', 'bluepurple-9', 'goldgreen', 'goldgreen-3', 'goldgreen-4', 'goldgreen-5', 'goldgreen-6', 'goldgreen-7', 'goldgreen-8', 'goldgreen-9', 'goldorange', 'goldorange-3', 'goldorange-4', 'goldorange-5', 'goldorange-6', 'goldorange-7', 'goldorange-8', 'goldorange-9', 'goldred', 'goldred-3', 'goldred-4', 'goldred-5', 'goldred-6', 'goldred-7', 'goldred-8', 'goldred-9', 'greenblue', 'greenblue-3', 'greenblue-4', 'greenblue-5', 'greenblue-6', 'greenblue-7', 'greenblue-8', 'greenblue-9', 'orangered', 'orangered-3', 'orangered-4', 'orangered-5', 'orangered-6', 'orangered-7', 'orangered-8', 'orangered-9', 'purplebluegreen', 'purplebluegreen-3', 'purplebluegreen-4', 'purplebluegreen-5', 'purplebluegreen-6', 'purplebluegreen-7', 'purplebluegreen-8', 'purplebluegreen-9', 'purpleblue', 'purpleblue-3', 'purpleblue-4', 'purpleblue-5', 'purpleblue-6', 'purpleblue-7', 'purpleblue-8', 'purpleblue-9', 'purplered', 'purplered-3', 'purplered-4', 'purplered-5', 'purplered-6', 'purplered-7', 'purplered-8', 'purplered-9', 'redpurple', 'redpurple-3', 'redpurple-4', 'redpurple-5', 'redpurple-6', 'redpurple-7', 'redpurple-8', 'redpurple-9', 'yellowgreenblue', 'yellowgreenblue-3', 'yellowgreenblue-4', 'yellowgreenblue-5', 'yellowgreenblue-6', 'yellowgreenblue-7', 'yellowgreenblue-8', 'yellowgreenblue-9', 'yellowgreen', 'yellowgreen-3', 'yellowgreen-4', 'yellowgreen-5', 'yellowgreen-6', 'yellowgreen-7', 'yellowgreen-8', 'yellowgreen-9', 'yelloworangebrown', 'yelloworangebrown-3', 'yelloworangebrown-4', 'yelloworangebrown-5', 'yelloworangebrown-6', 'yelloworangebrown-7', 'yelloworangebrown-8', 'yelloworangebrown-9', 'yelloworangered', 'yelloworangered-3', 'yelloworangered-4', 'yelloworangered-5', 'yelloworangered-6', 'yelloworangered-7', 'yelloworangered-8', 'yelloworangered-9', 'darkblue', 'darkblue-3', 'darkblue-4', 'darkblue-5', 'darkblue-6', 'darkblue-7', 'darkblue-8', 'darkblue-9', 'darkgold', 'darkgold-3', 'darkgold-4', 'darkgold-5', 'darkgold-6', 'darkgold-7', 'darkgold-8', 'darkgold-9', 'darkgreen', 'darkgreen-3', 'darkgreen-4', 'darkgreen-5', 'darkgreen-6', 'darkgreen-7', 'darkgreen-8', 'darkgreen-9', 'darkmulti', 'darkmulti-3', 'darkmulti-4', 'darkmulti-5', 'darkmulti-6', 'darkmulti-7', 'darkmulti-8', 'darkmulti-9', 'darkred', 'darkred-3', 'darkred-4', 'darkred-5', 'darkred-6', 'darkred-7', 'darkred-8', 'darkred-9', 'lightgreyred', 'lightgreyred-3', 'lightgreyred-4', 'lightgreyred-5', 'lightgreyred-6', 'lightgreyred-7', 'lightgreyred-8', 'lightgreyred-9', 'lightgreyteal', 'lightgreyteal-3', 'lightgreyteal-4', 'lightgreyteal-5', 'lightgreyteal-6', 'lightgreyteal-7', 'lightgreyteal-8', 'lightgreyteal-9', 'lightmulti', 'lightmulti-3', 'lightmulti-4', 'lightmulti-5', 'lightmulti-6', 'lightmulti-7', 'lightmulti-8', 'lightmulti-9', 'lightorange', 'lightorange-3', 'lightorange-4', 'lightorange-5', 'lightorange-6', 'lightorange-7', 'lightorange-8', 'lightorange-9', 'lighttealblue', 'lighttealblue-3', 'lighttealblue-4', 'lighttealblue-5', 'lighttealblue-6', 'lighttealblue-7', 'lighttealblue-8', 'lighttealblue-9'], :class:`SequentialSingleHue`, Literal['blues', 'tealblues', 'teals', 'greens', 'browns', 'greys', 'purples', 'warmgreys', 'reds', 'oranges'], :class:`ExprRef`, Dict[required=[expr]], :class:`SchemeParams`, Dict[required=[name]] A string indicating a color `scheme `__ name (e.g., ``"category10"`` or ``"blues"`` ) or a `scheme parameter object @@ -14887,7 +39290,7 @@ class Scale(VegaLiteSchema): For the full list of supported schemes, please refer to the `Vega Scheme `__ reference. - type : :class:`ScaleType` + type : :class:`ScaleType`, Literal['linear', 'log', 'pow', 'sqrt', 'symlog', 'identity', 'sequential', 'time', 'utc', 'quantile', 'quantize', 'threshold', 'bin-ordinal', 'ordinal', 'point', 'band'] The type of scale. Vega-Lite supports the following categories of scale types: 1) `Continuous Scales @@ -14917,7 +39320,7 @@ class Scale(VegaLiteSchema): **Default value:** please see the `scale type table `__. - zero : anyOf(boolean, :class:`ExprRef`) + zero : :class:`ExprRef`, Dict[required=[expr]], bool If ``true``, ensures that a zero baseline value is included in the scale domain. **Default value:** ``true`` for x and y channels if the quantitative field is not @@ -14925,29 +39328,579 @@ class Scale(VegaLiteSchema): **Note:** Log, time, and utc scales do not support ``zero``. """ - _schema = {'$ref': '#/definitions/Scale'} - def __init__(self, align=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, - constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, - domainMin=Undefined, domainRaw=Undefined, exponent=Undefined, interpolate=Undefined, - nice=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, - range=Undefined, rangeMax=Undefined, rangeMin=Undefined, reverse=Undefined, - round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, **kwds): - super(Scale, self).__init__(align=align, base=base, bins=bins, clamp=clamp, constant=constant, - domain=domain, domainMax=domainMax, domainMid=domainMid, - domainMin=domainMin, domainRaw=domainRaw, exponent=exponent, - interpolate=interpolate, nice=nice, padding=padding, - paddingInner=paddingInner, paddingOuter=paddingOuter, range=range, - rangeMax=rangeMax, rangeMin=rangeMin, reverse=reverse, round=round, - scheme=scheme, type=type, zero=zero, **kwds) + _schema = {"$ref": "#/definitions/Scale"} + + def __init__( + self, + align: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + base: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + bins: Union[ + Union["ScaleBins", Sequence[float], Union["ScaleBinParams", dict]], + UndefinedType, + ] = Undefined, + clamp: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + constant: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + domain: Union[ + Union[ + Sequence[ + Union[ + None, + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + bool, + float, + str, + ] + ], + Union["DomainUnionWith", dict], + Union["ExprRef", "_Parameter", dict], + Union["ParameterExtent", "_Parameter", dict], + str, + ], + UndefinedType, + ] = Undefined, + domainMax: Union[ + Union[Union["DateTime", dict], Union["ExprRef", "_Parameter", dict], float], + UndefinedType, + ] = Undefined, + domainMid: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + domainMin: Union[ + Union[Union["DateTime", dict], Union["ExprRef", "_Parameter", dict], float], + UndefinedType, + ] = Undefined, + domainRaw: Union[ + Union["ExprRef", "_Parameter", dict], UndefinedType + ] = Undefined, + exponent: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "ScaleInterpolateEnum", + Literal[ + "rgb", + "lab", + "hcl", + "hsl", + "hsl-long", + "hcl-long", + "cubehelix", + "cubehelix-long", + ], + ], + Union["ScaleInterpolateParams", dict], + ], + UndefinedType, + ] = Undefined, + nice: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TimeInterval", + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + ], + Union["TimeIntervalStep", dict], + bool, + float, + ], + UndefinedType, + ] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + paddingInner: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + paddingOuter: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + range: Union[ + Union[ + Sequence[ + Union[ + Sequence[float], + Union["ExprRef", "_Parameter", dict], + float, + str, + ] + ], + Union["FieldRange", dict], + Union[ + "RangeEnum", + Literal[ + "width", + "height", + "symbol", + "category", + "ordinal", + "ramp", + "diverging", + "heatmap", + ], + ], + ], + UndefinedType, + ] = Undefined, + rangeMax: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + rangeMin: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + reverse: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + round: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + scheme: Union[ + Union[ + Union[ + "ColorScheme", + Union[ + "Categorical", + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + ], + Union["Cyclical", Literal["rainbow", "sinebow"]], + Union[ + "Diverging", + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + ], + Union[ + "SequentialMultiHue", + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + ], + Union[ + "SequentialSingleHue", + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + ], + ], + Union["ExprRef", "_Parameter", dict], + Union["SchemeParams", dict], + ], + UndefinedType, + ] = Undefined, + type: Union[ + Union[ + "ScaleType", + Literal[ + "linear", + "log", + "pow", + "sqrt", + "symlog", + "identity", + "sequential", + "time", + "utc", + "quantile", + "quantize", + "threshold", + "bin-ordinal", + "ordinal", + "point", + "band", + ], + ], + UndefinedType, + ] = Undefined, + zero: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + **kwds, + ): + super(Scale, self).__init__( + align=align, + base=base, + bins=bins, + clamp=clamp, + constant=constant, + domain=domain, + domainMax=domainMax, + domainMid=domainMid, + domainMin=domainMin, + domainRaw=domainRaw, + exponent=exponent, + interpolate=interpolate, + nice=nice, + padding=padding, + paddingInner=paddingInner, + paddingOuter=paddingOuter, + range=range, + rangeMax=rangeMax, + rangeMin=rangeMin, + reverse=reverse, + round=round, + scheme=scheme, + type=type, + zero=zero, + **kwds, + ) class ScaleBins(VegaLiteSchema): """ScaleBins schema wrapper - anyOf(List(float), :class:`ScaleBinParams`) + :class:`ScaleBinParams`, Dict[required=[step]], :class:`ScaleBins`, Sequence[float] """ - _schema = {'$ref': '#/definitions/ScaleBins'} + + _schema = {"$ref": "#/definitions/ScaleBins"} def __init__(self, *args, **kwds): super(ScaleBins, self).__init__(*args, **kwds) @@ -14956,7 +39909,7 @@ def __init__(self, *args, **kwds): class ScaleBinParams(ScaleBins): """ScaleBinParams schema wrapper - Mapping(required=[step]) + :class:`ScaleBinParams`, Dict[required=[step]] Parameters ---------- @@ -14972,21 +39925,28 @@ class ScaleBinParams(ScaleBins): **Default value:** The highest value of the scale domain will be used. """ - _schema = {'$ref': '#/definitions/ScaleBinParams'} - def __init__(self, step=Undefined, start=Undefined, stop=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ScaleBinParams"} + + def __init__( + self, + step: Union[float, UndefinedType] = Undefined, + start: Union[float, UndefinedType] = Undefined, + stop: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(ScaleBinParams, self).__init__(step=step, start=start, stop=stop, **kwds) class ScaleConfig(VegaLiteSchema): """ScaleConfig schema wrapper - Mapping(required=[]) + :class:`ScaleConfig`, Dict Parameters ---------- - bandPaddingInner : anyOf(float, :class:`ExprRef`) + bandPaddingInner : :class:`ExprRef`, Dict[required=[expr]], float Default inner padding for ``x`` and ``y`` band scales. **Default value:** @@ -14995,29 +39955,29 @@ class ScaleConfig(VegaLiteSchema): * ``nestedOffsetPaddingInner`` for x/y scales with nested x/y offset scales. * ``barBandPaddingInner`` for bar marks ( ``0.1`` by default) * ``rectBandPaddingInner`` for rect and other marks ( ``0`` by default) - bandPaddingOuter : anyOf(float, :class:`ExprRef`) + bandPaddingOuter : :class:`ExprRef`, Dict[required=[expr]], float Default outer padding for ``x`` and ``y`` band scales. **Default value:** ``paddingInner/2`` (which makes *width/height = number of unique values * step* ) - bandWithNestedOffsetPaddingInner : anyOf(float, :class:`ExprRef`) + bandWithNestedOffsetPaddingInner : :class:`ExprRef`, Dict[required=[expr]], float Default inner padding for ``x`` and ``y`` band scales with nested ``xOffset`` and ``yOffset`` encoding. **Default value:** ``0.2`` - bandWithNestedOffsetPaddingOuter : anyOf(float, :class:`ExprRef`) + bandWithNestedOffsetPaddingOuter : :class:`ExprRef`, Dict[required=[expr]], float Default outer padding for ``x`` and ``y`` band scales with nested ``xOffset`` and ``yOffset`` encoding. **Default value:** ``0.2`` - barBandPaddingInner : anyOf(float, :class:`ExprRef`) + barBandPaddingInner : :class:`ExprRef`, Dict[required=[expr]], float Default inner padding for ``x`` and ``y`` band-ordinal scales of ``"bar"`` marks. **Default value:** ``0.1`` - clamp : anyOf(boolean, :class:`ExprRef`) + clamp : :class:`ExprRef`, Dict[required=[expr]], bool If true, values that exceed the data domain are clamped to either the minimum or maximum range value - continuousPadding : anyOf(float, :class:`ExprRef`) + continuousPadding : :class:`ExprRef`, Dict[required=[expr]], float Default padding for continuous x/y scales. **Default:** The bar width for continuous x-scale of a vertical bar and continuous @@ -15064,15 +40024,15 @@ class ScaleConfig(VegaLiteSchema): of size for trail marks with zero=false. **Default value:** ``1`` - offsetBandPaddingInner : anyOf(float, :class:`ExprRef`) + offsetBandPaddingInner : :class:`ExprRef`, Dict[required=[expr]], float Default padding inner for xOffset/yOffset's band scales. **Default Value:** ``0`` - offsetBandPaddingOuter : anyOf(float, :class:`ExprRef`) + offsetBandPaddingOuter : :class:`ExprRef`, Dict[required=[expr]], float Default padding outer for xOffset/yOffset's band scales. **Default Value:** ``0`` - pointPadding : anyOf(float, :class:`ExprRef`) + pointPadding : :class:`ExprRef`, Dict[required=[expr]], float Default outer padding for ``x`` and ``y`` point-ordinal scales. **Default value:** ``0.5`` (which makes *width/height = number of unique values * @@ -15087,14 +40047,14 @@ class ScaleConfig(VegaLiteSchema): `__ scale. **Default value:** ``4`` - rectBandPaddingInner : anyOf(float, :class:`ExprRef`) + rectBandPaddingInner : :class:`ExprRef`, Dict[required=[expr]], float Default inner padding for ``x`` and ``y`` band-ordinal scales of ``"rect"`` marks. **Default value:** ``0`` - round : anyOf(boolean, :class:`ExprRef`) + round : :class:`ExprRef`, Dict[required=[expr]], bool If true, rounds numeric output values to integers. This can be helpful for snapping to the pixel grid. (Only available for ``x``, ``y``, and ``size`` scales.) - useUnaggregatedDomain : boolean + useUnaggregatedDomain : bool Use the source data range before aggregation as scale domain instead of aggregated data for aggregate axis. @@ -15107,51 +40067,111 @@ class ScaleConfig(VegaLiteSchema): raw data domain (e.g. ``"count"``, ``"sum"`` ), this property is ignored. **Default value:** ``false`` - xReverse : anyOf(boolean, :class:`ExprRef`) + xReverse : :class:`ExprRef`, Dict[required=[expr]], bool Reverse x-scale by default (useful for right-to-left charts). - zero : boolean + zero : bool Default ``scale.zero`` for `continuous `__ scales except for (1) x/y-scales of non-ranged bar or area charts and (2) size scales. **Default value:** ``true`` """ - _schema = {'$ref': '#/definitions/ScaleConfig'} - - def __init__(self, bandPaddingInner=Undefined, bandPaddingOuter=Undefined, - bandWithNestedOffsetPaddingInner=Undefined, bandWithNestedOffsetPaddingOuter=Undefined, - barBandPaddingInner=Undefined, clamp=Undefined, continuousPadding=Undefined, - maxBandSize=Undefined, maxFontSize=Undefined, maxOpacity=Undefined, maxSize=Undefined, - maxStrokeWidth=Undefined, minBandSize=Undefined, minFontSize=Undefined, - minOpacity=Undefined, minSize=Undefined, minStrokeWidth=Undefined, - offsetBandPaddingInner=Undefined, offsetBandPaddingOuter=Undefined, - pointPadding=Undefined, quantileCount=Undefined, quantizeCount=Undefined, - rectBandPaddingInner=Undefined, round=Undefined, useUnaggregatedDomain=Undefined, - xReverse=Undefined, zero=Undefined, **kwds): - super(ScaleConfig, self).__init__(bandPaddingInner=bandPaddingInner, - bandPaddingOuter=bandPaddingOuter, - bandWithNestedOffsetPaddingInner=bandWithNestedOffsetPaddingInner, - bandWithNestedOffsetPaddingOuter=bandWithNestedOffsetPaddingOuter, - barBandPaddingInner=barBandPaddingInner, clamp=clamp, - continuousPadding=continuousPadding, maxBandSize=maxBandSize, - maxFontSize=maxFontSize, maxOpacity=maxOpacity, - maxSize=maxSize, maxStrokeWidth=maxStrokeWidth, - minBandSize=minBandSize, minFontSize=minFontSize, - minOpacity=minOpacity, minSize=minSize, - minStrokeWidth=minStrokeWidth, - offsetBandPaddingInner=offsetBandPaddingInner, - offsetBandPaddingOuter=offsetBandPaddingOuter, - pointPadding=pointPadding, quantileCount=quantileCount, - quantizeCount=quantizeCount, - rectBandPaddingInner=rectBandPaddingInner, round=round, - useUnaggregatedDomain=useUnaggregatedDomain, - xReverse=xReverse, zero=zero, **kwds) + + _schema = {"$ref": "#/definitions/ScaleConfig"} + + def __init__( + self, + bandPaddingInner: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + bandPaddingOuter: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + bandWithNestedOffsetPaddingInner: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + bandWithNestedOffsetPaddingOuter: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + barBandPaddingInner: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + clamp: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + continuousPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + maxBandSize: Union[float, UndefinedType] = Undefined, + maxFontSize: Union[float, UndefinedType] = Undefined, + maxOpacity: Union[float, UndefinedType] = Undefined, + maxSize: Union[float, UndefinedType] = Undefined, + maxStrokeWidth: Union[float, UndefinedType] = Undefined, + minBandSize: Union[float, UndefinedType] = Undefined, + minFontSize: Union[float, UndefinedType] = Undefined, + minOpacity: Union[float, UndefinedType] = Undefined, + minSize: Union[float, UndefinedType] = Undefined, + minStrokeWidth: Union[float, UndefinedType] = Undefined, + offsetBandPaddingInner: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offsetBandPaddingOuter: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + pointPadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + quantileCount: Union[float, UndefinedType] = Undefined, + quantizeCount: Union[float, UndefinedType] = Undefined, + rectBandPaddingInner: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + round: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + useUnaggregatedDomain: Union[bool, UndefinedType] = Undefined, + xReverse: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + zero: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(ScaleConfig, self).__init__( + bandPaddingInner=bandPaddingInner, + bandPaddingOuter=bandPaddingOuter, + bandWithNestedOffsetPaddingInner=bandWithNestedOffsetPaddingInner, + bandWithNestedOffsetPaddingOuter=bandWithNestedOffsetPaddingOuter, + barBandPaddingInner=barBandPaddingInner, + clamp=clamp, + continuousPadding=continuousPadding, + maxBandSize=maxBandSize, + maxFontSize=maxFontSize, + maxOpacity=maxOpacity, + maxSize=maxSize, + maxStrokeWidth=maxStrokeWidth, + minBandSize=minBandSize, + minFontSize=minFontSize, + minOpacity=minOpacity, + minSize=minSize, + minStrokeWidth=minStrokeWidth, + offsetBandPaddingInner=offsetBandPaddingInner, + offsetBandPaddingOuter=offsetBandPaddingOuter, + pointPadding=pointPadding, + quantileCount=quantileCount, + quantizeCount=quantizeCount, + rectBandPaddingInner=rectBandPaddingInner, + round=round, + useUnaggregatedDomain=useUnaggregatedDomain, + xReverse=xReverse, + zero=zero, + **kwds, + ) class ScaleDatumDef(OffsetDef): """ScaleDatumDef schema wrapper - Mapping(required=[]) + :class:`ScaleDatumDef`, Dict Parameters ---------- @@ -15160,9 +40180,9 @@ class ScaleDatumDef(OffsetDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -15175,7 +40195,7 @@ class ScaleDatumDef(OffsetDef): **See also:** `scale `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15195,7 +40215,7 @@ class ScaleDatumDef(OffsetDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -15265,23 +40285,55 @@ class ScaleDatumDef(OffsetDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/ScaleDatumDef'} - def __init__(self, bandPosition=Undefined, datum=Undefined, scale=Undefined, title=Undefined, - type=Undefined, **kwds): - super(ScaleDatumDef, self).__init__(bandPosition=bandPosition, datum=datum, scale=scale, - title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/ScaleDatumDef"} + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ScaleDatumDef, self).__init__( + bandPosition=bandPosition, + datum=datum, + scale=scale, + title=title, + type=type, + **kwds, + ) class ScaleFieldDef(OffsetDef): """ScaleFieldDef schema wrapper - Mapping(required=[]) + :class:`ScaleFieldDef`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -15293,7 +40345,7 @@ class ScaleFieldDef(OffsetDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -15314,7 +40366,7 @@ class ScaleFieldDef(OffsetDef): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -15329,7 +40381,7 @@ class ScaleFieldDef(OffsetDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -15342,7 +40394,7 @@ class ScaleFieldDef(OffsetDef): **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -15381,7 +40433,7 @@ class ScaleFieldDef(OffsetDef): **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -15390,7 +40442,7 @@ class ScaleFieldDef(OffsetDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15410,7 +40462,7 @@ class ScaleFieldDef(OffsetDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -15480,22 +40532,296 @@ class ScaleFieldDef(OffsetDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/ScaleFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - scale=Undefined, sort=Undefined, timeUnit=Undefined, title=Undefined, type=Undefined, - **kwds): - super(ScaleFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, scale=scale, sort=sort, timeUnit=timeUnit, - title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/ScaleFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ScaleFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class ScaleInterpolateEnum(VegaLiteSchema): """ScaleInterpolateEnum schema wrapper - enum('rgb', 'lab', 'hcl', 'hsl', 'hsl-long', 'hcl-long', 'cubehelix', 'cubehelix-long') + :class:`ScaleInterpolateEnum`, Literal['rgb', 'lab', 'hcl', 'hsl', 'hsl-long', 'hcl-long', + 'cubehelix', 'cubehelix-long'] """ - _schema = {'$ref': '#/definitions/ScaleInterpolateEnum'} + + _schema = {"$ref": "#/definitions/ScaleInterpolateEnum"} def __init__(self, *args): super(ScaleInterpolateEnum, self).__init__(*args) @@ -15504,86 +40830,162 @@ def __init__(self, *args): class ScaleInterpolateParams(VegaLiteSchema): """ScaleInterpolateParams schema wrapper - Mapping(required=[type]) + :class:`ScaleInterpolateParams`, Dict[required=[type]] Parameters ---------- - type : enum('rgb', 'cubehelix', 'cubehelix-long') + type : Literal['rgb', 'cubehelix', 'cubehelix-long'] gamma : float """ - _schema = {'$ref': '#/definitions/ScaleInterpolateParams'} - def __init__(self, type=Undefined, gamma=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ScaleInterpolateParams"} + + def __init__( + self, + type: Union[ + Literal["rgb", "cubehelix", "cubehelix-long"], UndefinedType + ] = Undefined, + gamma: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(ScaleInterpolateParams, self).__init__(type=type, gamma=gamma, **kwds) class ScaleResolveMap(VegaLiteSchema): """ScaleResolveMap schema wrapper - Mapping(required=[]) + :class:`ScaleResolveMap`, Dict Parameters ---------- - angle : :class:`ResolveMode` - - color : :class:`ResolveMode` - - fill : :class:`ResolveMode` - - fillOpacity : :class:`ResolveMode` - - opacity : :class:`ResolveMode` - - radius : :class:`ResolveMode` - - shape : :class:`ResolveMode` - - size : :class:`ResolveMode` - - stroke : :class:`ResolveMode` - - strokeDash : :class:`ResolveMode` - - strokeOpacity : :class:`ResolveMode` - - strokeWidth : :class:`ResolveMode` - - theta : :class:`ResolveMode` - - x : :class:`ResolveMode` - - xOffset : :class:`ResolveMode` - - y : :class:`ResolveMode` - - yOffset : :class:`ResolveMode` - - """ - _schema = {'$ref': '#/definitions/ScaleResolveMap'} - - def __init__(self, angle=Undefined, color=Undefined, fill=Undefined, fillOpacity=Undefined, - opacity=Undefined, radius=Undefined, shape=Undefined, size=Undefined, stroke=Undefined, - strokeDash=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, theta=Undefined, - x=Undefined, xOffset=Undefined, y=Undefined, yOffset=Undefined, **kwds): - super(ScaleResolveMap, self).__init__(angle=angle, color=color, fill=fill, - fillOpacity=fillOpacity, opacity=opacity, radius=radius, - shape=shape, size=size, stroke=stroke, - strokeDash=strokeDash, strokeOpacity=strokeOpacity, - strokeWidth=strokeWidth, theta=theta, x=x, - xOffset=xOffset, y=y, yOffset=yOffset, **kwds) + angle : :class:`ResolveMode`, Literal['independent', 'shared'] + + color : :class:`ResolveMode`, Literal['independent', 'shared'] + + fill : :class:`ResolveMode`, Literal['independent', 'shared'] + + fillOpacity : :class:`ResolveMode`, Literal['independent', 'shared'] + + opacity : :class:`ResolveMode`, Literal['independent', 'shared'] + + radius : :class:`ResolveMode`, Literal['independent', 'shared'] + + shape : :class:`ResolveMode`, Literal['independent', 'shared'] + + size : :class:`ResolveMode`, Literal['independent', 'shared'] + + stroke : :class:`ResolveMode`, Literal['independent', 'shared'] + + strokeDash : :class:`ResolveMode`, Literal['independent', 'shared'] + + strokeOpacity : :class:`ResolveMode`, Literal['independent', 'shared'] + + strokeWidth : :class:`ResolveMode`, Literal['independent', 'shared'] + + theta : :class:`ResolveMode`, Literal['independent', 'shared'] + + x : :class:`ResolveMode`, Literal['independent', 'shared'] + + xOffset : :class:`ResolveMode`, Literal['independent', 'shared'] + + y : :class:`ResolveMode`, Literal['independent', 'shared'] + + yOffset : :class:`ResolveMode`, Literal['independent', 'shared'] + + """ + + _schema = {"$ref": "#/definitions/ScaleResolveMap"} + + def __init__( + self, + angle: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + color: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + fill: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + fillOpacity: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + opacity: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + radius: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + shape: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + size: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + stroke: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + strokeDash: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + theta: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + x: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + xOffset: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + y: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + yOffset: Union[ + Union["ResolveMode", Literal["independent", "shared"]], UndefinedType + ] = Undefined, + **kwds, + ): + super(ScaleResolveMap, self).__init__( + angle=angle, + color=color, + fill=fill, + fillOpacity=fillOpacity, + opacity=opacity, + radius=radius, + shape=shape, + size=size, + stroke=stroke, + strokeDash=strokeDash, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + theta=theta, + x=x, + xOffset=xOffset, + y=y, + yOffset=yOffset, + **kwds, + ) class ScaleType(VegaLiteSchema): """ScaleType schema wrapper - enum('linear', 'log', 'pow', 'sqrt', 'symlog', 'identity', 'sequential', 'time', 'utc', - 'quantile', 'quantize', 'threshold', 'bin-ordinal', 'ordinal', 'point', 'band') + :class:`ScaleType`, Literal['linear', 'log', 'pow', 'sqrt', 'symlog', 'identity', + 'sequential', 'time', 'utc', 'quantile', 'quantize', 'threshold', 'bin-ordinal', 'ordinal', + 'point', 'band'] """ - _schema = {'$ref': '#/definitions/ScaleType'} + + _schema = {"$ref": "#/definitions/ScaleType"} def __init__(self, *args): super(ScaleType, self).__init__(*args) @@ -15592,12 +40994,12 @@ def __init__(self, *args): class SchemeParams(VegaLiteSchema): """SchemeParams schema wrapper - Mapping(required=[name]) + :class:`SchemeParams`, Dict[required=[name]] Parameters ---------- - name : :class:`ColorScheme` + name : :class:`Categorical`, Literal['accent', 'category10', 'category20', 'category20b', 'category20c', 'dark2', 'paired', 'pastel1', 'pastel2', 'set1', 'set2', 'set3', 'tableau10', 'tableau20'], :class:`ColorScheme`, :class:`Cyclical`, Literal['rainbow', 'sinebow'], :class:`Diverging`, Literal['blueorange', 'blueorange-3', 'blueorange-4', 'blueorange-5', 'blueorange-6', 'blueorange-7', 'blueorange-8', 'blueorange-9', 'blueorange-10', 'blueorange-11', 'brownbluegreen', 'brownbluegreen-3', 'brownbluegreen-4', 'brownbluegreen-5', 'brownbluegreen-6', 'brownbluegreen-7', 'brownbluegreen-8', 'brownbluegreen-9', 'brownbluegreen-10', 'brownbluegreen-11', 'purplegreen', 'purplegreen-3', 'purplegreen-4', 'purplegreen-5', 'purplegreen-6', 'purplegreen-7', 'purplegreen-8', 'purplegreen-9', 'purplegreen-10', 'purplegreen-11', 'pinkyellowgreen', 'pinkyellowgreen-3', 'pinkyellowgreen-4', 'pinkyellowgreen-5', 'pinkyellowgreen-6', 'pinkyellowgreen-7', 'pinkyellowgreen-8', 'pinkyellowgreen-9', 'pinkyellowgreen-10', 'pinkyellowgreen-11', 'purpleorange', 'purpleorange-3', 'purpleorange-4', 'purpleorange-5', 'purpleorange-6', 'purpleorange-7', 'purpleorange-8', 'purpleorange-9', 'purpleorange-10', 'purpleorange-11', 'redblue', 'redblue-3', 'redblue-4', 'redblue-5', 'redblue-6', 'redblue-7', 'redblue-8', 'redblue-9', 'redblue-10', 'redblue-11', 'redgrey', 'redgrey-3', 'redgrey-4', 'redgrey-5', 'redgrey-6', 'redgrey-7', 'redgrey-8', 'redgrey-9', 'redgrey-10', 'redgrey-11', 'redyellowblue', 'redyellowblue-3', 'redyellowblue-4', 'redyellowblue-5', 'redyellowblue-6', 'redyellowblue-7', 'redyellowblue-8', 'redyellowblue-9', 'redyellowblue-10', 'redyellowblue-11', 'redyellowgreen', 'redyellowgreen-3', 'redyellowgreen-4', 'redyellowgreen-5', 'redyellowgreen-6', 'redyellowgreen-7', 'redyellowgreen-8', 'redyellowgreen-9', 'redyellowgreen-10', 'redyellowgreen-11', 'spectral', 'spectral-3', 'spectral-4', 'spectral-5', 'spectral-6', 'spectral-7', 'spectral-8', 'spectral-9', 'spectral-10', 'spectral-11'], :class:`SequentialMultiHue`, Literal['turbo', 'viridis', 'inferno', 'magma', 'plasma', 'cividis', 'bluegreen', 'bluegreen-3', 'bluegreen-4', 'bluegreen-5', 'bluegreen-6', 'bluegreen-7', 'bluegreen-8', 'bluegreen-9', 'bluepurple', 'bluepurple-3', 'bluepurple-4', 'bluepurple-5', 'bluepurple-6', 'bluepurple-7', 'bluepurple-8', 'bluepurple-9', 'goldgreen', 'goldgreen-3', 'goldgreen-4', 'goldgreen-5', 'goldgreen-6', 'goldgreen-7', 'goldgreen-8', 'goldgreen-9', 'goldorange', 'goldorange-3', 'goldorange-4', 'goldorange-5', 'goldorange-6', 'goldorange-7', 'goldorange-8', 'goldorange-9', 'goldred', 'goldred-3', 'goldred-4', 'goldred-5', 'goldred-6', 'goldred-7', 'goldred-8', 'goldred-9', 'greenblue', 'greenblue-3', 'greenblue-4', 'greenblue-5', 'greenblue-6', 'greenblue-7', 'greenblue-8', 'greenblue-9', 'orangered', 'orangered-3', 'orangered-4', 'orangered-5', 'orangered-6', 'orangered-7', 'orangered-8', 'orangered-9', 'purplebluegreen', 'purplebluegreen-3', 'purplebluegreen-4', 'purplebluegreen-5', 'purplebluegreen-6', 'purplebluegreen-7', 'purplebluegreen-8', 'purplebluegreen-9', 'purpleblue', 'purpleblue-3', 'purpleblue-4', 'purpleblue-5', 'purpleblue-6', 'purpleblue-7', 'purpleblue-8', 'purpleblue-9', 'purplered', 'purplered-3', 'purplered-4', 'purplered-5', 'purplered-6', 'purplered-7', 'purplered-8', 'purplered-9', 'redpurple', 'redpurple-3', 'redpurple-4', 'redpurple-5', 'redpurple-6', 'redpurple-7', 'redpurple-8', 'redpurple-9', 'yellowgreenblue', 'yellowgreenblue-3', 'yellowgreenblue-4', 'yellowgreenblue-5', 'yellowgreenblue-6', 'yellowgreenblue-7', 'yellowgreenblue-8', 'yellowgreenblue-9', 'yellowgreen', 'yellowgreen-3', 'yellowgreen-4', 'yellowgreen-5', 'yellowgreen-6', 'yellowgreen-7', 'yellowgreen-8', 'yellowgreen-9', 'yelloworangebrown', 'yelloworangebrown-3', 'yelloworangebrown-4', 'yelloworangebrown-5', 'yelloworangebrown-6', 'yelloworangebrown-7', 'yelloworangebrown-8', 'yelloworangebrown-9', 'yelloworangered', 'yelloworangered-3', 'yelloworangered-4', 'yelloworangered-5', 'yelloworangered-6', 'yelloworangered-7', 'yelloworangered-8', 'yelloworangered-9', 'darkblue', 'darkblue-3', 'darkblue-4', 'darkblue-5', 'darkblue-6', 'darkblue-7', 'darkblue-8', 'darkblue-9', 'darkgold', 'darkgold-3', 'darkgold-4', 'darkgold-5', 'darkgold-6', 'darkgold-7', 'darkgold-8', 'darkgold-9', 'darkgreen', 'darkgreen-3', 'darkgreen-4', 'darkgreen-5', 'darkgreen-6', 'darkgreen-7', 'darkgreen-8', 'darkgreen-9', 'darkmulti', 'darkmulti-3', 'darkmulti-4', 'darkmulti-5', 'darkmulti-6', 'darkmulti-7', 'darkmulti-8', 'darkmulti-9', 'darkred', 'darkred-3', 'darkred-4', 'darkred-5', 'darkred-6', 'darkred-7', 'darkred-8', 'darkred-9', 'lightgreyred', 'lightgreyred-3', 'lightgreyred-4', 'lightgreyred-5', 'lightgreyred-6', 'lightgreyred-7', 'lightgreyred-8', 'lightgreyred-9', 'lightgreyteal', 'lightgreyteal-3', 'lightgreyteal-4', 'lightgreyteal-5', 'lightgreyteal-6', 'lightgreyteal-7', 'lightgreyteal-8', 'lightgreyteal-9', 'lightmulti', 'lightmulti-3', 'lightmulti-4', 'lightmulti-5', 'lightmulti-6', 'lightmulti-7', 'lightmulti-8', 'lightmulti-9', 'lightorange', 'lightorange-3', 'lightorange-4', 'lightorange-5', 'lightorange-6', 'lightorange-7', 'lightorange-8', 'lightorange-9', 'lighttealblue', 'lighttealblue-3', 'lighttealblue-4', 'lighttealblue-5', 'lighttealblue-6', 'lighttealblue-7', 'lighttealblue-8', 'lighttealblue-9'], :class:`SequentialSingleHue`, Literal['blues', 'tealblues', 'teals', 'greens', 'browns', 'greys', 'purples', 'warmgreys', 'reds', 'oranges'] A color scheme name for ordinal scales (e.g., ``"category10"`` or ``"blues"`` ). For the full list of supported schemes, please refer to the `Vega Scheme @@ -15606,28 +41008,395 @@ class SchemeParams(VegaLiteSchema): The number of colors to use in the scheme. This can be useful for scale types such as ``"quantize"``, which use the length of the scale range to determine the number of discrete bins for the scale domain. - extent : List(float) + extent : Sequence[float] The extent of the color range to use. For example ``[0.2, 1]`` will rescale the color scheme such that color values in the range *[0, 0.2)* are excluded from the scheme. """ - _schema = {'$ref': '#/definitions/SchemeParams'} - def __init__(self, name=Undefined, count=Undefined, extent=Undefined, **kwds): - super(SchemeParams, self).__init__(name=name, count=count, extent=extent, **kwds) + _schema = {"$ref": "#/definitions/SchemeParams"} + + def __init__( + self, + name: Union[ + Union[ + "ColorScheme", + Union[ + "Categorical", + Literal[ + "accent", + "category10", + "category20", + "category20b", + "category20c", + "dark2", + "paired", + "pastel1", + "pastel2", + "set1", + "set2", + "set3", + "tableau10", + "tableau20", + ], + ], + Union["Cyclical", Literal["rainbow", "sinebow"]], + Union[ + "Diverging", + Literal[ + "blueorange", + "blueorange-3", + "blueorange-4", + "blueorange-5", + "blueorange-6", + "blueorange-7", + "blueorange-8", + "blueorange-9", + "blueorange-10", + "blueorange-11", + "brownbluegreen", + "brownbluegreen-3", + "brownbluegreen-4", + "brownbluegreen-5", + "brownbluegreen-6", + "brownbluegreen-7", + "brownbluegreen-8", + "brownbluegreen-9", + "brownbluegreen-10", + "brownbluegreen-11", + "purplegreen", + "purplegreen-3", + "purplegreen-4", + "purplegreen-5", + "purplegreen-6", + "purplegreen-7", + "purplegreen-8", + "purplegreen-9", + "purplegreen-10", + "purplegreen-11", + "pinkyellowgreen", + "pinkyellowgreen-3", + "pinkyellowgreen-4", + "pinkyellowgreen-5", + "pinkyellowgreen-6", + "pinkyellowgreen-7", + "pinkyellowgreen-8", + "pinkyellowgreen-9", + "pinkyellowgreen-10", + "pinkyellowgreen-11", + "purpleorange", + "purpleorange-3", + "purpleorange-4", + "purpleorange-5", + "purpleorange-6", + "purpleorange-7", + "purpleorange-8", + "purpleorange-9", + "purpleorange-10", + "purpleorange-11", + "redblue", + "redblue-3", + "redblue-4", + "redblue-5", + "redblue-6", + "redblue-7", + "redblue-8", + "redblue-9", + "redblue-10", + "redblue-11", + "redgrey", + "redgrey-3", + "redgrey-4", + "redgrey-5", + "redgrey-6", + "redgrey-7", + "redgrey-8", + "redgrey-9", + "redgrey-10", + "redgrey-11", + "redyellowblue", + "redyellowblue-3", + "redyellowblue-4", + "redyellowblue-5", + "redyellowblue-6", + "redyellowblue-7", + "redyellowblue-8", + "redyellowblue-9", + "redyellowblue-10", + "redyellowblue-11", + "redyellowgreen", + "redyellowgreen-3", + "redyellowgreen-4", + "redyellowgreen-5", + "redyellowgreen-6", + "redyellowgreen-7", + "redyellowgreen-8", + "redyellowgreen-9", + "redyellowgreen-10", + "redyellowgreen-11", + "spectral", + "spectral-3", + "spectral-4", + "spectral-5", + "spectral-6", + "spectral-7", + "spectral-8", + "spectral-9", + "spectral-10", + "spectral-11", + ], + ], + Union[ + "SequentialMultiHue", + Literal[ + "turbo", + "viridis", + "inferno", + "magma", + "plasma", + "cividis", + "bluegreen", + "bluegreen-3", + "bluegreen-4", + "bluegreen-5", + "bluegreen-6", + "bluegreen-7", + "bluegreen-8", + "bluegreen-9", + "bluepurple", + "bluepurple-3", + "bluepurple-4", + "bluepurple-5", + "bluepurple-6", + "bluepurple-7", + "bluepurple-8", + "bluepurple-9", + "goldgreen", + "goldgreen-3", + "goldgreen-4", + "goldgreen-5", + "goldgreen-6", + "goldgreen-7", + "goldgreen-8", + "goldgreen-9", + "goldorange", + "goldorange-3", + "goldorange-4", + "goldorange-5", + "goldorange-6", + "goldorange-7", + "goldorange-8", + "goldorange-9", + "goldred", + "goldred-3", + "goldred-4", + "goldred-5", + "goldred-6", + "goldred-7", + "goldred-8", + "goldred-9", + "greenblue", + "greenblue-3", + "greenblue-4", + "greenblue-5", + "greenblue-6", + "greenblue-7", + "greenblue-8", + "greenblue-9", + "orangered", + "orangered-3", + "orangered-4", + "orangered-5", + "orangered-6", + "orangered-7", + "orangered-8", + "orangered-9", + "purplebluegreen", + "purplebluegreen-3", + "purplebluegreen-4", + "purplebluegreen-5", + "purplebluegreen-6", + "purplebluegreen-7", + "purplebluegreen-8", + "purplebluegreen-9", + "purpleblue", + "purpleblue-3", + "purpleblue-4", + "purpleblue-5", + "purpleblue-6", + "purpleblue-7", + "purpleblue-8", + "purpleblue-9", + "purplered", + "purplered-3", + "purplered-4", + "purplered-5", + "purplered-6", + "purplered-7", + "purplered-8", + "purplered-9", + "redpurple", + "redpurple-3", + "redpurple-4", + "redpurple-5", + "redpurple-6", + "redpurple-7", + "redpurple-8", + "redpurple-9", + "yellowgreenblue", + "yellowgreenblue-3", + "yellowgreenblue-4", + "yellowgreenblue-5", + "yellowgreenblue-6", + "yellowgreenblue-7", + "yellowgreenblue-8", + "yellowgreenblue-9", + "yellowgreen", + "yellowgreen-3", + "yellowgreen-4", + "yellowgreen-5", + "yellowgreen-6", + "yellowgreen-7", + "yellowgreen-8", + "yellowgreen-9", + "yelloworangebrown", + "yelloworangebrown-3", + "yelloworangebrown-4", + "yelloworangebrown-5", + "yelloworangebrown-6", + "yelloworangebrown-7", + "yelloworangebrown-8", + "yelloworangebrown-9", + "yelloworangered", + "yelloworangered-3", + "yelloworangered-4", + "yelloworangered-5", + "yelloworangered-6", + "yelloworangered-7", + "yelloworangered-8", + "yelloworangered-9", + "darkblue", + "darkblue-3", + "darkblue-4", + "darkblue-5", + "darkblue-6", + "darkblue-7", + "darkblue-8", + "darkblue-9", + "darkgold", + "darkgold-3", + "darkgold-4", + "darkgold-5", + "darkgold-6", + "darkgold-7", + "darkgold-8", + "darkgold-9", + "darkgreen", + "darkgreen-3", + "darkgreen-4", + "darkgreen-5", + "darkgreen-6", + "darkgreen-7", + "darkgreen-8", + "darkgreen-9", + "darkmulti", + "darkmulti-3", + "darkmulti-4", + "darkmulti-5", + "darkmulti-6", + "darkmulti-7", + "darkmulti-8", + "darkmulti-9", + "darkred", + "darkred-3", + "darkred-4", + "darkred-5", + "darkred-6", + "darkred-7", + "darkred-8", + "darkred-9", + "lightgreyred", + "lightgreyred-3", + "lightgreyred-4", + "lightgreyred-5", + "lightgreyred-6", + "lightgreyred-7", + "lightgreyred-8", + "lightgreyred-9", + "lightgreyteal", + "lightgreyteal-3", + "lightgreyteal-4", + "lightgreyteal-5", + "lightgreyteal-6", + "lightgreyteal-7", + "lightgreyteal-8", + "lightgreyteal-9", + "lightmulti", + "lightmulti-3", + "lightmulti-4", + "lightmulti-5", + "lightmulti-6", + "lightmulti-7", + "lightmulti-8", + "lightmulti-9", + "lightorange", + "lightorange-3", + "lightorange-4", + "lightorange-5", + "lightorange-6", + "lightorange-7", + "lightorange-8", + "lightorange-9", + "lighttealblue", + "lighttealblue-3", + "lighttealblue-4", + "lighttealblue-5", + "lighttealblue-6", + "lighttealblue-7", + "lighttealblue-8", + "lighttealblue-9", + ], + ], + Union[ + "SequentialSingleHue", + Literal[ + "blues", + "tealblues", + "teals", + "greens", + "browns", + "greys", + "purples", + "warmgreys", + "reds", + "oranges", + ], + ], + ], + UndefinedType, + ] = Undefined, + count: Union[float, UndefinedType] = Undefined, + extent: Union[Sequence[float], UndefinedType] = Undefined, + **kwds, + ): + super(SchemeParams, self).__init__( + name=name, count=count, extent=extent, **kwds + ) class SecondaryFieldDef(Position2Def): """SecondaryFieldDef schema wrapper - Mapping(required=[]) + :class:`SecondaryFieldDef`, Dict[required=[shorthand]] A field definition of a secondary channel that shares a scale with another primary channel. For example, ``x2``, ``xError`` and ``xError2`` share the same scale with ``x``. Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -15660,7 +41429,7 @@ class SecondaryFieldDef(Position2Def): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -15675,7 +41444,7 @@ class SecondaryFieldDef(Position2Def): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -15684,7 +41453,7 @@ class SecondaryFieldDef(Position2Def): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -15705,23 +41474,230 @@ class SecondaryFieldDef(Position2Def): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. """ - _schema = {'$ref': '#/definitions/SecondaryFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - timeUnit=Undefined, title=Undefined, **kwds): - super(SecondaryFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, timeUnit=timeUnit, title=title, **kwds) + _schema = {"$ref": "#/definitions/SecondaryFieldDef"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[None, UndefinedType] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + **kwds, + ): + super(SecondaryFieldDef, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + **kwds, + ) class SelectionConfig(VegaLiteSchema): """SelectionConfig schema wrapper - Mapping(required=[]) + :class:`SelectionConfig`, Dict Parameters ---------- - interval : :class:`IntervalSelectionConfigWithoutType` + interval : :class:`IntervalSelectionConfigWithoutType`, Dict The default definition for an `interval `__ selection. All properties and transformations for an interval selection definition (except ``type`` @@ -15729,7 +41705,7 @@ class SelectionConfig(VegaLiteSchema): For instance, setting ``interval`` to ``{"translate": false}`` disables the ability to move interval selections by default. - point : :class:`PointSelectionConfigWithoutType` + point : :class:`PointSelectionConfigWithoutType`, Dict The default definition for a `point `__ selection. All properties and transformations for a point selection definition (except ``type`` ) @@ -15738,18 +41714,30 @@ class SelectionConfig(VegaLiteSchema): For instance, setting ``point`` to ``{"on": "dblclick"}`` populates point selections on double-click by default. """ - _schema = {'$ref': '#/definitions/SelectionConfig'} - def __init__(self, interval=Undefined, point=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SelectionConfig"} + + def __init__( + self, + interval: Union[ + Union["IntervalSelectionConfigWithoutType", dict], UndefinedType + ] = Undefined, + point: Union[ + Union["PointSelectionConfigWithoutType", dict], UndefinedType + ] = Undefined, + **kwds, + ): super(SelectionConfig, self).__init__(interval=interval, point=point, **kwds) class SelectionInit(VegaLiteSchema): """SelectionInit schema wrapper - anyOf(:class:`PrimitiveValue`, :class:`DateTime`) + :class:`DateTime`, Dict, :class:`PrimitiveValue`, None, bool, float, str, + :class:`SelectionInit` """ - _schema = {'$ref': '#/definitions/SelectionInit'} + + _schema = {"$ref": "#/definitions/SelectionInit"} def __init__(self, *args, **kwds): super(SelectionInit, self).__init__(*args, **kwds) @@ -15758,7 +41746,7 @@ def __init__(self, *args, **kwds): class DateTime(SelectionInit): """DateTime schema wrapper - Mapping(required=[]) + :class:`DateTime`, Dict Object for defining datetime in Vega-Lite Filter. If both month and quarter are provided, month has higher precedence. ``day`` cannot be combined with other date. We accept string for month and day names. @@ -15768,7 +41756,7 @@ class DateTime(SelectionInit): date : float Integer value representing the date (day of the month) from 1-31. - day : anyOf(:class:`Day`, string) + day : :class:`Day`, float, str Value representing the day of a week. This can be one of: (1) integer value -- ``1`` represents Monday; (2) case-insensitive day name (e.g., ``"Monday"`` ); (3) case-insensitive, 3-character short day name (e.g., ``"Mon"`` ). @@ -15781,7 +41769,7 @@ class DateTime(SelectionInit): Integer value representing the millisecond segment of time. minutes : float Integer value representing the minute segment of time from 0-59. - month : anyOf(:class:`Month`, string) + month : :class:`Month`, float, str One of: (1) integer value representing the month from ``1`` - ``12``. ``1`` represents January; (2) case-insensitive month name (e.g., ``"January"`` ); (3) case-insensitive, 3-character short month name (e.g., ``"Jan"`` ). @@ -15789,28 +41777,51 @@ class DateTime(SelectionInit): Integer value representing the quarter of the year (from 1-4). seconds : float Integer value representing the second segment (0-59) of a time value - utc : boolean + utc : bool A boolean flag indicating if date time is in utc time. If false, the date time is in local time year : float Integer value representing the year. """ - _schema = {'$ref': '#/definitions/DateTime'} - def __init__(self, date=Undefined, day=Undefined, hours=Undefined, milliseconds=Undefined, - minutes=Undefined, month=Undefined, quarter=Undefined, seconds=Undefined, - utc=Undefined, year=Undefined, **kwds): - super(DateTime, self).__init__(date=date, day=day, hours=hours, milliseconds=milliseconds, - minutes=minutes, month=month, quarter=quarter, seconds=seconds, - utc=utc, year=year, **kwds) + _schema = {"$ref": "#/definitions/DateTime"} + + def __init__( + self, + date: Union[float, UndefinedType] = Undefined, + day: Union[Union[Union["Day", float], str], UndefinedType] = Undefined, + hours: Union[float, UndefinedType] = Undefined, + milliseconds: Union[float, UndefinedType] = Undefined, + minutes: Union[float, UndefinedType] = Undefined, + month: Union[Union[Union["Month", float], str], UndefinedType] = Undefined, + quarter: Union[float, UndefinedType] = Undefined, + seconds: Union[float, UndefinedType] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + year: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(DateTime, self).__init__( + date=date, + day=day, + hours=hours, + milliseconds=milliseconds, + minutes=minutes, + month=month, + quarter=quarter, + seconds=seconds, + utc=utc, + year=year, + **kwds, + ) class PrimitiveValue(SelectionInit): """PrimitiveValue schema wrapper - anyOf(float, string, boolean, None) + :class:`PrimitiveValue`, None, bool, float, str """ - _schema = {'$ref': '#/definitions/PrimitiveValue'} + + _schema = {"$ref": "#/definitions/PrimitiveValue"} def __init__(self, *args): super(PrimitiveValue, self).__init__(*args) @@ -15819,10 +41830,12 @@ def __init__(self, *args): class SelectionInitInterval(VegaLiteSchema): """SelectionInitInterval schema wrapper - anyOf(:class:`Vector2boolean`, :class:`Vector2number`, :class:`Vector2string`, - :class:`Vector2DateTime`) + :class:`SelectionInitInterval`, :class:`Vector2DateTime`, Sequence[:class:`DateTime`, Dict], + :class:`Vector2boolean`, Sequence[bool], :class:`Vector2number`, Sequence[float], + :class:`Vector2string`, Sequence[str] """ - _schema = {'$ref': '#/definitions/SelectionInitInterval'} + + _schema = {"$ref": "#/definitions/SelectionInitInterval"} def __init__(self, *args, **kwds): super(SelectionInitInterval, self).__init__(*args, **kwds) @@ -15831,9 +41844,10 @@ def __init__(self, *args, **kwds): class SelectionInitIntervalMapping(VegaLiteSchema): """SelectionInitIntervalMapping schema wrapper - Mapping(required=[]) + :class:`SelectionInitIntervalMapping`, Dict """ - _schema = {'$ref': '#/definitions/SelectionInitIntervalMapping'} + + _schema = {"$ref": "#/definitions/SelectionInitIntervalMapping"} def __init__(self, **kwds): super(SelectionInitIntervalMapping, self).__init__(**kwds) @@ -15842,9 +41856,10 @@ def __init__(self, **kwds): class SelectionInitMapping(VegaLiteSchema): """SelectionInitMapping schema wrapper - Mapping(required=[]) + :class:`SelectionInitMapping`, Dict """ - _schema = {'$ref': '#/definitions/SelectionInitMapping'} + + _schema = {"$ref": "#/definitions/SelectionInitMapping"} def __init__(self, **kwds): super(SelectionInitMapping, self).__init__(**kwds) @@ -15853,17 +41868,17 @@ def __init__(self, **kwds): class SelectionParameter(VegaLiteSchema): """SelectionParameter schema wrapper - Mapping(required=[name, select]) + :class:`SelectionParameter`, Dict[required=[name, select]] Parameters ---------- - name : :class:`ParameterName` + name : :class:`ParameterName`, str Required. A unique name for the selection parameter. Selection names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or "$", or "_") and may not start with a digit. Reserved keywords that may not be used as parameter names are "datum", "event", "item", and "parent". - select : anyOf(:class:`SelectionType`, :class:`PointSelectionConfig`, :class:`IntervalSelectionConfig`) + select : :class:`IntervalSelectionConfig`, Dict[required=[type]], :class:`PointSelectionConfig`, Dict[required=[type]], :class:`SelectionType`, Literal['point', 'interval'] Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types: @@ -15871,7 +41886,7 @@ class SelectionParameter(VegaLiteSchema): * ``"point"`` -- to select multiple discrete data values; the first value is selected on ``click`` and additional values toggled on shift-click. * ``"interval"`` -- to select a continuous range of data values on ``drag``. - bind : anyOf(:class:`Binding`, Mapping(required=[]), :class:`LegendBinding`, string) + bind : :class:`BindCheckbox`, Dict[required=[input]], :class:`BindDirect`, Dict[required=[element]], :class:`BindInput`, Dict, :class:`BindRadioSelect`, Dict[required=[input, options]], :class:`BindRange`, Dict[required=[input]], :class:`Binding`, :class:`LegendBinding`, :class:`LegendStreamBinding`, Dict[required=[legend]], str, Dict, str When set, a selection is populated by input elements (also known as dynamic query widgets) or by interacting with the corresponding legend. Direct manipulation interaction is disabled by default; to re-enable it, set the selection's `on @@ -15887,7 +41902,7 @@ class SelectionParameter(VegaLiteSchema): **See also:** `bind `__ documentation. - value : anyOf(:class:`SelectionInit`, List(:class:`SelectionInitMapping`), :class:`SelectionInitIntervalMapping`) + value : :class:`DateTime`, Dict, :class:`PrimitiveValue`, None, bool, float, str, :class:`SelectionInit`, :class:`SelectionInitIntervalMapping`, Dict, Sequence[:class:`SelectionInitMapping`, Dict] Initialize the selection with a mapping between `projected channels or field names `__ and initial values. @@ -15895,19 +41910,62 @@ class SelectionParameter(VegaLiteSchema): **See also:** `init `__ documentation. """ - _schema = {'$ref': '#/definitions/SelectionParameter'} - def __init__(self, name=Undefined, select=Undefined, bind=Undefined, value=Undefined, **kwds): - super(SelectionParameter, self).__init__(name=name, select=select, bind=bind, value=value, - **kwds) + _schema = {"$ref": "#/definitions/SelectionParameter"} + + def __init__( + self, + name: Union[Union["ParameterName", str], UndefinedType] = Undefined, + select: Union[ + Union[ + Union["IntervalSelectionConfig", dict], + Union["PointSelectionConfig", dict], + Union["SelectionType", Literal["point", "interval"]], + ], + UndefinedType, + ] = Undefined, + bind: Union[ + Union[ + Union[ + "Binding", + Union["BindCheckbox", dict], + Union["BindDirect", dict], + Union["BindInput", dict], + Union["BindRadioSelect", dict], + Union["BindRange", dict], + ], + Union["LegendBinding", Union["LegendStreamBinding", dict], str], + dict, + str, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Sequence[Union["SelectionInitMapping", dict]], + Union[ + "SelectionInit", + Union["DateTime", dict], + Union["PrimitiveValue", None, bool, float, str], + ], + Union["SelectionInitIntervalMapping", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(SelectionParameter, self).__init__( + name=name, select=select, bind=bind, value=value, **kwds + ) class SelectionResolution(VegaLiteSchema): """SelectionResolution schema wrapper - enum('global', 'union', 'intersect') + :class:`SelectionResolution`, Literal['global', 'union', 'intersect'] """ - _schema = {'$ref': '#/definitions/SelectionResolution'} + + _schema = {"$ref": "#/definitions/SelectionResolution"} def __init__(self, *args): super(SelectionResolution, self).__init__(*args) @@ -15916,9 +41974,10 @@ def __init__(self, *args): class SelectionType(VegaLiteSchema): """SelectionType schema wrapper - enum('point', 'interval') + :class:`SelectionType`, Literal['point', 'interval'] """ - _schema = {'$ref': '#/definitions/SelectionType'} + + _schema = {"$ref": "#/definitions/SelectionType"} def __init__(self, *args): super(SelectionType, self).__init__(*args) @@ -15927,26 +41986,32 @@ def __init__(self, *args): class SequenceGenerator(Generator): """SequenceGenerator schema wrapper - Mapping(required=[sequence]) + :class:`SequenceGenerator`, Dict[required=[sequence]] Parameters ---------- - sequence : :class:`SequenceParams` + sequence : :class:`SequenceParams`, Dict[required=[start, stop]] Generate a sequence of numbers. - name : string + name : str Provide a placeholder name and bind data at runtime. """ - _schema = {'$ref': '#/definitions/SequenceGenerator'} - def __init__(self, sequence=Undefined, name=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SequenceGenerator"} + + def __init__( + self, + sequence: Union[Union["SequenceParams", dict], UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): super(SequenceGenerator, self).__init__(sequence=sequence, name=name, **kwds) class SequenceParams(VegaLiteSchema): """SequenceParams schema wrapper - Mapping(required=[start, stop]) + :class:`SequenceParams`, Dict[required=[start, stop]] Parameters ---------- @@ -15959,28 +42024,35 @@ class SequenceParams(VegaLiteSchema): The step value between sequence entries. **Default value:** ``1`` - as : :class:`FieldName` + as : :class:`FieldName`, str The name of the generated sequence field. **Default value:** ``"data"`` """ - _schema = {'$ref': '#/definitions/SequenceParams'} - def __init__(self, start=Undefined, stop=Undefined, step=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SequenceParams"} + + def __init__( + self, + start: Union[float, UndefinedType] = Undefined, + stop: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(SequenceParams, self).__init__(start=start, stop=stop, step=step, **kwds) class SequentialMultiHue(ColorScheme): """SequentialMultiHue schema wrapper - enum('turbo', 'viridis', 'inferno', 'magma', 'plasma', 'cividis', 'bluegreen', - 'bluegreen-3', 'bluegreen-4', 'bluegreen-5', 'bluegreen-6', 'bluegreen-7', 'bluegreen-8', - 'bluegreen-9', 'bluepurple', 'bluepurple-3', 'bluepurple-4', 'bluepurple-5', 'bluepurple-6', - 'bluepurple-7', 'bluepurple-8', 'bluepurple-9', 'goldgreen', 'goldgreen-3', 'goldgreen-4', - 'goldgreen-5', 'goldgreen-6', 'goldgreen-7', 'goldgreen-8', 'goldgreen-9', 'goldorange', - 'goldorange-3', 'goldorange-4', 'goldorange-5', 'goldorange-6', 'goldorange-7', - 'goldorange-8', 'goldorange-9', 'goldred', 'goldred-3', 'goldred-4', 'goldred-5', - 'goldred-6', 'goldred-7', 'goldred-8', 'goldred-9', 'greenblue', 'greenblue-3', + :class:`SequentialMultiHue`, Literal['turbo', 'viridis', 'inferno', 'magma', 'plasma', + 'cividis', 'bluegreen', 'bluegreen-3', 'bluegreen-4', 'bluegreen-5', 'bluegreen-6', + 'bluegreen-7', 'bluegreen-8', 'bluegreen-9', 'bluepurple', 'bluepurple-3', 'bluepurple-4', + 'bluepurple-5', 'bluepurple-6', 'bluepurple-7', 'bluepurple-8', 'bluepurple-9', 'goldgreen', + 'goldgreen-3', 'goldgreen-4', 'goldgreen-5', 'goldgreen-6', 'goldgreen-7', 'goldgreen-8', + 'goldgreen-9', 'goldorange', 'goldorange-3', 'goldorange-4', 'goldorange-5', 'goldorange-6', + 'goldorange-7', 'goldorange-8', 'goldorange-9', 'goldred', 'goldred-3', 'goldred-4', + 'goldred-5', 'goldred-6', 'goldred-7', 'goldred-8', 'goldred-9', 'greenblue', 'greenblue-3', 'greenblue-4', 'greenblue-5', 'greenblue-6', 'greenblue-7', 'greenblue-8', 'greenblue-9', 'orangered', 'orangered-3', 'orangered-4', 'orangered-5', 'orangered-6', 'orangered-7', 'orangered-8', 'orangered-9', 'purplebluegreen', 'purplebluegreen-3', 'purplebluegreen-4', @@ -16011,9 +42083,10 @@ class SequentialMultiHue(ColorScheme): 'lightmulti-9', 'lightorange', 'lightorange-3', 'lightorange-4', 'lightorange-5', 'lightorange-6', 'lightorange-7', 'lightorange-8', 'lightorange-9', 'lighttealblue', 'lighttealblue-3', 'lighttealblue-4', 'lighttealblue-5', 'lighttealblue-6', - 'lighttealblue-7', 'lighttealblue-8', 'lighttealblue-9') + 'lighttealblue-7', 'lighttealblue-8', 'lighttealblue-9'] """ - _schema = {'$ref': '#/definitions/SequentialMultiHue'} + + _schema = {"$ref": "#/definitions/SequentialMultiHue"} def __init__(self, *args): super(SequentialMultiHue, self).__init__(*args) @@ -16022,10 +42095,11 @@ def __init__(self, *args): class SequentialSingleHue(ColorScheme): """SequentialSingleHue schema wrapper - enum('blues', 'tealblues', 'teals', 'greens', 'browns', 'greys', 'purples', 'warmgreys', - 'reds', 'oranges') + :class:`SequentialSingleHue`, Literal['blues', 'tealblues', 'teals', 'greens', 'browns', + 'greys', 'purples', 'warmgreys', 'reds', 'oranges'] """ - _schema = {'$ref': '#/definitions/SequentialSingleHue'} + + _schema = {"$ref": "#/definitions/SequentialSingleHue"} def __init__(self, *args): super(SequentialSingleHue, self).__init__(*args) @@ -16034,20 +42108,24 @@ def __init__(self, *args): class ShapeDef(VegaLiteSchema): """ShapeDef schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, - :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, - :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`) + :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, Dict, + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, + Dict[required=[shorthand]], :class:`ShapeDef`, + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`, Dict """ - _schema = {'$ref': '#/definitions/ShapeDef'} + + _schema = {"$ref": "#/definitions/ShapeDef"} def __init__(self, *args, **kwds): super(ShapeDef, self).__init__(*args, **kwds) -class FieldOrDatumDefWithConditionDatumDefstringnull(MarkPropDefstringnullTypeForShape, ShapeDef): +class FieldOrDatumDefWithConditionDatumDefstringnull( + MarkPropDefstringnullTypeForShape, ShapeDef +): """FieldOrDatumDefWithConditionDatumDefstringnull schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionDatumDefstringnull`, Dict Parameters ---------- @@ -16056,16 +42134,16 @@ class FieldOrDatumDefWithConditionDatumDefstringnull(MarkPropDefstringnullTypeFo Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -16085,7 +42163,7 @@ class FieldOrDatumDefWithConditionDatumDefstringnull(MarkPropDefstringnullTypeFo 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -16155,25 +42233,76 @@ class FieldOrDatumDefWithConditionDatumDefstringnull(MarkPropDefstringnullTypeFo **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - - def __init__(self, bandPosition=Undefined, condition=Undefined, datum=Undefined, title=Undefined, - type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionDatumDefstringnull, self).__init__(bandPosition=bandPosition, - condition=condition, - datum=datum, title=title, - type=type, **kwds) - -class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPropDefstringnullTypeForShape, ShapeDef): + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionDatumDefstringnull, self).__init__( + bandPosition=bandPosition, + condition=condition, + datum=datum, + title=title, + type=type, + **kwds, + ) + + +class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull( + MarkPropDefstringnullTypeForShape, ShapeDef +): """FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull`, + Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -16185,7 +42314,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, None) + bin : :class:`BinParams`, Dict, None, bool A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -16206,14 +42335,14 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -16228,7 +42357,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - legend : anyOf(:class:`Legend`, None) + legend : :class:`Legend`, Dict, None An object defining properties of the legend. If ``null``, the legend for the encoding channel will be removed. @@ -16237,7 +42366,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro **See also:** `legend `__ documentation. - scale : anyOf(:class:`Scale`, None) + scale : :class:`Scale`, Dict, None An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. @@ -16250,7 +42379,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro **See also:** `scale `__ documentation. - sort : :class:`Sort` + sort : :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None Sort order for the encoded field. For continuous fields (quantitative or temporal), ``sort`` can be either @@ -16289,7 +42418,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro **See also:** `sort `__ documentation. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -16298,7 +42427,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -16318,7 +42447,7 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`TypeForShape` + type : :class:`TypeForShape`, Literal['nominal', 'ordinal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -16388,61 +42517,345 @@ class FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull(MarkPro **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition,(string|null)>'} - - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, legend=Undefined, scale=Undefined, sort=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, - bin=bin, - condition=condition, - field=field, - legend=legend, - scale=scale, - sort=sort, - timeUnit=timeUnit, - title=title, - type=type, - **kwds) + + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition,(string|null)>" + } + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + legend: Union[Union[None, Union["Legend", dict]], UndefinedType] = Undefined, + scale: Union[Union[None, Union["Scale", dict]], UndefinedType] = Undefined, + sort: Union[ + Union[ + "Sort", + None, + Union[ + "AllSortString", + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + Union[ + "SortByChannelDesc", + Literal[ + "-x", + "-y", + "-color", + "-fill", + "-stroke", + "-strokeWidth", + "-size", + "-shape", + "-fillOpacity", + "-strokeOpacity", + "-opacity", + "-text", + ], + ], + Union["SortOrder", Literal["ascending", "descending"]], + ], + Union["EncodingSortField", dict], + Union[ + "SortArray", + Sequence[Union["DateTime", dict]], + Sequence[bool], + Sequence[float], + Sequence[str], + ], + Union["SortByEncoding", dict], + ], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union["TypeForShape", Literal["nominal", "ordinal", "geojson"]], + UndefinedType, + ] = Undefined, + **kwds, + ): + super( + FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull, self + ).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + legend=legend, + scale=scale, + sort=sort, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class SharedEncoding(VegaLiteSchema): """SharedEncoding schema wrapper - Mapping(required=[]) + :class:`SharedEncoding`, Dict Parameters ---------- - angle : Mapping(required=[]) + angle : Dict - color : Mapping(required=[]) + color : Dict - description : Mapping(required=[]) + description : Dict - detail : anyOf(:class:`FieldDefWithoutScale`, List(:class:`FieldDefWithoutScale`)) + detail : :class:`FieldDefWithoutScale`, Dict[required=[shorthand]], Sequence[:class:`FieldDefWithoutScale`, Dict[required=[shorthand]]] Additional levels of detail for grouping data in aggregate views and in line, trail, and area marks without mapping data to a specific visual channel. - fill : Mapping(required=[]) + fill : Dict - fillOpacity : Mapping(required=[]) + fillOpacity : Dict - href : Mapping(required=[]) + href : Dict - key : Mapping(required=[]) + key : Dict - latitude : Mapping(required=[]) + latitude : Dict - latitude2 : Mapping(required=[]) + latitude2 : Dict - longitude : Mapping(required=[]) + longitude : Dict - longitude2 : Mapping(required=[]) + longitude2 : Dict - opacity : Mapping(required=[]) + opacity : Dict - order : anyOf(:class:`OrderFieldDef`, List(:class:`OrderFieldDef`), :class:`OrderValueDef`, :class:`OrderOnlyDef`) + order : :class:`OrderFieldDef`, Dict[required=[shorthand]], :class:`OrderOnlyDef`, Dict, :class:`OrderValueDef`, Dict[required=[value]], Sequence[:class:`OrderFieldDef`, Dict[required=[shorthand]]] Order of the marks. @@ -16457,92 +42870,176 @@ class SharedEncoding(VegaLiteSchema): **Note** : In aggregate plots, ``order`` field should be ``aggregate`` d to avoid creating additional aggregation grouping. - radius : Mapping(required=[]) + radius : Dict - radius2 : Mapping(required=[]) + radius2 : Dict - shape : Mapping(required=[]) + shape : Dict - size : Mapping(required=[]) + size : Dict - stroke : Mapping(required=[]) + stroke : Dict - strokeDash : Mapping(required=[]) + strokeDash : Dict - strokeOpacity : Mapping(required=[]) + strokeOpacity : Dict - strokeWidth : Mapping(required=[]) + strokeWidth : Dict - text : Mapping(required=[]) + text : Dict - theta : Mapping(required=[]) + theta : Dict - theta2 : Mapping(required=[]) + theta2 : Dict - tooltip : anyOf(:class:`StringFieldDefWithCondition`, :class:`StringValueDefWithCondition`, List(:class:`StringFieldDef`), None) + tooltip : :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]], :class:`StringValueDefWithCondition`, Dict, None, Sequence[:class:`StringFieldDef`, Dict] The tooltip text to show upon mouse hover. Specifying ``tooltip`` encoding overrides `the tooltip property in the mark definition `__. See the `tooltip `__ documentation for a detailed discussion about tooltip in Vega-Lite. - url : Mapping(required=[]) - - x : Mapping(required=[]) - - x2 : Mapping(required=[]) - - xError : Mapping(required=[]) - - xError2 : Mapping(required=[]) - - xOffset : Mapping(required=[]) - - y : Mapping(required=[]) - - y2 : Mapping(required=[]) - - yError : Mapping(required=[]) - - yError2 : Mapping(required=[]) - - yOffset : Mapping(required=[]) - - """ - _schema = {'$ref': '#/definitions/SharedEncoding'} - - def __init__(self, angle=Undefined, color=Undefined, description=Undefined, detail=Undefined, - fill=Undefined, fillOpacity=Undefined, href=Undefined, key=Undefined, - latitude=Undefined, latitude2=Undefined, longitude=Undefined, longitude2=Undefined, - opacity=Undefined, order=Undefined, radius=Undefined, radius2=Undefined, - shape=Undefined, size=Undefined, stroke=Undefined, strokeDash=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, text=Undefined, theta=Undefined, - theta2=Undefined, tooltip=Undefined, url=Undefined, x=Undefined, x2=Undefined, - xError=Undefined, xError2=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, - yError=Undefined, yError2=Undefined, yOffset=Undefined, **kwds): - super(SharedEncoding, self).__init__(angle=angle, color=color, description=description, - detail=detail, fill=fill, fillOpacity=fillOpacity, - href=href, key=key, latitude=latitude, latitude2=latitude2, - longitude=longitude, longitude2=longitude2, - opacity=opacity, order=order, radius=radius, - radius2=radius2, shape=shape, size=size, stroke=stroke, - strokeDash=strokeDash, strokeOpacity=strokeOpacity, - strokeWidth=strokeWidth, text=text, theta=theta, - theta2=theta2, tooltip=tooltip, url=url, x=x, x2=x2, - xError=xError, xError2=xError2, xOffset=xOffset, y=y, - y2=y2, yError=yError, yError2=yError2, yOffset=yOffset, - **kwds) + url : Dict + + x : Dict + + x2 : Dict + + xError : Dict + + xError2 : Dict + + xOffset : Dict + + y : Dict + + y2 : Dict + + yError : Dict + + yError2 : Dict + + yOffset : Dict + + """ + + _schema = {"$ref": "#/definitions/SharedEncoding"} + + def __init__( + self, + angle: Union[dict, UndefinedType] = Undefined, + color: Union[dict, UndefinedType] = Undefined, + description: Union[dict, UndefinedType] = Undefined, + detail: Union[ + Union[ + Sequence[Union["FieldDefWithoutScale", dict]], + Union["FieldDefWithoutScale", dict], + ], + UndefinedType, + ] = Undefined, + fill: Union[dict, UndefinedType] = Undefined, + fillOpacity: Union[dict, UndefinedType] = Undefined, + href: Union[dict, UndefinedType] = Undefined, + key: Union[dict, UndefinedType] = Undefined, + latitude: Union[dict, UndefinedType] = Undefined, + latitude2: Union[dict, UndefinedType] = Undefined, + longitude: Union[dict, UndefinedType] = Undefined, + longitude2: Union[dict, UndefinedType] = Undefined, + opacity: Union[dict, UndefinedType] = Undefined, + order: Union[ + Union[ + Sequence[Union["OrderFieldDef", dict]], + Union["OrderFieldDef", dict], + Union["OrderOnlyDef", dict], + Union["OrderValueDef", dict], + ], + UndefinedType, + ] = Undefined, + radius: Union[dict, UndefinedType] = Undefined, + radius2: Union[dict, UndefinedType] = Undefined, + shape: Union[dict, UndefinedType] = Undefined, + size: Union[dict, UndefinedType] = Undefined, + stroke: Union[dict, UndefinedType] = Undefined, + strokeDash: Union[dict, UndefinedType] = Undefined, + strokeOpacity: Union[dict, UndefinedType] = Undefined, + strokeWidth: Union[dict, UndefinedType] = Undefined, + text: Union[dict, UndefinedType] = Undefined, + theta: Union[dict, UndefinedType] = Undefined, + theta2: Union[dict, UndefinedType] = Undefined, + tooltip: Union[ + Union[ + None, + Sequence[Union["StringFieldDef", dict]], + Union["StringFieldDefWithCondition", dict], + Union["StringValueDefWithCondition", dict], + ], + UndefinedType, + ] = Undefined, + url: Union[dict, UndefinedType] = Undefined, + x: Union[dict, UndefinedType] = Undefined, + x2: Union[dict, UndefinedType] = Undefined, + xError: Union[dict, UndefinedType] = Undefined, + xError2: Union[dict, UndefinedType] = Undefined, + xOffset: Union[dict, UndefinedType] = Undefined, + y: Union[dict, UndefinedType] = Undefined, + y2: Union[dict, UndefinedType] = Undefined, + yError: Union[dict, UndefinedType] = Undefined, + yError2: Union[dict, UndefinedType] = Undefined, + yOffset: Union[dict, UndefinedType] = Undefined, + **kwds, + ): + super(SharedEncoding, self).__init__( + angle=angle, + color=color, + description=description, + detail=detail, + fill=fill, + fillOpacity=fillOpacity, + href=href, + key=key, + latitude=latitude, + latitude2=latitude2, + longitude=longitude, + longitude2=longitude2, + opacity=opacity, + order=order, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + stroke=stroke, + strokeDash=strokeDash, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + text=text, + theta=theta, + theta2=theta2, + tooltip=tooltip, + url=url, + x=x, + x2=x2, + xError=xError, + xError2=xError2, + xOffset=xOffset, + y=y, + y2=y2, + yError=yError, + yError2=yError2, + yOffset=yOffset, + **kwds, + ) class SingleDefUnitChannel(VegaLiteSchema): """SingleDefUnitChannel schema wrapper - enum('x', 'y', 'xOffset', 'yOffset', 'x2', 'y2', 'longitude', 'latitude', 'longitude2', - 'latitude2', 'theta', 'theta2', 'radius', 'radius2', 'color', 'fill', 'stroke', 'opacity', - 'fillOpacity', 'strokeOpacity', 'strokeWidth', 'strokeDash', 'size', 'angle', 'shape', - 'key', 'text', 'href', 'url', 'description') + :class:`SingleDefUnitChannel`, Literal['x', 'y', 'xOffset', 'yOffset', 'x2', 'y2', + 'longitude', 'latitude', 'longitude2', 'latitude2', 'theta', 'theta2', 'radius', 'radius2', + 'color', 'fill', 'stroke', 'opacity', 'fillOpacity', 'strokeOpacity', 'strokeWidth', + 'strokeDash', 'size', 'angle', 'shape', 'key', 'text', 'href', 'url', 'description'] """ - _schema = {'$ref': '#/definitions/SingleDefUnitChannel'} + + _schema = {"$ref": "#/definitions/SingleDefUnitChannel"} def __init__(self, *args): super(SingleDefUnitChannel, self).__init__(*args) @@ -16551,10 +43048,16 @@ def __init__(self, *args): class Sort(VegaLiteSchema): """Sort schema wrapper - anyOf(:class:`SortArray`, :class:`AllSortString`, :class:`EncodingSortField`, - :class:`SortByEncoding`, None) + :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', + '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', + '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', + 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], + :class:`SortOrder`, Literal['ascending', 'descending'], :class:`EncodingSortField`, Dict, + :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], + Sequence[str], :class:`SortByEncoding`, Dict[required=[encoding]], :class:`Sort`, None """ - _schema = {'$ref': '#/definitions/Sort'} + + _schema = {"$ref": "#/definitions/Sort"} def __init__(self, *args, **kwds): super(Sort, self).__init__(*args, **kwds) @@ -16563,9 +43066,14 @@ def __init__(self, *args, **kwds): class AllSortString(Sort): """AllSortString schema wrapper - anyOf(:class:`SortOrder`, :class:`SortByChannel`, :class:`SortByChannelDesc`) + :class:`AllSortString`, :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', + '-stroke', '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', + '-text'], :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', + 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'], + :class:`SortOrder`, Literal['ascending', 'descending'] """ - _schema = {'$ref': '#/definitions/AllSortString'} + + _schema = {"$ref": "#/definitions/AllSortString"} def __init__(self, *args, **kwds): super(AllSortString, self).__init__(*args, **kwds) @@ -16574,18 +43082,18 @@ def __init__(self, *args, **kwds): class EncodingSortField(Sort): """EncodingSortField schema wrapper - Mapping(required=[]) + :class:`EncodingSortField`, Dict A sort definition for sorting a discrete scale in an encoding field definition. Parameters ---------- - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] The data `field `__ to sort by. **Default value:** If unspecified, defaults to the field specified in the outer data reference. - op : :class:`NonArgAggregateOp` + op : :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] An `aggregate operation `__ to perform on the field prior to sorting (e.g., ``"count"``, ``"mean"`` and ``"median"`` ). An @@ -16597,22 +43105,65 @@ class EncodingSortField(Sort): `__. **Default value:** ``"sum"`` for stacked plots. Otherwise, ``"min"``. - order : anyOf(:class:`SortOrder`, None) + order : :class:`SortOrder`, Literal['ascending', 'descending'], None The sort order. One of ``"ascending"`` (default), ``"descending"``, or ``null`` (no not sort). """ - _schema = {'$ref': '#/definitions/EncodingSortField'} - def __init__(self, field=Undefined, op=Undefined, order=Undefined, **kwds): + _schema = {"$ref": "#/definitions/EncodingSortField"} + + def __init__( + self, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + op: Union[ + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union["SortOrder", Literal["ascending", "descending"]]], + UndefinedType, + ] = Undefined, + **kwds, + ): super(EncodingSortField, self).__init__(field=field, op=op, order=order, **kwds) class SortArray(Sort): """SortArray schema wrapper - anyOf(List(float), List(string), List(boolean), List(:class:`DateTime`)) + :class:`SortArray`, Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], + Sequence[str] """ - _schema = {'$ref': '#/definitions/SortArray'} + + _schema = {"$ref": "#/definitions/SortArray"} def __init__(self, *args, **kwds): super(SortArray, self).__init__(*args, **kwds) @@ -16621,10 +43172,11 @@ def __init__(self, *args, **kwds): class SortByChannel(AllSortString): """SortByChannel schema wrapper - enum('x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', - 'strokeOpacity', 'opacity', 'text') + :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', + 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'] """ - _schema = {'$ref': '#/definitions/SortByChannel'} + + _schema = {"$ref": "#/definitions/SortByChannel"} def __init__(self, *args): super(SortByChannel, self).__init__(*args) @@ -16633,10 +43185,11 @@ def __init__(self, *args): class SortByChannelDesc(AllSortString): """SortByChannelDesc schema wrapper - enum('-x', '-y', '-color', '-fill', '-stroke', '-strokeWidth', '-size', '-shape', - '-fillOpacity', '-strokeOpacity', '-opacity', '-text') + :class:`SortByChannelDesc`, Literal['-x', '-y', '-color', '-fill', '-stroke', + '-strokeWidth', '-size', '-shape', '-fillOpacity', '-strokeOpacity', '-opacity', '-text'] """ - _schema = {'$ref': '#/definitions/SortByChannelDesc'} + + _schema = {"$ref": "#/definitions/SortByChannelDesc"} def __init__(self, *args): super(SortByChannelDesc, self).__init__(*args) @@ -16645,52 +43198,90 @@ def __init__(self, *args): class SortByEncoding(Sort): """SortByEncoding schema wrapper - Mapping(required=[encoding]) + :class:`SortByEncoding`, Dict[required=[encoding]] Parameters ---------- - encoding : :class:`SortByChannel` + encoding : :class:`SortByChannel`, Literal['x', 'y', 'color', 'fill', 'stroke', 'strokeWidth', 'size', 'shape', 'fillOpacity', 'strokeOpacity', 'opacity', 'text'] The `encoding channel `__ to sort by (e.g., ``"x"``, ``"y"`` ) - order : anyOf(:class:`SortOrder`, None) + order : :class:`SortOrder`, Literal['ascending', 'descending'], None The sort order. One of ``"ascending"`` (default), ``"descending"``, or ``null`` (no not sort). """ - _schema = {'$ref': '#/definitions/SortByEncoding'} - def __init__(self, encoding=Undefined, order=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SortByEncoding"} + + def __init__( + self, + encoding: Union[ + Union[ + "SortByChannel", + Literal[ + "x", + "y", + "color", + "fill", + "stroke", + "strokeWidth", + "size", + "shape", + "fillOpacity", + "strokeOpacity", + "opacity", + "text", + ], + ], + UndefinedType, + ] = Undefined, + order: Union[ + Union[None, Union["SortOrder", Literal["ascending", "descending"]]], + UndefinedType, + ] = Undefined, + **kwds, + ): super(SortByEncoding, self).__init__(encoding=encoding, order=order, **kwds) class SortField(VegaLiteSchema): """SortField schema wrapper - Mapping(required=[field]) + :class:`SortField`, Dict[required=[field]] A sort definition for transform Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str The name of the field to sort. - order : anyOf(:class:`SortOrder`, None) + order : :class:`SortOrder`, Literal['ascending', 'descending'], None Whether to sort the field in ascending or descending order. One of ``"ascending"`` (default), ``"descending"``, or ``null`` (no not sort). """ - _schema = {'$ref': '#/definitions/SortField'} - def __init__(self, field=Undefined, order=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SortField"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + order: Union[ + Union[None, Union["SortOrder", Literal["ascending", "descending"]]], + UndefinedType, + ] = Undefined, + **kwds, + ): super(SortField, self).__init__(field=field, order=order, **kwds) class SortOrder(AllSortString): """SortOrder schema wrapper - enum('ascending', 'descending') + :class:`SortOrder`, Literal['ascending', 'descending'] """ - _schema = {'$ref': '#/definitions/SortOrder'} + + _schema = {"$ref": "#/definitions/SortOrder"} def __init__(self, *args): super(SortOrder, self).__init__(*args) @@ -16699,12 +43290,16 @@ def __init__(self, *args): class Spec(VegaLiteSchema): """Spec schema wrapper - anyOf(:class:`FacetedUnitSpec`, :class:`LayerSpec`, :class:`RepeatSpec`, :class:`FacetSpec`, - :class:`ConcatSpecGenericSpec`, :class:`VConcatSpecGenericSpec`, - :class:`HConcatSpecGenericSpec`) + :class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, + Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], + :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, + Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], + :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`Spec`, + :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]] Any specification in Vega-Lite. """ - _schema = {'$ref': '#/definitions/Spec'} + + _schema = {"$ref": "#/definitions/Spec"} def __init__(self, *args, **kwds): super(Spec, self).__init__(*args, **kwds) @@ -16713,15 +43308,15 @@ def __init__(self, *args, **kwds): class ConcatSpecGenericSpec(Spec, NonNormalizedSpec): """ConcatSpecGenericSpec schema wrapper - Mapping(required=[concat]) + :class:`ConcatSpecGenericSpec`, Dict[required=[concat]] Base interface for a generalized concatenation specification. Parameters ---------- - concat : List(:class:`Spec`) + concat : Sequence[:class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`Spec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]]] A list of views to be concatenated. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -16738,7 +43333,7 @@ class ConcatSpecGenericSpec(Spec, NonNormalizedSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -16750,7 +43345,7 @@ class ConcatSpecGenericSpec(Spec, NonNormalizedSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -16776,16 +43371,16 @@ class ConcatSpecGenericSpec(Spec, NonNormalizedSpec): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -16793,41 +43388,142 @@ class ConcatSpecGenericSpec(Spec, NonNormalizedSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/ConcatSpec'} - def __init__(self, concat=Undefined, align=Undefined, bounds=Undefined, center=Undefined, - columns=Undefined, data=Undefined, description=Undefined, name=Undefined, - resolve=Undefined, spacing=Undefined, title=Undefined, transform=Undefined, **kwds): - super(ConcatSpecGenericSpec, self).__init__(concat=concat, align=align, bounds=bounds, - center=center, columns=columns, data=data, - description=description, name=name, resolve=resolve, - spacing=spacing, title=title, transform=transform, - **kwds) + _schema = {"$ref": "#/definitions/ConcatSpec"} + + def __init__( + self, + concat: Union[ + Sequence[ + Union[ + "Spec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ] + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ConcatSpecGenericSpec, self).__init__( + concat=concat, + align=align, + bounds=bounds, + center=center, + columns=columns, + data=data, + description=description, + name=name, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + **kwds, + ) class FacetSpec(Spec, NonNormalizedSpec): """FacetSpec schema wrapper - Mapping(required=[facet, spec]) + :class:`FacetSpec`, Dict[required=[facet, spec]] Base interface for a facet specification. Parameters ---------- - facet : anyOf(:class:`FacetFieldDef`, :class:`FacetMapping`) + facet : :class:`FacetFieldDef`, Dict, :class:`FacetMapping`, Dict Definition for how to facet the data. One of: 1) `a field definition for faceting the plot by one field `__ 2) `An object that maps row and column channels to their field definitions `__ - spec : anyOf(:class:`LayerSpec`, :class:`FacetedUnitSpec`) + spec : :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`LayerSpec`, Dict[required=[layer]] A specification of the view that gets faceted. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -16844,7 +43540,7 @@ class FacetSpec(Spec, NonNormalizedSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -16856,7 +43552,7 @@ class FacetSpec(Spec, NonNormalizedSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -16882,16 +43578,16 @@ class FacetSpec(Spec, NonNormalizedSpec): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -16899,39 +43595,130 @@ class FacetSpec(Spec, NonNormalizedSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/FacetSpec'} - def __init__(self, facet=Undefined, spec=Undefined, align=Undefined, bounds=Undefined, - center=Undefined, columns=Undefined, data=Undefined, description=Undefined, - name=Undefined, resolve=Undefined, spacing=Undefined, title=Undefined, - transform=Undefined, **kwds): - super(FacetSpec, self).__init__(facet=facet, spec=spec, align=align, bounds=bounds, - center=center, columns=columns, data=data, - description=description, name=name, resolve=resolve, - spacing=spacing, title=title, transform=transform, **kwds) + _schema = {"$ref": "#/definitions/FacetSpec"} + + def __init__( + self, + facet: Union[ + Union[Union["FacetFieldDef", dict], Union["FacetMapping", dict]], + UndefinedType, + ] = Undefined, + spec: Union[ + Union[Union["FacetedUnitSpec", dict], Union["LayerSpec", dict]], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FacetSpec, self).__init__( + facet=facet, + spec=spec, + align=align, + bounds=bounds, + center=center, + columns=columns, + data=data, + description=description, + name=name, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + **kwds, + ) class FacetedUnitSpec(Spec, NonNormalizedSpec): """FacetedUnitSpec schema wrapper - Mapping(required=[mark]) + :class:`FacetedUnitSpec`, Dict[required=[mark]] Unit spec that can have a composite mark and row or column channels (shorthand for a facet spec). Parameters ---------- - mark : :class:`AnyMark` + mark : :class:`AnyMark`, :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]], :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, str, :class:`MarkDef`, Dict[required=[type]], :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] A string describing the mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"rule"``, ``"geoshape"``, and ``"text"`` ) or a `mark definition object `__. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -16948,7 +43735,7 @@ class FacetedUnitSpec(Spec, NonNormalizedSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -16960,7 +43747,7 @@ class FacetedUnitSpec(Spec, NonNormalizedSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -16968,14 +43755,14 @@ class FacetedUnitSpec(Spec, NonNormalizedSpec): supply different centering values for rows and columns. **Default value:** ``false`` - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`FacetedEncoding` + encoding : :class:`FacetedEncoding`, Dict A key-value mapping between encoding channels and definition of fields. - height : anyOf(float, string, :class:`Step`) + height : :class:`Step`, Dict[required=[step]], float, str The height of a visualization. @@ -16995,18 +43782,18 @@ class FacetedUnitSpec(Spec, NonNormalizedSpec): **See also:** `height `__ documentation. - name : string + name : str Name of the visualization for later reference. - params : List(:class:`SelectionParameter`) + params : Sequence[:class:`SelectionParameter`, Dict[required=[name, select]]] An array of parameters that may either be simple variables, or more complex selections that map user input to data queries. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of geographic projection, which will be applied to ``shape`` path for ``"geoshape"`` marks and to ``latitude`` and ``"longitude"`` channels for other marks. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -17014,15 +43801,15 @@ class FacetedUnitSpec(Spec, NonNormalizedSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - view : :class:`ViewBackground` + view : :class:`ViewBackground`, Dict An object defining the view background's fill and stroke. **Default value:** none (transparent) - width : anyOf(float, string, :class:`Step`) + width : :class:`Step`, Dict[required=[step]], float, str The width of a visualization. @@ -17043,33 +43830,164 @@ class FacetedUnitSpec(Spec, NonNormalizedSpec): **See also:** `width `__ documentation. """ - _schema = {'$ref': '#/definitions/FacetedUnitSpec'} - def __init__(self, mark=Undefined, align=Undefined, bounds=Undefined, center=Undefined, - data=Undefined, description=Undefined, encoding=Undefined, height=Undefined, - name=Undefined, params=Undefined, projection=Undefined, resolve=Undefined, - spacing=Undefined, title=Undefined, transform=Undefined, view=Undefined, - width=Undefined, **kwds): - super(FacetedUnitSpec, self).__init__(mark=mark, align=align, bounds=bounds, center=center, - data=data, description=description, encoding=encoding, - height=height, name=name, params=params, - projection=projection, resolve=resolve, spacing=spacing, - title=title, transform=transform, view=view, width=width, - **kwds) + _schema = {"$ref": "#/definitions/FacetedUnitSpec"} + + def __init__( + self, + mark: Union[ + Union[ + "AnyMark", + Union[ + "CompositeMark", + Union["BoxPlot", str], + Union["ErrorBand", str], + Union["ErrorBar", str], + ], + Union[ + "CompositeMarkDef", + Union["BoxPlotDef", dict], + Union["ErrorBandDef", dict], + Union["ErrorBarDef", dict], + ], + Union[ + "Mark", + Literal[ + "arc", + "area", + "bar", + "image", + "line", + "point", + "rect", + "rule", + "text", + "tick", + "trail", + "circle", + "square", + "geoshape", + ], + ], + Union["MarkDef", dict], + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["FacetedEncoding", dict], UndefinedType] = Undefined, + height: Union[ + Union[Union["Step", dict], float, str], UndefinedType + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + params: Union[ + Sequence[Union["SelectionParameter", dict]], UndefinedType + ] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + view: Union[Union["ViewBackground", dict], UndefinedType] = Undefined, + width: Union[Union[Union["Step", dict], float, str], UndefinedType] = Undefined, + **kwds, + ): + super(FacetedUnitSpec, self).__init__( + mark=mark, + align=align, + bounds=bounds, + center=center, + data=data, + description=description, + encoding=encoding, + height=height, + name=name, + params=params, + projection=projection, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + view=view, + width=width, + **kwds, + ) class HConcatSpecGenericSpec(Spec, NonNormalizedSpec): """HConcatSpecGenericSpec schema wrapper - Mapping(required=[hconcat]) + :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]] Base interface for a horizontal concatenation specification. Parameters ---------- - hconcat : List(:class:`Spec`) + hconcat : Sequence[:class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`Spec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]]] A list of views to be concatenated and put into a row. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -17081,66 +43999,154 @@ class HConcatSpecGenericSpec(Spec, NonNormalizedSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : boolean + center : bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. spacing : float The spacing in pixels between sub-views of the concat operator. **Default value** : ``10`` - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/HConcatSpec'} - def __init__(self, hconcat=Undefined, bounds=Undefined, center=Undefined, data=Undefined, - description=Undefined, name=Undefined, resolve=Undefined, spacing=Undefined, - title=Undefined, transform=Undefined, **kwds): - super(HConcatSpecGenericSpec, self).__init__(hconcat=hconcat, bounds=bounds, center=center, - data=data, description=description, name=name, - resolve=resolve, spacing=spacing, title=title, - transform=transform, **kwds) + _schema = {"$ref": "#/definitions/HConcatSpec"} + + def __init__( + self, + hconcat: Union[ + Sequence[ + Union[ + "Spec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ] + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(HConcatSpecGenericSpec, self).__init__( + hconcat=hconcat, + bounds=bounds, + center=center, + data=data, + description=description, + name=name, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + **kwds, + ) class LayerSpec(Spec, NonNormalizedSpec): """LayerSpec schema wrapper - Mapping(required=[layer]) + :class:`LayerSpec`, Dict[required=[layer]] A full layered plot specification, which may contains ``encoding`` and ``projection`` properties that will be applied to underlying unit (single-view) specifications. Parameters ---------- - layer : List(anyOf(:class:`LayerSpec`, :class:`UnitSpec`)) + layer : Sequence[:class:`LayerSpec`, Dict[required=[layer]], :class:`UnitSpec`, Dict[required=[mark]]] Layer or single view specifications to be layered. **Note** : Specifications inside ``layer`` cannot use ``row`` and ``column`` channels as layering facet specifications is not allowed. Instead, use the `facet operator `__ and place a layer inside a facet. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`SharedEncoding` + encoding : :class:`SharedEncoding`, Dict A shared key-value mapping between encoding channels and definition of fields in the underlying layers. - height : anyOf(float, string, :class:`Step`) + height : :class:`Step`, Dict[required=[step]], float, str The height of a visualization. @@ -17160,22 +44166,22 @@ class LayerSpec(Spec, NonNormalizedSpec): **See also:** `height `__ documentation. - name : string + name : str Name of the visualization for later reference. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of the geographic projection shared by underlying layers. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - view : :class:`ViewBackground` + view : :class:`ViewBackground`, Dict An object defining the view background's fill and stroke. **Default value:** none (transparent) - width : anyOf(float, string, :class:`Step`) + width : :class:`Step`, Dict[required=[step]], float, str The width of a visualization. @@ -17196,23 +44202,104 @@ class LayerSpec(Spec, NonNormalizedSpec): **See also:** `width `__ documentation. """ - _schema = {'$ref': '#/definitions/LayerSpec'} - def __init__(self, layer=Undefined, data=Undefined, description=Undefined, encoding=Undefined, - height=Undefined, name=Undefined, projection=Undefined, resolve=Undefined, - title=Undefined, transform=Undefined, view=Undefined, width=Undefined, **kwds): - super(LayerSpec, self).__init__(layer=layer, data=data, description=description, - encoding=encoding, height=height, name=name, - projection=projection, resolve=resolve, title=title, - transform=transform, view=view, width=width, **kwds) + _schema = {"$ref": "#/definitions/LayerSpec"} + + def __init__( + self, + layer: Union[ + Sequence[Union[Union["LayerSpec", dict], Union["UnitSpec", dict]]], + UndefinedType, + ] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["SharedEncoding", dict], UndefinedType] = Undefined, + height: Union[ + Union[Union["Step", dict], float, str], UndefinedType + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + view: Union[Union["ViewBackground", dict], UndefinedType] = Undefined, + width: Union[Union[Union["Step", dict], float, str], UndefinedType] = Undefined, + **kwds, + ): + super(LayerSpec, self).__init__( + layer=layer, + data=data, + description=description, + encoding=encoding, + height=height, + name=name, + projection=projection, + resolve=resolve, + title=title, + transform=transform, + view=view, + width=width, + **kwds, + ) class RepeatSpec(Spec, NonNormalizedSpec): """RepeatSpec schema wrapper - anyOf(:class:`NonLayerRepeatSpec`, :class:`LayerRepeatSpec`) + :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, + Dict[required=[repeat, spec]], :class:`RepeatSpec` """ - _schema = {'$ref': '#/definitions/RepeatSpec'} + + _schema = {"$ref": "#/definitions/RepeatSpec"} def __init__(self, *args, **kwds): super(RepeatSpec, self).__init__(*args, **kwds) @@ -17221,12 +44308,12 @@ def __init__(self, *args, **kwds): class LayerRepeatSpec(RepeatSpec): """LayerRepeatSpec schema wrapper - Mapping(required=[repeat, spec]) + :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]] Parameters ---------- - repeat : :class:`LayerRepeatMapping` + repeat : :class:`LayerRepeatMapping`, Dict[required=[layer]] Definition for fields to be repeated. One of: 1) An array of fields to be repeated. If ``"repeat"`` is an array, the field can be referred to as ``{"repeat": "repeat"}``. The repeated views are laid out in a wrapped row. You can set the @@ -17234,9 +44321,9 @@ class LayerRepeatSpec(RepeatSpec): ``"column"`` to the listed fields to be repeated along the particular orientations. The objects ``{"repeat": "row"}`` and ``{"repeat": "column"}`` can be used to refer to the repeated field respectively. - spec : anyOf(:class:`LayerSpec`, :class:`UnitSpecWithFrame`) + spec : :class:`LayerSpec`, Dict[required=[layer]], :class:`UnitSpecWithFrame`, Dict[required=[mark]] A specification of the view that gets repeated. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -17253,7 +44340,7 @@ class LayerRepeatSpec(RepeatSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -17265,7 +44352,7 @@ class LayerRepeatSpec(RepeatSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -17291,16 +44378,16 @@ class LayerRepeatSpec(RepeatSpec): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -17308,33 +44395,121 @@ class LayerRepeatSpec(RepeatSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/LayerRepeatSpec'} - def __init__(self, repeat=Undefined, spec=Undefined, align=Undefined, bounds=Undefined, - center=Undefined, columns=Undefined, data=Undefined, description=Undefined, - name=Undefined, resolve=Undefined, spacing=Undefined, title=Undefined, - transform=Undefined, **kwds): - super(LayerRepeatSpec, self).__init__(repeat=repeat, spec=spec, align=align, bounds=bounds, - center=center, columns=columns, data=data, - description=description, name=name, resolve=resolve, - spacing=spacing, title=title, transform=transform, **kwds) + _schema = {"$ref": "#/definitions/LayerRepeatSpec"} + + def __init__( + self, + repeat: Union[Union["LayerRepeatMapping", dict], UndefinedType] = Undefined, + spec: Union[ + Union[Union["LayerSpec", dict], Union["UnitSpecWithFrame", dict]], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(LayerRepeatSpec, self).__init__( + repeat=repeat, + spec=spec, + align=align, + bounds=bounds, + center=center, + columns=columns, + data=data, + description=description, + name=name, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + **kwds, + ) class NonLayerRepeatSpec(RepeatSpec): """NonLayerRepeatSpec schema wrapper - Mapping(required=[repeat, spec]) + :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]] Base interface for a repeat specification. Parameters ---------- - repeat : anyOf(List(string), :class:`RepeatMapping`) + repeat : :class:`RepeatMapping`, Dict, Sequence[str] Definition for fields to be repeated. One of: 1) An array of fields to be repeated. If ``"repeat"`` is an array, the field can be referred to as ``{"repeat": "repeat"}``. The repeated views are laid out in a wrapped row. You can set the @@ -17342,9 +44517,9 @@ class NonLayerRepeatSpec(RepeatSpec): ``"column"`` to the listed fields to be repeated along the particular orientations. The objects ``{"repeat": "row"}`` and ``{"repeat": "column"}`` can be used to refer to the repeated field respectively. - spec : :class:`NonNormalizedSpec` + spec : :class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`NonNormalizedSpec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]] A specification of the view that gets repeated. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -17361,7 +44536,7 @@ class NonLayerRepeatSpec(RepeatSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -17373,7 +44548,7 @@ class NonLayerRepeatSpec(RepeatSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -17399,16 +44574,16 @@ class NonLayerRepeatSpec(RepeatSpec): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -17416,49 +44591,158 @@ class NonLayerRepeatSpec(RepeatSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/NonLayerRepeatSpec'} - def __init__(self, repeat=Undefined, spec=Undefined, align=Undefined, bounds=Undefined, - center=Undefined, columns=Undefined, data=Undefined, description=Undefined, - name=Undefined, resolve=Undefined, spacing=Undefined, title=Undefined, - transform=Undefined, **kwds): - super(NonLayerRepeatSpec, self).__init__(repeat=repeat, spec=spec, align=align, bounds=bounds, - center=center, columns=columns, data=data, - description=description, name=name, resolve=resolve, - spacing=spacing, title=title, transform=transform, - **kwds) + _schema = {"$ref": "#/definitions/NonLayerRepeatSpec"} + + def __init__( + self, + repeat: Union[ + Union[Sequence[str], Union["RepeatMapping", dict]], UndefinedType + ] = Undefined, + spec: Union[ + Union[ + "NonNormalizedSpec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(NonLayerRepeatSpec, self).__init__( + repeat=repeat, + spec=spec, + align=align, + bounds=bounds, + center=center, + columns=columns, + data=data, + description=description, + name=name, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + **kwds, + ) class SphereGenerator(Generator): """SphereGenerator schema wrapper - Mapping(required=[sphere]) + :class:`SphereGenerator`, Dict[required=[sphere]] Parameters ---------- - sphere : anyOf(boolean, Mapping(required=[])) + sphere : Dict, bool Generate sphere GeoJSON data for the full globe. - name : string + name : str Provide a placeholder name and bind data at runtime. """ - _schema = {'$ref': '#/definitions/SphereGenerator'} - def __init__(self, sphere=Undefined, name=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SphereGenerator"} + + def __init__( + self, + sphere: Union[Union[bool, dict], UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): super(SphereGenerator, self).__init__(sphere=sphere, name=name, **kwds) class StackOffset(VegaLiteSchema): """StackOffset schema wrapper - enum('zero', 'center', 'normalize') + :class:`StackOffset`, Literal['zero', 'center', 'normalize'] """ - _schema = {'$ref': '#/definitions/StackOffset'} + + _schema = {"$ref": "#/definitions/StackOffset"} def __init__(self, *args): super(StackOffset, self).__init__(*args) @@ -17467,9 +44751,10 @@ def __init__(self, *args): class StandardType(VegaLiteSchema): """StandardType schema wrapper - enum('quantitative', 'ordinal', 'temporal', 'nominal') + :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] """ - _schema = {'$ref': '#/definitions/StandardType'} + + _schema = {"$ref": "#/definitions/StandardType"} def __init__(self, *args): super(StandardType, self).__init__(*args) @@ -17478,29 +44763,31 @@ def __init__(self, *args): class Step(VegaLiteSchema): """Step schema wrapper - Mapping(required=[step]) + :class:`Step`, Dict[required=[step]] Parameters ---------- step : float The size (width/height) per discrete step. - for : :class:`StepFor` + for : :class:`StepFor`, Literal['position', 'offset'] Whether to apply the step to position scale or offset scale when there are both ``x`` and ``xOffset`` or both ``y`` and ``yOffset`` encodings. """ - _schema = {'$ref': '#/definitions/Step'} - def __init__(self, step=Undefined, **kwds): + _schema = {"$ref": "#/definitions/Step"} + + def __init__(self, step: Union[float, UndefinedType] = Undefined, **kwds): super(Step, self).__init__(step=step, **kwds) class StepFor(VegaLiteSchema): """StepFor schema wrapper - enum('position', 'offset') + :class:`StepFor`, Literal['position', 'offset'] """ - _schema = {'$ref': '#/definitions/StepFor'} + + _schema = {"$ref": "#/definitions/StepFor"} def __init__(self, *args): super(StepFor, self).__init__(*args) @@ -17509,9 +44796,12 @@ def __init__(self, *args): class Stream(VegaLiteSchema): """Stream schema wrapper - anyOf(:class:`EventStream`, :class:`DerivedStream`, :class:`MergedStream`) + :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, + Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, + Dict[required=[merge]], :class:`Stream` """ - _schema = {'$ref': '#/definitions/Stream'} + + _schema = {"$ref": "#/definitions/Stream"} def __init__(self, *args, **kwds): super(Stream, self).__init__(*args, **kwds) @@ -17520,43 +44810,102 @@ def __init__(self, *args, **kwds): class DerivedStream(Stream): """DerivedStream schema wrapper - Mapping(required=[stream]) + :class:`DerivedStream`, Dict[required=[stream]] Parameters ---------- - stream : :class:`Stream` + stream : :class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream` - between : List(:class:`Stream`) + between : Sequence[:class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`] - consume : boolean + consume : bool debounce : float - filter : anyOf(:class:`Expr`, List(:class:`Expr`)) + filter : :class:`Expr`, str, Sequence[:class:`Expr`, str] - markname : string + markname : str - marktype : :class:`MarkType` + marktype : :class:`MarkType`, Literal['arc', 'area', 'image', 'group', 'line', 'path', 'rect', 'rule', 'shape', 'symbol', 'text', 'trail'] throttle : float """ - _schema = {'$ref': '#/definitions/DerivedStream'} - def __init__(self, stream=Undefined, between=Undefined, consume=Undefined, debounce=Undefined, - filter=Undefined, markname=Undefined, marktype=Undefined, throttle=Undefined, **kwds): - super(DerivedStream, self).__init__(stream=stream, between=between, consume=consume, - debounce=debounce, filter=filter, markname=markname, - marktype=marktype, throttle=throttle, **kwds) + _schema = {"$ref": "#/definitions/DerivedStream"} + + def __init__( + self, + stream: Union[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ], + UndefinedType, + ] = Undefined, + between: Union[ + Sequence[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ] + ], + UndefinedType, + ] = Undefined, + consume: Union[bool, UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + filter: Union[ + Union[Sequence[Union["Expr", str]], Union["Expr", str]], UndefinedType + ] = Undefined, + markname: Union[str, UndefinedType] = Undefined, + marktype: Union[ + Union[ + "MarkType", + Literal[ + "arc", + "area", + "image", + "group", + "line", + "path", + "rect", + "rule", + "shape", + "symbol", + "text", + "trail", + ], + ], + UndefinedType, + ] = Undefined, + throttle: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(DerivedStream, self).__init__( + stream=stream, + between=between, + consume=consume, + debounce=debounce, + filter=filter, + markname=markname, + marktype=marktype, + throttle=throttle, + **kwds, + ) class EventStream(Stream): """EventStream schema wrapper - anyOf(Mapping(required=[type]), Mapping(required=[source, type])) + :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]] """ - _schema = {'$ref': '#/definitions/EventStream'} + + _schema = {"$ref": "#/definitions/EventStream"} def __init__(self, *args, **kwds): super(EventStream, self).__init__(*args, **kwds) @@ -17565,46 +44914,106 @@ def __init__(self, *args, **kwds): class MergedStream(Stream): """MergedStream schema wrapper - Mapping(required=[merge]) + :class:`MergedStream`, Dict[required=[merge]] Parameters ---------- - merge : List(:class:`Stream`) + merge : Sequence[:class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`] - between : List(:class:`Stream`) + between : Sequence[:class:`DerivedStream`, Dict[required=[stream]], :class:`EventStream`, Dict[required=[source, type]], Dict[required=[type]], :class:`MergedStream`, Dict[required=[merge]], :class:`Stream`] - consume : boolean + consume : bool debounce : float - filter : anyOf(:class:`Expr`, List(:class:`Expr`)) + filter : :class:`Expr`, str, Sequence[:class:`Expr`, str] - markname : string + markname : str - marktype : :class:`MarkType` + marktype : :class:`MarkType`, Literal['arc', 'area', 'image', 'group', 'line', 'path', 'rect', 'rule', 'shape', 'symbol', 'text', 'trail'] throttle : float """ - _schema = {'$ref': '#/definitions/MergedStream'} - def __init__(self, merge=Undefined, between=Undefined, consume=Undefined, debounce=Undefined, - filter=Undefined, markname=Undefined, marktype=Undefined, throttle=Undefined, **kwds): - super(MergedStream, self).__init__(merge=merge, between=between, consume=consume, - debounce=debounce, filter=filter, markname=markname, - marktype=marktype, throttle=throttle, **kwds) + _schema = {"$ref": "#/definitions/MergedStream"} + + def __init__( + self, + merge: Union[ + Sequence[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ] + ], + UndefinedType, + ] = Undefined, + between: Union[ + Sequence[ + Union[ + "Stream", + Union["DerivedStream", dict], + Union["EventStream", dict], + Union["MergedStream", dict], + ] + ], + UndefinedType, + ] = Undefined, + consume: Union[bool, UndefinedType] = Undefined, + debounce: Union[float, UndefinedType] = Undefined, + filter: Union[ + Union[Sequence[Union["Expr", str]], Union["Expr", str]], UndefinedType + ] = Undefined, + markname: Union[str, UndefinedType] = Undefined, + marktype: Union[ + Union[ + "MarkType", + Literal[ + "arc", + "area", + "image", + "group", + "line", + "path", + "rect", + "rule", + "shape", + "symbol", + "text", + "trail", + ], + ], + UndefinedType, + ] = Undefined, + throttle: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(MergedStream, self).__init__( + merge=merge, + between=between, + consume=consume, + debounce=debounce, + filter=filter, + markname=markname, + marktype=marktype, + throttle=throttle, + **kwds, + ) class StringFieldDef(VegaLiteSchema): """StringFieldDef schema wrapper - Mapping(required=[]) + :class:`StringFieldDef`, Dict Parameters ---------- - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -17616,7 +45025,7 @@ class StringFieldDef(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -17637,7 +45046,7 @@ class StringFieldDef(VegaLiteSchema): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -17652,7 +45061,7 @@ class StringFieldDef(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -17675,7 +45084,7 @@ class StringFieldDef(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -17686,7 +45095,7 @@ class StringFieldDef(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -17695,7 +45104,7 @@ class StringFieldDef(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -17715,7 +45124,7 @@ class StringFieldDef(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -17785,25 +45194,242 @@ class StringFieldDef(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/StringFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - format=Undefined, formatType=Undefined, timeUnit=Undefined, title=Undefined, - type=Undefined, **kwds): - super(StringFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, format=format, formatType=formatType, - timeUnit=timeUnit, title=title, type=type, **kwds) + _schema = {"$ref": "#/definitions/StringFieldDef"} + + def __init__( + self, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StringFieldDef, self).__init__( + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class StringFieldDefWithCondition(VegaLiteSchema): """StringFieldDefWithCondition schema wrapper - Mapping(required=[]) + :class:`StringFieldDefWithCondition`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -17815,7 +45441,7 @@ class StringFieldDefWithCondition(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -17836,14 +45462,14 @@ class StringFieldDefWithCondition(VegaLiteSchema): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`)) + condition : :class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`, Sequence[:class:`ConditionalParameterValueDefstringExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -17858,7 +45484,7 @@ class StringFieldDefWithCondition(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -17881,7 +45507,7 @@ class StringFieldDefWithCondition(VegaLiteSchema): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -17892,7 +45518,7 @@ class StringFieldDefWithCondition(VegaLiteSchema): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -17901,7 +45527,7 @@ class StringFieldDefWithCondition(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -17921,7 +45547,7 @@ class StringFieldDefWithCondition(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -17991,46 +45617,312 @@ class StringFieldDefWithCondition(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/StringFieldDefWithCondition'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, format=Undefined, formatType=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(StringFieldDefWithCondition, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, bin=bin, - condition=condition, field=field, - format=format, formatType=formatType, - timeUnit=timeUnit, title=title, type=type, - **kwds) + _schema = {"$ref": "#/definitions/StringFieldDefWithCondition"} + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringExprRef", + Union["ConditionalParameterValueDefstringExprRef", dict], + Union["ConditionalPredicateValueDefstringExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefstringExprRef", + Union["ConditionalParameterValueDefstringExprRef", dict], + Union["ConditionalPredicateValueDefstringExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(StringFieldDefWithCondition, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class StringValueDefWithCondition(VegaLiteSchema): """StringValueDefWithCondition schema wrapper - Mapping(required=[]) + :class:`StringValueDefWithCondition`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/StringValueDefWithCondition'} - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(StringValueDefWithCondition, self).__init__(condition=condition, value=value, **kwds) + _schema = {"$ref": "#/definitions/StringValueDefWithCondition"} + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ] + ], + Union[ + "ConditionalMarkPropFieldOrDatumDef", + Union["ConditionalParameterMarkPropFieldOrDatumDef", dict], + Union["ConditionalPredicateMarkPropFieldOrDatumDef", dict], + ], + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + **kwds, + ): + super(StringValueDefWithCondition, self).__init__( + condition=condition, value=value, **kwds + ) class StrokeCap(VegaLiteSchema): """StrokeCap schema wrapper - enum('butt', 'round', 'square') + :class:`StrokeCap`, Literal['butt', 'round', 'square'] """ - _schema = {'$ref': '#/definitions/StrokeCap'} + + _schema = {"$ref": "#/definitions/StrokeCap"} def __init__(self, *args): super(StrokeCap, self).__init__(*args) @@ -18039,9 +45931,10 @@ def __init__(self, *args): class StrokeJoin(VegaLiteSchema): """StrokeJoin schema wrapper - enum('miter', 'round', 'bevel') + :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] """ - _schema = {'$ref': '#/definitions/StrokeJoin'} + + _schema = {"$ref": "#/definitions/StrokeJoin"} def __init__(self, *args): super(StrokeJoin, self).__init__(*args) @@ -18050,68 +45943,99 @@ def __init__(self, *args): class StyleConfigIndex(VegaLiteSchema): """StyleConfigIndex schema wrapper - Mapping(required=[]) + :class:`StyleConfigIndex`, Dict Parameters ---------- - arc : :class:`RectConfig` + arc : :class:`RectConfig`, Dict Arc-specific Config - area : :class:`AreaConfig` + area : :class:`AreaConfig`, Dict Area-Specific Config - bar : :class:`BarConfig` + bar : :class:`BarConfig`, Dict Bar-Specific Config - circle : :class:`MarkConfig` + circle : :class:`MarkConfig`, Dict Circle-Specific Config - geoshape : :class:`MarkConfig` + geoshape : :class:`MarkConfig`, Dict Geoshape-Specific Config - image : :class:`RectConfig` + image : :class:`RectConfig`, Dict Image-specific Config - line : :class:`LineConfig` + line : :class:`LineConfig`, Dict Line-Specific Config - mark : :class:`MarkConfig` + mark : :class:`MarkConfig`, Dict Mark Config - point : :class:`MarkConfig` + point : :class:`MarkConfig`, Dict Point-Specific Config - rect : :class:`RectConfig` + rect : :class:`RectConfig`, Dict Rect-Specific Config - rule : :class:`MarkConfig` + rule : :class:`MarkConfig`, Dict Rule-Specific Config - square : :class:`MarkConfig` + square : :class:`MarkConfig`, Dict Square-Specific Config - text : :class:`MarkConfig` + text : :class:`MarkConfig`, Dict Text-Specific Config - tick : :class:`TickConfig` + tick : :class:`TickConfig`, Dict Tick-Specific Config - trail : :class:`LineConfig` + trail : :class:`LineConfig`, Dict Trail-Specific Config - group-subtitle : :class:`MarkConfig` + group-subtitle : :class:`MarkConfig`, Dict Default style for chart subtitles - group-title : :class:`MarkConfig` + group-title : :class:`MarkConfig`, Dict Default style for chart titles - guide-label : :class:`MarkConfig` + guide-label : :class:`MarkConfig`, Dict Default style for axis, legend, and header labels. - guide-title : :class:`MarkConfig` + guide-title : :class:`MarkConfig`, Dict Default style for axis, legend, and header titles. """ - _schema = {'$ref': '#/definitions/StyleConfigIndex'} - def __init__(self, arc=Undefined, area=Undefined, bar=Undefined, circle=Undefined, - geoshape=Undefined, image=Undefined, line=Undefined, mark=Undefined, point=Undefined, - rect=Undefined, rule=Undefined, square=Undefined, text=Undefined, tick=Undefined, - trail=Undefined, **kwds): - super(StyleConfigIndex, self).__init__(arc=arc, area=area, bar=bar, circle=circle, - geoshape=geoshape, image=image, line=line, mark=mark, - point=point, rect=rect, rule=rule, square=square, - text=text, tick=tick, trail=trail, **kwds) + _schema = {"$ref": "#/definitions/StyleConfigIndex"} + + def __init__( + self, + arc: Union[Union["RectConfig", dict], UndefinedType] = Undefined, + area: Union[Union["AreaConfig", dict], UndefinedType] = Undefined, + bar: Union[Union["BarConfig", dict], UndefinedType] = Undefined, + circle: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + geoshape: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + image: Union[Union["RectConfig", dict], UndefinedType] = Undefined, + line: Union[Union["LineConfig", dict], UndefinedType] = Undefined, + mark: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + point: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + rect: Union[Union["RectConfig", dict], UndefinedType] = Undefined, + rule: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + square: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + text: Union[Union["MarkConfig", dict], UndefinedType] = Undefined, + tick: Union[Union["TickConfig", dict], UndefinedType] = Undefined, + trail: Union[Union["LineConfig", dict], UndefinedType] = Undefined, + **kwds, + ): + super(StyleConfigIndex, self).__init__( + arc=arc, + area=area, + bar=bar, + circle=circle, + geoshape=geoshape, + image=image, + line=line, + mark=mark, + point=point, + rect=rect, + rule=rule, + square=square, + text=text, + tick=tick, + trail=trail, + **kwds, + ) class SymbolShape(VegaLiteSchema): """SymbolShape schema wrapper - string + :class:`SymbolShape`, str """ - _schema = {'$ref': '#/definitions/SymbolShape'} + + _schema = {"$ref": "#/definitions/SymbolShape"} def __init__(self, *args): super(SymbolShape, self).__init__(*args) @@ -18120,9 +46044,10 @@ def __init__(self, *args): class Text(VegaLiteSchema): """Text schema wrapper - anyOf(string, List(string)) + :class:`Text`, Sequence[str], str """ - _schema = {'$ref': '#/definitions/Text'} + + _schema = {"$ref": "#/definitions/Text"} def __init__(self, *args, **kwds): super(Text, self).__init__(*args, **kwds) @@ -18131,9 +46056,10 @@ def __init__(self, *args, **kwds): class TextBaseline(VegaLiteSchema): """TextBaseline schema wrapper - anyOf(string, :class:`Baseline`, string, string) + :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str """ - _schema = {'$ref': '#/definitions/TextBaseline'} + + _schema = {"$ref": "#/definitions/TextBaseline"} def __init__(self, *args, **kwds): super(TextBaseline, self).__init__(*args, **kwds) @@ -18142,9 +46068,10 @@ def __init__(self, *args, **kwds): class Baseline(TextBaseline): """Baseline schema wrapper - enum('top', 'middle', 'bottom') + :class:`Baseline`, Literal['top', 'middle', 'bottom'] """ - _schema = {'$ref': '#/definitions/Baseline'} + + _schema = {"$ref": "#/definitions/Baseline"} def __init__(self, *args): super(Baseline, self).__init__(*args) @@ -18153,11 +46080,12 @@ def __init__(self, *args): class TextDef(VegaLiteSchema): """TextDef schema wrapper - anyOf(:class:`FieldOrDatumDefWithConditionStringFieldDefText`, - :class:`FieldOrDatumDefWithConditionStringDatumDefText`, - :class:`ValueDefWithConditionStringFieldDefText`) + :class:`FieldOrDatumDefWithConditionStringDatumDefText`, Dict, + :class:`FieldOrDatumDefWithConditionStringFieldDefText`, Dict[required=[shorthand]], + :class:`TextDef`, :class:`ValueDefWithConditionStringFieldDefText`, Dict """ - _schema = {'$ref': '#/definitions/TextDef'} + + _schema = {"$ref": "#/definitions/TextDef"} def __init__(self, *args, **kwds): super(TextDef, self).__init__(*args, **kwds) @@ -18166,7 +46094,7 @@ def __init__(self, *args, **kwds): class FieldOrDatumDefWithConditionStringDatumDefText(TextDef): """FieldOrDatumDefWithConditionStringDatumDefText schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionStringDatumDefText`, Dict Parameters ---------- @@ -18175,16 +46103,16 @@ class FieldOrDatumDefWithConditionStringDatumDefText(TextDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - condition : anyOf(:class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`)) + condition : :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`, Sequence[:class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - datum : anyOf(:class:`PrimitiveValue`, :class:`DateTime`, :class:`ExprRef`, :class:`RepeatRef`) + datum : :class:`DateTime`, Dict, :class:`ExprRef`, Dict[required=[expr]], :class:`PrimitiveValue`, None, bool, float, str, :class:`RepeatRef`, Dict[required=[repeat]] A constant value in data domain. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -18207,7 +46135,7 @@ class FieldOrDatumDefWithConditionStringDatumDefText(TextDef): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -18218,7 +46146,7 @@ class FieldOrDatumDefWithConditionStringDatumDefText(TextDef): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -18238,7 +46166,7 @@ class FieldOrDatumDefWithConditionStringDatumDefText(TextDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`Type` + type : :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -18308,27 +46236,77 @@ class FieldOrDatumDefWithConditionStringDatumDefText(TextDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, bandPosition=Undefined, condition=Undefined, datum=Undefined, format=Undefined, - formatType=Undefined, title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionStringDatumDefText, self).__init__(bandPosition=bandPosition, - condition=condition, - datum=datum, format=format, - formatType=formatType, - title=title, type=type, - **kwds) + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + bandPosition: Union[float, UndefinedType] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefTextExprRef", + Union["ConditionalParameterValueDefTextExprRef", dict], + Union["ConditionalPredicateValueDefTextExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefTextExprRef", + Union["ConditionalParameterValueDefTextExprRef", dict], + Union["ConditionalPredicateValueDefTextExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + datum: Union[ + Union[ + Union["DateTime", dict], + Union["ExprRef", "_Parameter", dict], + Union["PrimitiveValue", None, bool, float, str], + Union["RepeatRef", dict], + ], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "Type", + Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionStringDatumDefText, self).__init__( + bandPosition=bandPosition, + condition=condition, + datum=datum, + format=format, + formatType=formatType, + title=title, + type=type, + **kwds, + ) class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): """FieldOrDatumDefWithConditionStringFieldDefText schema wrapper - Mapping(required=[]) + :class:`FieldOrDatumDefWithConditionStringFieldDefText`, Dict[required=[shorthand]] Parameters ---------- - aggregate : :class:`Aggregate` + shorthand : :class:`RepeatRef`, Dict[required=[repeat]], Sequence[str], str + shorthand for field, aggregate, and type + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -18340,7 +46318,7 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -18361,14 +46339,14 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): **See also:** `bin `__ documentation. - condition : anyOf(:class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`)) + condition : :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`, Sequence[:class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`] One or more value definition(s) with `a parameter or a test predicate `__. **Note:** A field definition's ``condition`` property can only contain `conditional value definitions `__ since Vega-Lite only allows at most one encoded field per encoding channel. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -18383,7 +46361,7 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - format : anyOf(string, :class:`Dict`) + format : :class:`Dict`, Dict, str When used with the default ``"number"`` and ``"time"`` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. @@ -18406,7 +46384,7 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): format and from `timeFormat `__ config for time format. - formatType : string + formatType : str The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom format type `__. @@ -18417,7 +46395,7 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): * ``"time"`` for temporal fields and ordinal and nominal fields with ``timeUnit``. * ``"number"`` for quantitative fields as well as ordinal and nominal fields without ``timeUnit``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -18426,7 +46404,7 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -18446,7 +46424,7 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -18516,28 +46494,262 @@ class FieldOrDatumDefWithConditionStringFieldDefText(TextDef): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/FieldOrDatumDefWithCondition'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, condition=Undefined, - field=Undefined, format=Undefined, formatType=Undefined, timeUnit=Undefined, - title=Undefined, type=Undefined, **kwds): - super(FieldOrDatumDefWithConditionStringFieldDefText, self).__init__(aggregate=aggregate, - bandPosition=bandPosition, - bin=bin, - condition=condition, - field=field, format=format, - formatType=formatType, - timeUnit=timeUnit, - title=title, type=type, - **kwds) + _schema = { + "$ref": "#/definitions/FieldOrDatumDefWithCondition" + } + + def __init__( + self, + shorthand: Union[ + Union[Sequence[str], Union["RepeatRef", dict], str], UndefinedType + ] = Undefined, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefTextExprRef", + Union["ConditionalParameterValueDefTextExprRef", dict], + Union["ConditionalPredicateValueDefTextExprRef", dict], + ] + ], + Union[ + "ConditionalValueDefTextExprRef", + Union["ConditionalParameterValueDefTextExprRef", dict], + Union["ConditionalPredicateValueDefTextExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + format: Union[Union[Union["Dict", dict], str], UndefinedType] = Undefined, + formatType: Union[str, UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(FieldOrDatumDefWithConditionStringFieldDefText, self).__init__( + shorthand=shorthand, + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + condition=condition, + field=field, + format=format, + formatType=formatType, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class TextDirection(VegaLiteSchema): """TextDirection schema wrapper - enum('ltr', 'rtl') + :class:`TextDirection`, Literal['ltr', 'rtl'] """ - _schema = {'$ref': '#/definitions/TextDirection'} + + _schema = {"$ref": "#/definitions/TextDirection"} def __init__(self, *args): super(TextDirection, self).__init__(*args) @@ -18546,42 +46758,42 @@ def __init__(self, *args): class TickConfig(AnyMarkConfig): """TickConfig schema wrapper - Mapping(required=[]) + :class:`TickConfig`, Dict Parameters ---------- - align : anyOf(:class:`Align`, :class:`ExprRef`) + align : :class:`Align`, Literal['left', 'center', 'right'], :class:`ExprRef`, Dict[required=[expr]] The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of ``"left"``, ``"right"``, ``"center"``. **Note:** Expression reference is *not* supported for range marks. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float The rotation angle of the text, in degrees. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree. - ariaRole : anyOf(string, :class:`ExprRef`) + ariaRole : :class:`ExprRef`, Dict[required=[expr]], str Sets the type of user interface element of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future. - ariaRoleDescription : anyOf(string, :class:`ExprRef`) + ariaRoleDescription : :class:`ExprRef`, Dict[required=[expr]], str A human-readable, author-localized description for the role of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future. - aspect : anyOf(boolean, :class:`ExprRef`) + aspect : :class:`ExprRef`, Dict[required=[expr]], bool Whether to keep aspect ratio of image marks. bandSize : float The width of the ticks. **Default value:** 3/4 of step (width step for horizontal ticks and height step for vertical ticks). - baseline : anyOf(:class:`TextBaseline`, :class:`ExprRef`) + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str, :class:`ExprRef`, Dict[required=[expr]] For text marks, the vertical text baseline. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an expression reference that provides one of the valid values. The ``"line-top"`` and @@ -18592,13 +46804,13 @@ class TickConfig(AnyMarkConfig): ``"middle"``, ``"bottom"``. **Note:** Expression reference is *not* supported for range marks. - blend : anyOf(:class:`Blend`, :class:`ExprRef`) + blend : :class:`Blend`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'], :class:`ExprRef`, Dict[required=[expr]] The color blend mode for drawing an item on its current background. Any valid `CSS mix-blend-mode `__ value can be used. __Default value:__ ``"source-over"`` - color : anyOf(:class:`Color`, :class:`Gradient`, :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]] Default color. **Default value:** :raw-html:`` @@ -18611,63 +46823,63 @@ class TickConfig(AnyMarkConfig): `__. * The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and will override ``color``. - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cornerRadiusBottomLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom left corner. **Default value:** ``0`` - cornerRadiusBottomRight : anyOf(float, :class:`ExprRef`) + cornerRadiusBottomRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' bottom right corner. **Default value:** ``0`` - cornerRadiusTopLeft : anyOf(float, :class:`ExprRef`) + cornerRadiusTopLeft : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top right corner. **Default value:** ``0`` - cornerRadiusTopRight : anyOf(float, :class:`ExprRef`) + cornerRadiusTopRight : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles' top left corner. **Default value:** ``0`` - cursor : anyOf(:class:`Cursor`, :class:`ExprRef`) + cursor : :class:`Cursor`, 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'], :class:`ExprRef`, Dict[required=[expr]] The mouse cursor used over the mark. Any valid `CSS cursor type `__ can be used. - description : anyOf(string, :class:`ExprRef`) + description : :class:`ExprRef`, Dict[required=[expr]], str A text description of the mark item for `ARIA accessibility `__ (SVG output only). If specified, this property determines the `"aria-label" attribute `__. - dir : anyOf(:class:`TextDirection`, :class:`ExprRef`) + dir : :class:`ExprRef`, Dict[required=[expr]], :class:`TextDirection`, Literal['ltr', 'rtl'] The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"`` (right-to-left). This property determines on which side is truncated in response to the limit parameter. **Default value:** ``"ltr"`` - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the *angle* property. - ellipsis : anyOf(string, :class:`ExprRef`) + ellipsis : :class:`ExprRef`, Dict[required=[expr]], str The ellipsis string for text truncated in response to the limit parameter. **Default value:** ``"…"`` - endAngle : anyOf(float, :class:`ExprRef`) + endAngle : :class:`ExprRef`, Dict[required=[expr]], float The end angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - fill : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default fill color. This property has higher precedence than ``config.color``. Set to ``null`` to remove fill. **Default value:** (None) - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - filled : boolean + filled : bool Whether the mark's color should be used as fill color instead of stroke color. **Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well @@ -18677,28 +46889,28 @@ class TickConfig(AnyMarkConfig): **Note:** This property cannot be used in a `style config `__. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str The typeface to set the text in (e.g., ``"Helvetica Neue"`` ). - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float The font size, in pixels. **Default value:** ``11`` - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str The font style (e.g., ``"italic"`` ). - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] The font weight. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - height : anyOf(float, :class:`ExprRef`) + height : :class:`ExprRef`, Dict[required=[expr]], float Height of the marks. - href : anyOf(:class:`URI`, :class:`ExprRef`) + href : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str A URL to load upon mouse click. If defined, the mark acts as a hyperlink. - innerRadius : anyOf(float, :class:`ExprRef`) + innerRadius : :class:`ExprRef`, Dict[required=[expr]], float The inner radius in pixels of arc marks. ``innerRadius`` is an alias for ``radius2``. **Default value:** ``0`` - interpolate : anyOf(:class:`Interpolate`, :class:`ExprRef`) + interpolate : :class:`ExprRef`, Dict[required=[expr]], :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after'] The line interpolation method to use for line and area marks. One of the following: @@ -18720,7 +46932,7 @@ class TickConfig(AnyMarkConfig): * ``"bundle"`` : equivalent to basis, except the tension parameter is used to straighten the spline. * ``"monotone"`` : cubic interpolation that preserves monotonicity in y. - invalid : enum('filter', None) + invalid : Literal['filter', None] Defines how Vega-Lite should handle marks for invalid values ( ``null`` and ``NaN`` ). @@ -18729,26 +46941,26 @@ class TickConfig(AnyMarkConfig): (for line, trail, and area marks) or filtered (for other marks). * If ``null``, all data items are included. In this case, invalid values will be interpreted as zeroes. - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit. **Default value:** ``0`` -- indicating no limit - lineBreak : anyOf(string, :class:`ExprRef`) + lineBreak : :class:`ExprRef`, Dict[required=[expr]], str A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks. - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - order : anyOf(None, boolean) + order : None, bool For line and trail marks, this ``order`` property can be set to ``null`` or ``false`` to make the lines use the original order in the data sources. - orient : :class:`Orientation` + orient : :class:`Orientation`, Literal['horizontal', 'vertical'] The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical. @@ -18760,24 +46972,24 @@ class TickConfig(AnyMarkConfig): the line if ``config.sortLineBy`` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored. - outerRadius : anyOf(float, :class:`ExprRef`) + outerRadius : :class:`ExprRef`, Dict[required=[expr]], float The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``. **Default value:** ``0`` - padAngle : anyOf(float, :class:`ExprRef`) + padAngle : :class:`ExprRef`, Dict[required=[expr]], float The angular padding applied to sides of the arc, in radians. - radius : anyOf(float, :class:`ExprRef`) + radius : :class:`ExprRef`, Dict[required=[expr]], float For arc mark, the primary (outer) radius in pixels. For text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the ``x`` and ``y`` properties. **Default value:** ``min(plot_width, plot_height)/2`` - radius2 : anyOf(float, :class:`ExprRef`) + radius2 : :class:`ExprRef`, Dict[required=[expr]], float The secondary (inner) radius in pixels of arc marks. **Default value:** ``0`` - shape : anyOf(anyOf(:class:`SymbolShape`, string), :class:`ExprRef`) + shape : :class:`ExprRef`, Dict[required=[expr]], :class:`SymbolShape`, str, str Shape of the point marks. Supported values include: @@ -18792,7 +47004,7 @@ class TickConfig(AnyMarkConfig): coordinates ranging from -1 to 1 along both the x and y dimensions.) **Default value:** ``"circle"`` - size : anyOf(float, :class:`ExprRef`) + size : :class:`ExprRef`, Dict[required=[expr]], float Default size for marks. @@ -18809,56 +47021,56 @@ class TickConfig(AnyMarkConfig): * ``2`` for bar marks with discrete dimensions; * ``5`` for bar marks with continuous dimensions; * ``11`` for text marks. - smooth : anyOf(boolean, :class:`ExprRef`) + smooth : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization. - startAngle : anyOf(float, :class:`ExprRef`) + startAngle : :class:`ExprRef`, Dict[required=[expr]], float The start angle in radians for arc marks. A value of ``0`` indicates up (north), increasing values proceed clockwise. - stroke : anyOf(:class:`Color`, :class:`Gradient`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None Default stroke color. This property has higher precedence than ``config.color``. Set to ``null`` to remove stroke. **Default value:** (None) - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOffset : anyOf(float, :class:`ExprRef`) + strokeOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - tension : anyOf(float, :class:`ExprRef`) + tension : :class:`ExprRef`, Dict[required=[expr]], float Depending on the interpolation type, sets the tension parameter (for line and area marks). - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str Placeholder text if the ``text`` channel is not specified - theta : anyOf(float, :class:`ExprRef`) + theta : :class:`ExprRef`, Dict[required=[expr]], float For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or “north”, increasing values proceed clockwise.) For text marks, polar coordinate angle in radians. - theta2 : anyOf(float, :class:`ExprRef`) + theta2 : :class:`ExprRef`, Dict[required=[expr]], float The end angle of arc marks in radians. A value of 0 indicates up or “north”, increasing values proceed clockwise. thickness : float @@ -18873,7 +47085,7 @@ class TickConfig(AnyMarkConfig): Default relative band size for a time unit. If set to ``1``, the bandwidth of the marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the marks will be half of the time unit band step. - tooltip : anyOf(float, string, boolean, :class:`TooltipContent`, :class:`ExprRef`, None) + tooltip : :class:`ExprRef`, Dict[required=[expr]], :class:`TooltipContent`, Dict[required=[content]], None, bool, float, str The tooltip text string to show upon mouse hover or an object defining which fields should the tooltip be derived from. @@ -18888,88 +47100,978 @@ class TickConfig(AnyMarkConfig): documentation for a detailed discussion about tooltip in Vega-Lite. **Default value:** ``null`` - url : anyOf(:class:`URI`, :class:`ExprRef`) + url : :class:`ExprRef`, Dict[required=[expr]], :class:`URI`, str The URL of the image file for image marks. - width : anyOf(float, :class:`ExprRef`) + width : :class:`ExprRef`, Dict[required=[expr]], float Width of the marks. - x : anyOf(float, string, :class:`ExprRef`) + x : :class:`ExprRef`, Dict[required=[expr]], float, str X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without specified ``x2`` or ``width``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - x2 : anyOf(float, string, :class:`ExprRef`) + x2 : :class:`ExprRef`, Dict[required=[expr]], float, str X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"width"`` for the width of the plot. - y : anyOf(float, string, :class:`ExprRef`) + y : :class:`ExprRef`, Dict[required=[expr]], float, str Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without specified ``y2`` or ``height``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. - y2 : anyOf(float, string, :class:`ExprRef`) + y2 : :class:`ExprRef`, Dict[required=[expr]], float, str Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``. The ``value`` of this channel can be a number or a string ``"height"`` for the height of the plot. """ - _schema = {'$ref': '#/definitions/TickConfig'} - - def __init__(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, blend=Undefined, color=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusTopLeft=Undefined, cornerRadiusTopRight=Undefined, cursor=Undefined, - description=Undefined, dir=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, - endAngle=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, lineBreak=Undefined, lineHeight=Undefined, - opacity=Undefined, order=Undefined, orient=Undefined, outerRadius=Undefined, - padAngle=Undefined, radius=Undefined, radius2=Undefined, shape=Undefined, - size=Undefined, smooth=Undefined, startAngle=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, tension=Undefined, text=Undefined, - theta=Undefined, theta2=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, y=Undefined, y2=Undefined, **kwds): - super(TickConfig, self).__init__(align=align, angle=angle, aria=aria, ariaRole=ariaRole, - ariaRoleDescription=ariaRoleDescription, aspect=aspect, - bandSize=bandSize, baseline=baseline, blend=blend, color=color, - cornerRadius=cornerRadius, - cornerRadiusBottomLeft=cornerRadiusBottomLeft, - cornerRadiusBottomRight=cornerRadiusBottomRight, - cornerRadiusTopLeft=cornerRadiusTopLeft, - cornerRadiusTopRight=cornerRadiusTopRight, cursor=cursor, - description=description, dir=dir, dx=dx, dy=dy, - ellipsis=ellipsis, endAngle=endAngle, 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, - lineBreak=lineBreak, lineHeight=lineHeight, opacity=opacity, - order=order, orient=orient, outerRadius=outerRadius, - padAngle=padAngle, radius=radius, radius2=radius2, shape=shape, - size=size, smooth=smooth, startAngle=startAngle, stroke=stroke, - strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOffset=strokeOffset, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - tension=tension, text=text, theta=theta, theta2=theta2, - thickness=thickness, timeUnitBandPosition=timeUnitBandPosition, - timeUnitBandSize=timeUnitBandSize, tooltip=tooltip, url=url, - width=width, x=x, x2=x2, y=y, y2=y2, **kwds) + + _schema = {"$ref": "#/definitions/TickConfig"} + + def __init__( + self, + align: Union[ + Union[ + Union["Align", Literal["left", "center", "right"]], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + ariaRole: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + ariaRoleDescription: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + aspect: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + bandSize: Union[float, UndefinedType] = Undefined, + baseline: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + ], + UndefinedType, + ] = Undefined, + blend: Union[ + Union[ + Union[ + "Blend", + Literal[ + None, + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusBottomRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopLeft: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cornerRadiusTopRight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + Union[ + "Cursor", + 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", + ], + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + description: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + dir: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TextDirection", Literal["ltr", "rtl"]], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + ellipsis: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + endAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + filled: Union[bool, UndefinedType] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + height: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + href: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + innerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + interpolate: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "Interpolate", + Literal[ + "basis", + "basis-open", + "basis-closed", + "bundle", + "cardinal", + "cardinal-open", + "cardinal-closed", + "catmull-rom", + "linear", + "linear-closed", + "monotone", + "natural", + "step", + "step-before", + "step-after", + ], + ], + ], + UndefinedType, + ] = Undefined, + invalid: Union[Literal["filter", None], UndefinedType] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineBreak: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + order: Union[Union[None, bool], UndefinedType] = Undefined, + orient: Union[ + Union["Orientation", Literal["horizontal", "vertical"]], UndefinedType + ] = Undefined, + outerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + padAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + radius2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + shape: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["SymbolShape", str], str], + ], + UndefinedType, + ] = Undefined, + size: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + smooth: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + startAngle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + tension: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + theta: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + theta2: Union[ + Union[Union["ExprRef", "_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["ExprRef", "_Parameter", dict], + Union["TooltipContent", dict], + bool, + float, + str, + ], + UndefinedType, + ] = Undefined, + url: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["URI", str]], + UndefinedType, + ] = Undefined, + width: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + x: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + x2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + y2: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): + super(TickConfig, self).__init__( + align=align, + angle=angle, + aria=aria, + ariaRole=ariaRole, + ariaRoleDescription=ariaRoleDescription, + aspect=aspect, + bandSize=bandSize, + baseline=baseline, + blend=blend, + color=color, + cornerRadius=cornerRadius, + cornerRadiusBottomLeft=cornerRadiusBottomLeft, + cornerRadiusBottomRight=cornerRadiusBottomRight, + cornerRadiusTopLeft=cornerRadiusTopLeft, + cornerRadiusTopRight=cornerRadiusTopRight, + cursor=cursor, + description=description, + dir=dir, + dx=dx, + dy=dy, + ellipsis=ellipsis, + endAngle=endAngle, + 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, + lineBreak=lineBreak, + lineHeight=lineHeight, + opacity=opacity, + order=order, + orient=orient, + outerRadius=outerRadius, + padAngle=padAngle, + radius=radius, + radius2=radius2, + shape=shape, + size=size, + smooth=smooth, + startAngle=startAngle, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOffset=strokeOffset, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + tension=tension, + text=text, + theta=theta, + theta2=theta2, + thickness=thickness, + timeUnitBandPosition=timeUnitBandPosition, + timeUnitBandSize=timeUnitBandSize, + tooltip=tooltip, + url=url, + width=width, + x=x, + x2=x2, + y=y, + y2=y2, + **kwds, + ) class TickCount(VegaLiteSchema): """TickCount schema wrapper - anyOf(float, :class:`TimeInterval`, :class:`TimeIntervalStep`) + :class:`TickCount`, :class:`TimeIntervalStep`, Dict[required=[interval, step]], + :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', + 'month', 'year'], float """ - _schema = {'$ref': '#/definitions/TickCount'} + + _schema = {"$ref": "#/definitions/TickCount"} def __init__(self, *args, **kwds): super(TickCount, self).__init__(*args, **kwds) @@ -18978,9 +48080,11 @@ def __init__(self, *args, **kwds): class TimeInterval(TickCount): """TimeInterval schema wrapper - enum('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year') + :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', + 'month', 'year'] """ - _schema = {'$ref': '#/definitions/TimeInterval'} + + _schema = {"$ref": "#/definitions/TimeInterval"} def __init__(self, *args): super(TimeInterval, self).__init__(*args) @@ -18989,63 +48093,134 @@ def __init__(self, *args): class TimeIntervalStep(TickCount): """TimeIntervalStep schema wrapper - Mapping(required=[interval, step]) + :class:`TimeIntervalStep`, Dict[required=[interval, step]] Parameters ---------- - interval : :class:`TimeInterval` + interval : :class:`TimeInterval`, Literal['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'year'] step : float """ - _schema = {'$ref': '#/definitions/TimeIntervalStep'} - def __init__(self, interval=Undefined, step=Undefined, **kwds): + _schema = {"$ref": "#/definitions/TimeIntervalStep"} + + def __init__( + self, + interval: Union[ + Union[ + "TimeInterval", + Literal[ + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "year", + ], + ], + UndefinedType, + ] = Undefined, + step: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(TimeIntervalStep, self).__init__(interval=interval, step=step, **kwds) class TimeLocale(VegaLiteSchema): """TimeLocale schema wrapper - Mapping(required=[dateTime, date, time, periods, days, shortDays, months, shortMonths]) + :class:`TimeLocale`, Dict[required=[dateTime, date, time, periods, days, shortDays, months, + shortMonths]] Locale definition for formatting dates and times. Parameters ---------- - date : string + date : str The date (%x) format specifier (e.g., "%m/%d/%Y"). - dateTime : string + dateTime : str The date and time (%c) format specifier (e.g., "%a %b %e %X %Y"). - days : :class:`Vector7string` + days : :class:`Vector7string`, Sequence[str] The full names of the weekdays, starting with Sunday. - months : :class:`Vector12string` + months : :class:`Vector12string`, Sequence[str] The full names of the months (starting with January). - periods : :class:`Vector2string` + periods : :class:`Vector2string`, Sequence[str] The A.M. and P.M. equivalents (e.g., ["AM", "PM"]). - shortDays : :class:`Vector7string` + shortDays : :class:`Vector7string`, Sequence[str] The abbreviated names of the weekdays, starting with Sunday. - shortMonths : :class:`Vector12string` + shortMonths : :class:`Vector12string`, Sequence[str] The abbreviated names of the months (starting with January). - time : string + time : str The time (%X) format specifier (e.g., "%H:%M:%S"). """ - _schema = {'$ref': '#/definitions/TimeLocale'} - def __init__(self, date=Undefined, dateTime=Undefined, days=Undefined, months=Undefined, - periods=Undefined, shortDays=Undefined, shortMonths=Undefined, time=Undefined, **kwds): - super(TimeLocale, self).__init__(date=date, dateTime=dateTime, days=days, months=months, - periods=periods, shortDays=shortDays, shortMonths=shortMonths, - time=time, **kwds) + _schema = {"$ref": "#/definitions/TimeLocale"} + + def __init__( + self, + date: Union[str, UndefinedType] = Undefined, + dateTime: Union[str, UndefinedType] = Undefined, + days: Union[Union["Vector7string", Sequence[str]], UndefinedType] = Undefined, + months: Union[ + Union["Vector12string", Sequence[str]], UndefinedType + ] = Undefined, + periods: Union[ + Union["Vector2string", Sequence[str]], UndefinedType + ] = Undefined, + shortDays: Union[ + Union["Vector7string", Sequence[str]], UndefinedType + ] = Undefined, + shortMonths: Union[ + Union["Vector12string", Sequence[str]], UndefinedType + ] = Undefined, + time: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(TimeLocale, self).__init__( + date=date, + dateTime=dateTime, + days=days, + months=months, + periods=periods, + shortDays=shortDays, + shortMonths=shortMonths, + time=time, + **kwds, + ) class TimeUnit(VegaLiteSchema): """TimeUnit schema wrapper - anyOf(:class:`SingleTimeUnit`, :class:`MultiTimeUnit`) + :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', + 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', + 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', + 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', + 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', + 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', + 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', + 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], + :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', + 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', + 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', + 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', + 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', + 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', + 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', + 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', + 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], + :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', + 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], + :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', + 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', + 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit` """ - _schema = {'$ref': '#/definitions/TimeUnit'} + + _schema = {"$ref": "#/definitions/TimeUnit"} def __init__(self, *args, **kwds): super(TimeUnit, self).__init__(*args, **kwds) @@ -19054,9 +48229,26 @@ def __init__(self, *args, **kwds): class MultiTimeUnit(TimeUnit): """MultiTimeUnit schema wrapper - anyOf(:class:`LocalMultiTimeUnit`, :class:`UtcMultiTimeUnit`) + :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', + 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', + 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', + 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', + 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', + 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', + 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', + 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], + :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', + 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', + 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', + 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', + 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', + 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', + 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', + 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', + 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'] """ - _schema = {'$ref': '#/definitions/MultiTimeUnit'} + + _schema = {"$ref": "#/definitions/MultiTimeUnit"} def __init__(self, *args, **kwds): super(MultiTimeUnit, self).__init__(*args, **kwds) @@ -19065,15 +48257,17 @@ def __init__(self, *args, **kwds): class LocalMultiTimeUnit(MultiTimeUnit): """LocalMultiTimeUnit schema wrapper - enum('yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', - 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', - 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', - 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', + :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', + 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', + 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', + 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', + 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', - 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds') + 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'] """ - _schema = {'$ref': '#/definitions/LocalMultiTimeUnit'} + + _schema = {"$ref": "#/definitions/LocalMultiTimeUnit"} def __init__(self, *args): super(LocalMultiTimeUnit, self).__init__(*args) @@ -19082,9 +48276,14 @@ def __init__(self, *args): class SingleTimeUnit(TimeUnit): """SingleTimeUnit schema wrapper - anyOf(:class:`LocalSingleTimeUnit`, :class:`UtcSingleTimeUnit`) + :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', + 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], + :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', + 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', + 'utcseconds', 'utcmilliseconds'] """ - _schema = {'$ref': '#/definitions/SingleTimeUnit'} + + _schema = {"$ref": "#/definitions/SingleTimeUnit"} def __init__(self, *args, **kwds): super(SingleTimeUnit, self).__init__(*args, **kwds) @@ -19093,10 +48292,11 @@ def __init__(self, *args, **kwds): class LocalSingleTimeUnit(SingleTimeUnit): """LocalSingleTimeUnit schema wrapper - enum('year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', - 'seconds', 'milliseconds') + :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', + 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'] """ - _schema = {'$ref': '#/definitions/LocalSingleTimeUnit'} + + _schema = {"$ref": "#/definitions/LocalSingleTimeUnit"} def __init__(self, *args): super(LocalSingleTimeUnit, self).__init__(*args) @@ -19105,14 +48305,14 @@ def __init__(self, *args): class TimeUnitParams(VegaLiteSchema): """TimeUnitParams schema wrapper - Mapping(required=[]) + :class:`TimeUnitParams`, Dict Time Unit Params for encoding predicate, which can specified if the data is already "binned". Parameters ---------- - binned : boolean + binned : bool Whether the data has already been binned to this time unit. If true, Vega-Lite will only format the data, marks, and guides, without applying the timeUnit transform to re-bin the data again. @@ -19120,23 +48320,143 @@ class TimeUnitParams(VegaLiteSchema): If no ``unit`` is specified, maxbins is used to infer time units. step : float The number of steps between bins, in terms of the least significant unit provided. - unit : :class:`TimeUnit` + unit : :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit` Defines how date-time values should be binned. - utc : boolean + utc : bool True to use UTC timezone. Equivalent to using a ``utc`` prefixed ``TimeUnit``. """ - _schema = {'$ref': '#/definitions/TimeUnitParams'} - def __init__(self, binned=Undefined, maxbins=Undefined, step=Undefined, unit=Undefined, - utc=Undefined, **kwds): - super(TimeUnitParams, self).__init__(binned=binned, maxbins=maxbins, step=step, unit=unit, - utc=utc, **kwds) + _schema = {"$ref": "#/definitions/TimeUnitParams"} + + def __init__( + self, + binned: Union[bool, UndefinedType] = Undefined, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(TimeUnitParams, self).__init__( + binned=binned, maxbins=maxbins, step=step, unit=unit, utc=utc, **kwds + ) class TimeUnitTransformParams(VegaLiteSchema): """TimeUnitTransformParams schema wrapper - Mapping(required=[]) + :class:`TimeUnitTransformParams`, Dict Parameters ---------- @@ -19145,24 +48465,145 @@ class TimeUnitTransformParams(VegaLiteSchema): If no ``unit`` is specified, maxbins is used to infer time units. step : float The number of steps between bins, in terms of the least significant unit provided. - unit : :class:`TimeUnit` + unit : :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit` Defines how date-time values should be binned. - utc : boolean + utc : bool True to use UTC timezone. Equivalent to using a ``utc`` prefixed ``TimeUnit``. """ - _schema = {'$ref': '#/definitions/TimeUnitTransformParams'} - def __init__(self, maxbins=Undefined, step=Undefined, unit=Undefined, utc=Undefined, **kwds): - super(TimeUnitTransformParams, self).__init__(maxbins=maxbins, step=step, unit=unit, utc=utc, - **kwds) + _schema = {"$ref": "#/definitions/TimeUnitTransformParams"} + + def __init__( + self, + maxbins: Union[float, UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + unit: Union[ + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + UndefinedType, + ] = Undefined, + utc: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(TimeUnitTransformParams, self).__init__( + maxbins=maxbins, step=step, unit=unit, utc=utc, **kwds + ) class TitleAnchor(VegaLiteSchema): """TitleAnchor schema wrapper - enum(None, 'start', 'middle', 'end') + :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] """ - _schema = {'$ref': '#/definitions/TitleAnchor'} + + _schema = {"$ref": "#/definitions/TitleAnchor"} def __init__(self, *args): super(TitleAnchor, self).__init__(*args) @@ -19171,112 +48612,593 @@ def __init__(self, *args): class TitleConfig(VegaLiteSchema): """TitleConfig schema wrapper - Mapping(required=[]) + :class:`TitleConfig`, Dict Parameters ---------- - align : :class:`Align` + align : :class:`Align`, Literal['left', 'center', 'right'] Horizontal text alignment for title text. One of ``"left"``, ``"center"``, or ``"right"``. - anchor : anyOf(:class:`TitleAnchor`, :class:`ExprRef`) + anchor : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the title and subtitle text. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float Angle in degrees of title and subtitle text. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the title from the ARIA accessibility tree. **Default value:** ``true`` - baseline : :class:`TextBaseline` + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str Vertical text baseline for title and subtitle text. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - color : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Text color for title text. - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float Delta offset for title and subtitle text x-coordinate. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float Delta offset for title and subtitle text y-coordinate. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str Font name for title text. - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size in pixels for title text. - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style for title text. - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight for title text. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - frame : anyOf(anyOf(:class:`TitleFrame`, string), :class:`ExprRef`) + frame : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleFrame`, Literal['bounds', 'group'], str The reference frame for the anchor position, one of ``"bounds"`` (to anchor relative to the full bounding box) or ``"group"`` (to anchor relative to the group width or height). - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum allowed length in pixels of title and subtitle text. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The orthogonal offset in pixels by which to displace the title group from its position along the edge of the chart. - orient : anyOf(:class:`TitleOrient`, :class:`ExprRef`) + orient : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleOrient`, Literal['none', 'left', 'right', 'top', 'bottom'] Default title orientation ( ``"top"``, ``"bottom"``, ``"left"``, or ``"right"`` ) - subtitleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + subtitleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Text color for subtitle text. - subtitleFont : anyOf(string, :class:`ExprRef`) + subtitleFont : :class:`ExprRef`, Dict[required=[expr]], str Font name for subtitle text. - subtitleFontSize : anyOf(float, :class:`ExprRef`) + subtitleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size in pixels for subtitle text. - subtitleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + subtitleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style for subtitle text. - subtitleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + subtitleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight for subtitle text. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - subtitleLineHeight : anyOf(float, :class:`ExprRef`) + subtitleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line subtitle text. - subtitlePadding : anyOf(float, :class:`ExprRef`) + subtitlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding in pixels between title and subtitle text. - zindex : anyOf(float, :class:`ExprRef`) + zindex : :class:`ExprRef`, Dict[required=[expr]], float The integer z-index indicating the layering of the title group relative to other axis, mark, and legend groups. **Default value:** ``0``. """ - _schema = {'$ref': '#/definitions/TitleConfig'} - - def __init__(self, align=Undefined, anchor=Undefined, angle=Undefined, aria=Undefined, - baseline=Undefined, color=Undefined, dx=Undefined, dy=Undefined, font=Undefined, - fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, frame=Undefined, - limit=Undefined, lineHeight=Undefined, offset=Undefined, orient=Undefined, - subtitleColor=Undefined, subtitleFont=Undefined, subtitleFontSize=Undefined, - subtitleFontStyle=Undefined, subtitleFontWeight=Undefined, - subtitleLineHeight=Undefined, subtitlePadding=Undefined, zindex=Undefined, **kwds): - super(TitleConfig, self).__init__(align=align, anchor=anchor, angle=angle, aria=aria, - baseline=baseline, color=color, dx=dx, dy=dy, font=font, - fontSize=fontSize, fontStyle=fontStyle, fontWeight=fontWeight, - frame=frame, limit=limit, lineHeight=lineHeight, - offset=offset, orient=orient, subtitleColor=subtitleColor, - subtitleFont=subtitleFont, subtitleFontSize=subtitleFontSize, - subtitleFontStyle=subtitleFontStyle, - subtitleFontWeight=subtitleFontWeight, - subtitleLineHeight=subtitleLineHeight, - subtitlePadding=subtitlePadding, zindex=zindex, **kwds) + + _schema = {"$ref": "#/definitions/TitleConfig"} + + def __init__( + self, + align: Union[ + Union["Align", Literal["left", "center", "right"]], UndefinedType + ] = Undefined, + anchor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], + ], + UndefinedType, + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + frame: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["TitleFrame", Literal["bounds", "group"]], str], + ], + UndefinedType, + ] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleOrient", Literal["none", "left", "right", "top", "bottom"]], + ], + UndefinedType, + ] = Undefined, + subtitleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + subtitleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + subtitleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + subtitleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + subtitleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + subtitleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + subtitlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + zindex: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(TitleConfig, self).__init__( + align=align, + anchor=anchor, + angle=angle, + aria=aria, + baseline=baseline, + color=color, + dx=dx, + dy=dy, + font=font, + fontSize=fontSize, + fontStyle=fontStyle, + fontWeight=fontWeight, + frame=frame, + limit=limit, + lineHeight=lineHeight, + offset=offset, + orient=orient, + subtitleColor=subtitleColor, + subtitleFont=subtitleFont, + subtitleFontSize=subtitleFontSize, + subtitleFontStyle=subtitleFontStyle, + subtitleFontWeight=subtitleFontWeight, + subtitleLineHeight=subtitleLineHeight, + subtitlePadding=subtitlePadding, + zindex=zindex, + **kwds, + ) class TitleFrame(VegaLiteSchema): """TitleFrame schema wrapper - enum('bounds', 'group') + :class:`TitleFrame`, Literal['bounds', 'group'] """ - _schema = {'$ref': '#/definitions/TitleFrame'} + + _schema = {"$ref": "#/definitions/TitleFrame"} def __init__(self, *args): super(TitleFrame, self).__init__(*args) @@ -19285,9 +49207,10 @@ def __init__(self, *args): class TitleOrient(VegaLiteSchema): """TitleOrient schema wrapper - enum('none', 'left', 'right', 'top', 'bottom') + :class:`TitleOrient`, Literal['none', 'left', 'right', 'top', 'bottom'] """ - _schema = {'$ref': '#/definitions/TitleOrient'} + + _schema = {"$ref": "#/definitions/TitleOrient"} def __init__(self, *args): super(TitleOrient, self).__init__(*args) @@ -19296,17 +49219,17 @@ def __init__(self, *args): class TitleParams(VegaLiteSchema): """TitleParams schema wrapper - Mapping(required=[text]) + :class:`TitleParams`, Dict[required=[text]] Parameters ---------- - text : anyOf(:class:`Text`, :class:`ExprRef`) + text : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str The title text. - align : :class:`Align` + align : :class:`Align`, Literal['left', 'center', 'right'] Horizontal text alignment for title text. One of ``"left"``, ``"center"``, or ``"right"``. - anchor : :class:`TitleAnchor` + anchor : :class:`TitleAnchor`, Literal[None, 'start', 'middle', 'end'] The anchor position for placing the title. One of ``"start"``, ``"middle"``, or ``"end"``. For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title. @@ -19321,73 +49244,73 @@ class TitleParams(VegaLiteSchema): `__ and `layered `__ views. For other composite views, ``anchor`` is always ``"start"``. - angle : anyOf(float, :class:`ExprRef`) + angle : :class:`ExprRef`, Dict[required=[expr]], float Angle in degrees of title and subtitle text. - aria : anyOf(boolean, :class:`ExprRef`) + aria : :class:`ExprRef`, Dict[required=[expr]], bool A boolean flag indicating if `ARIA attributes `__ should be included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on the output SVG group, removing the title from the ARIA accessibility tree. **Default value:** ``true`` - baseline : :class:`TextBaseline` + baseline : :class:`Baseline`, Literal['top', 'middle', 'bottom'], :class:`TextBaseline`, str Vertical text baseline for title and subtitle text. One of ``"alphabetic"`` (default), ``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, or ``"line-bottom"``. The ``"line-top"`` and ``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are calculated relative to the *lineHeight* rather than *fontSize* alone. - color : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + color : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Text color for title text. - dx : anyOf(float, :class:`ExprRef`) + dx : :class:`ExprRef`, Dict[required=[expr]], float Delta offset for title and subtitle text x-coordinate. - dy : anyOf(float, :class:`ExprRef`) + dy : :class:`ExprRef`, Dict[required=[expr]], float Delta offset for title and subtitle text y-coordinate. - font : anyOf(string, :class:`ExprRef`) + font : :class:`ExprRef`, Dict[required=[expr]], str Font name for title text. - fontSize : anyOf(float, :class:`ExprRef`) + fontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size in pixels for title text. - fontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + fontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style for title text. - fontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + fontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight for title text. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - frame : anyOf(anyOf(:class:`TitleFrame`, string), :class:`ExprRef`) + frame : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleFrame`, Literal['bounds', 'group'], str The reference frame for the anchor position, one of ``"bounds"`` (to anchor relative to the full bounding box) or ``"group"`` (to anchor relative to the group width or height). - limit : anyOf(float, :class:`ExprRef`) + limit : :class:`ExprRef`, Dict[required=[expr]], float The maximum allowed length in pixels of title and subtitle text. - lineHeight : anyOf(float, :class:`ExprRef`) + lineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line title text or title text with ``"line-top"`` or ``"line-bottom"`` baseline. - offset : anyOf(float, :class:`ExprRef`) + offset : :class:`ExprRef`, Dict[required=[expr]], float The orthogonal offset in pixels by which to displace the title group from its position along the edge of the chart. - orient : anyOf(:class:`TitleOrient`, :class:`ExprRef`) + orient : :class:`ExprRef`, Dict[required=[expr]], :class:`TitleOrient`, Literal['none', 'left', 'right', 'top', 'bottom'] Default title orientation ( ``"top"``, ``"bottom"``, ``"left"``, or ``"right"`` ) - style : anyOf(string, List(string)) + style : Sequence[str], str A `mark style property `__ to apply to the title text mark. **Default value:** ``"group-title"``. - subtitle : :class:`Text` + subtitle : :class:`Text`, Sequence[str], str The subtitle Text. - subtitleColor : anyOf(anyOf(None, :class:`Color`), :class:`ExprRef`) + subtitleColor : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, None, :class:`ExprRef`, Dict[required=[expr]] Text color for subtitle text. - subtitleFont : anyOf(string, :class:`ExprRef`) + subtitleFont : :class:`ExprRef`, Dict[required=[expr]], str Font name for subtitle text. - subtitleFontSize : anyOf(float, :class:`ExprRef`) + subtitleFontSize : :class:`ExprRef`, Dict[required=[expr]], float Font size in pixels for subtitle text. - subtitleFontStyle : anyOf(:class:`FontStyle`, :class:`ExprRef`) + subtitleFontStyle : :class:`ExprRef`, Dict[required=[expr]], :class:`FontStyle`, str Font style for subtitle text. - subtitleFontWeight : anyOf(:class:`FontWeight`, :class:`ExprRef`) + subtitleFontWeight : :class:`ExprRef`, Dict[required=[expr]], :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900] Font weight for subtitle text. This can be either a string (e.g ``"bold"``, ``"normal"`` ) or a number ( ``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and ``"bold"`` = ``700`` ). - subtitleLineHeight : anyOf(float, :class:`ExprRef`) + subtitleLineHeight : :class:`ExprRef`, Dict[required=[expr]], float Line height in pixels for multi-line subtitle text. - subtitlePadding : anyOf(float, :class:`ExprRef`) + subtitlePadding : :class:`ExprRef`, Dict[required=[expr]], float The padding in pixels between title and subtitle text. zindex : float The integer z-index indicating the layering of the title group relative to other @@ -19395,52 +49318,542 @@ class TitleParams(VegaLiteSchema): **Default value:** ``0``. """ - _schema = {'$ref': '#/definitions/TitleParams'} - - def __init__(self, text=Undefined, align=Undefined, anchor=Undefined, angle=Undefined, - aria=Undefined, baseline=Undefined, color=Undefined, dx=Undefined, dy=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - frame=Undefined, limit=Undefined, lineHeight=Undefined, offset=Undefined, - orient=Undefined, style=Undefined, subtitle=Undefined, subtitleColor=Undefined, - subtitleFont=Undefined, subtitleFontSize=Undefined, subtitleFontStyle=Undefined, - subtitleFontWeight=Undefined, subtitleLineHeight=Undefined, subtitlePadding=Undefined, - zindex=Undefined, **kwds): - super(TitleParams, self).__init__(text=text, align=align, anchor=anchor, angle=angle, aria=aria, - baseline=baseline, color=color, dx=dx, dy=dy, font=font, - fontSize=fontSize, fontStyle=fontStyle, fontWeight=fontWeight, - frame=frame, limit=limit, lineHeight=lineHeight, - offset=offset, orient=orient, style=style, subtitle=subtitle, - subtitleColor=subtitleColor, subtitleFont=subtitleFont, - subtitleFontSize=subtitleFontSize, - subtitleFontStyle=subtitleFontStyle, - subtitleFontWeight=subtitleFontWeight, - subtitleLineHeight=subtitleLineHeight, - subtitlePadding=subtitlePadding, zindex=zindex, **kwds) + + _schema = {"$ref": "#/definitions/TitleParams"} + + def __init__( + self, + text: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union["Align", Literal["left", "center", "right"]], UndefinedType + ] = Undefined, + anchor: Union[ + Union["TitleAnchor", Literal[None, "start", "middle", "end"]], UndefinedType + ] = Undefined, + angle: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + aria: Union[ + Union[Union["ExprRef", "_Parameter", dict], bool], UndefinedType + ] = Undefined, + baseline: Union[ + Union[ + "TextBaseline", + Union["Baseline", Literal["top", "middle", "bottom"]], + str, + ], + UndefinedType, + ] = Undefined, + color: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + dx: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + dy: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + font: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + fontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + fontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + fontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + frame: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[Union["TitleFrame", Literal["bounds", "group"]], str], + ], + UndefinedType, + ] = Undefined, + limit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + lineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + offset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + orient: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["TitleOrient", Literal["none", "left", "right", "top", "bottom"]], + ], + UndefinedType, + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + subtitle: Union[Union["Text", Sequence[str], str], UndefinedType] = Undefined, + subtitleColor: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + ], + ], + UndefinedType, + ] = Undefined, + subtitleFont: Union[ + Union[Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + subtitleFontSize: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + subtitleFontStyle: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["FontStyle", str]], + UndefinedType, + ] = Undefined, + subtitleFontWeight: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union[ + "FontWeight", + Literal[ + "normal", + "bold", + "lighter", + "bolder", + 100, + 200, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + ], + ], + ], + UndefinedType, + ] = Undefined, + subtitleLineHeight: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + subtitlePadding: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + zindex: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(TitleParams, self).__init__( + text=text, + align=align, + anchor=anchor, + angle=angle, + aria=aria, + baseline=baseline, + color=color, + dx=dx, + dy=dy, + font=font, + fontSize=fontSize, + fontStyle=fontStyle, + fontWeight=fontWeight, + frame=frame, + limit=limit, + lineHeight=lineHeight, + offset=offset, + orient=orient, + style=style, + subtitle=subtitle, + subtitleColor=subtitleColor, + subtitleFont=subtitleFont, + subtitleFontSize=subtitleFontSize, + subtitleFontStyle=subtitleFontStyle, + subtitleFontWeight=subtitleFontWeight, + subtitleLineHeight=subtitleLineHeight, + subtitlePadding=subtitlePadding, + zindex=zindex, + **kwds, + ) class TooltipContent(VegaLiteSchema): """TooltipContent schema wrapper - Mapping(required=[content]) + :class:`TooltipContent`, Dict[required=[content]] Parameters ---------- - content : enum('encoding', 'data') + content : Literal['encoding', 'data'] """ - _schema = {'$ref': '#/definitions/TooltipContent'} - def __init__(self, content=Undefined, **kwds): + _schema = {"$ref": "#/definitions/TooltipContent"} + + def __init__( + self, + content: Union[Literal["encoding", "data"], UndefinedType] = Undefined, + **kwds, + ): super(TooltipContent, self).__init__(content=content, **kwds) class TopLevelParameter(VegaLiteSchema): """TopLevelParameter schema wrapper - anyOf(:class:`VariableParameter`, :class:`TopLevelSelectionParameter`) + :class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, + select]], :class:`VariableParameter`, Dict[required=[name]] """ - _schema = {'$ref': '#/definitions/TopLevelParameter'} + + _schema = {"$ref": "#/definitions/TopLevelParameter"} def __init__(self, *args, **kwds): super(TopLevelParameter, self).__init__(*args, **kwds) @@ -19449,17 +49862,17 @@ def __init__(self, *args, **kwds): class TopLevelSelectionParameter(TopLevelParameter): """TopLevelSelectionParameter schema wrapper - Mapping(required=[name, select]) + :class:`TopLevelSelectionParameter`, Dict[required=[name, select]] Parameters ---------- - name : :class:`ParameterName` + name : :class:`ParameterName`, str Required. A unique name for the selection parameter. Selection names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or "$", or "_") and may not start with a digit. Reserved keywords that may not be used as parameter names are "datum", "event", "item", and "parent". - select : anyOf(:class:`SelectionType`, :class:`PointSelectionConfig`, :class:`IntervalSelectionConfig`) + select : :class:`IntervalSelectionConfig`, Dict[required=[type]], :class:`PointSelectionConfig`, Dict[required=[type]], :class:`SelectionType`, Literal['point', 'interval'] Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types: @@ -19467,7 +49880,7 @@ class TopLevelSelectionParameter(TopLevelParameter): * ``"point"`` -- to select multiple discrete data values; the first value is selected on ``click`` and additional values toggled on shift-click. * ``"interval"`` -- to select a continuous range of data values on ``drag``. - bind : anyOf(:class:`Binding`, Mapping(required=[]), :class:`LegendBinding`, string) + bind : :class:`BindCheckbox`, Dict[required=[input]], :class:`BindDirect`, Dict[required=[element]], :class:`BindInput`, Dict, :class:`BindRadioSelect`, Dict[required=[input, options]], :class:`BindRange`, Dict[required=[input]], :class:`Binding`, :class:`LegendBinding`, :class:`LegendStreamBinding`, Dict[required=[legend]], str, Dict, str When set, a selection is populated by input elements (also known as dynamic query widgets) or by interacting with the corresponding legend. Direct manipulation interaction is disabled by default; to re-enable it, set the selection's `on @@ -19483,36 +49896,81 @@ class TopLevelSelectionParameter(TopLevelParameter): **See also:** `bind `__ documentation. - value : anyOf(:class:`SelectionInit`, List(:class:`SelectionInitMapping`), :class:`SelectionInitIntervalMapping`) + value : :class:`DateTime`, Dict, :class:`PrimitiveValue`, None, bool, float, str, :class:`SelectionInit`, :class:`SelectionInitIntervalMapping`, Dict, Sequence[:class:`SelectionInitMapping`, Dict] Initialize the selection with a mapping between `projected channels or field names `__ and initial values. **See also:** `init `__ documentation. - views : List(string) + views : Sequence[str] By default, top-level selections are applied to every view in the visualization. If this property is specified, selections will only be applied to views with the given names. """ - _schema = {'$ref': '#/definitions/TopLevelSelectionParameter'} - def __init__(self, name=Undefined, select=Undefined, bind=Undefined, value=Undefined, - views=Undefined, **kwds): - super(TopLevelSelectionParameter, self).__init__(name=name, select=select, bind=bind, - value=value, views=views, **kwds) + _schema = {"$ref": "#/definitions/TopLevelSelectionParameter"} + + def __init__( + self, + name: Union[Union["ParameterName", str], UndefinedType] = Undefined, + select: Union[ + Union[ + Union["IntervalSelectionConfig", dict], + Union["PointSelectionConfig", dict], + Union["SelectionType", Literal["point", "interval"]], + ], + UndefinedType, + ] = Undefined, + bind: Union[ + Union[ + Union[ + "Binding", + Union["BindCheckbox", dict], + Union["BindDirect", dict], + Union["BindInput", dict], + Union["BindRadioSelect", dict], + Union["BindRange", dict], + ], + Union["LegendBinding", Union["LegendStreamBinding", dict], str], + dict, + str, + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Sequence[Union["SelectionInitMapping", dict]], + Union[ + "SelectionInit", + Union["DateTime", dict], + Union["PrimitiveValue", None, bool, float, str], + ], + Union["SelectionInitIntervalMapping", dict], + ], + UndefinedType, + ] = Undefined, + views: Union[Sequence[str], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelSelectionParameter, self).__init__( + name=name, select=select, bind=bind, value=value, views=views, **kwds + ) class TopLevelSpec(VegaLiteSchema): """TopLevelSpec schema wrapper - anyOf(:class:`TopLevelUnitSpec`, :class:`TopLevelFacetSpec`, :class:`TopLevelLayerSpec`, - :class:`TopLevelRepeatSpec`, :class:`TopLevelConcatSpec`, :class:`TopLevelVConcatSpec`, - :class:`TopLevelHConcatSpec`) + :class:`TopLevelConcatSpec`, Dict[required=[concat]], :class:`TopLevelFacetSpec`, + Dict[required=[data, facet, spec]], :class:`TopLevelHConcatSpec`, Dict[required=[hconcat]], + :class:`TopLevelLayerSpec`, Dict[required=[layer]], :class:`TopLevelRepeatSpec`, + Dict[required=[repeat, spec]], :class:`TopLevelSpec`, :class:`TopLevelUnitSpec`, + Dict[required=[data, mark]], :class:`TopLevelVConcatSpec`, Dict[required=[vconcat]] A Vega-Lite top-level specification. This is the root class for all Vega-Lite specifications. (The json schema is generated from this type.) """ - _schema = {'$ref': '#/definitions/TopLevelSpec'} + + _schema = {"$ref": "#/definitions/TopLevelSpec"} def __init__(self, *args, **kwds): super(TopLevelSpec, self).__init__(*args, **kwds) @@ -19521,14 +49979,14 @@ def __init__(self, *args, **kwds): class TopLevelConcatSpec(TopLevelSpec): """TopLevelConcatSpec schema wrapper - Mapping(required=[concat]) + :class:`TopLevelConcatSpec`, Dict[required=[concat]] Parameters ---------- - concat : List(:class:`NonNormalizedSpec`) + concat : Sequence[:class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`NonNormalizedSpec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]]] A list of views to be concatenated. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -19545,17 +50003,17 @@ class TopLevelConcatSpec(TopLevelSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -19567,7 +50025,7 @@ class TopLevelConcatSpec(TopLevelSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -19593,32 +50051,32 @@ class TopLevelConcatSpec(TopLevelSpec): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - config : :class:`Config` + config : :class:`Config`, Dict Vega-Lite configuration object. This property can only be defined at the top-level of a specification. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - datasets : :class:`Datasets` + datasets : :class:`Datasets`, Dict A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a ``data`` property. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] Dynamic variables or selections that parameterize a visualization. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -19626,56 +50084,348 @@ class TopLevelConcatSpec(TopLevelSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - usermeta : :class:`Dict` + usermeta : :class:`Dict`, Dict Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata. - $schema : string + $schema : str URL to `JSON schema `__ for a Vega-Lite specification. Unless you have a reason to change this, use ``https://vega.github.io/schema/vega-lite/v5.json``. Setting the ``$schema`` property allows automatic validation and autocomplete in editors that support JSON schema. """ - _schema = {'$ref': '#/definitions/TopLevelConcatSpec'} - def __init__(self, concat=Undefined, align=Undefined, autosize=Undefined, background=Undefined, - bounds=Undefined, center=Undefined, columns=Undefined, config=Undefined, - data=Undefined, datasets=Undefined, description=Undefined, name=Undefined, - padding=Undefined, params=Undefined, resolve=Undefined, spacing=Undefined, - title=Undefined, transform=Undefined, usermeta=Undefined, **kwds): - super(TopLevelConcatSpec, self).__init__(concat=concat, align=align, autosize=autosize, - background=background, bounds=bounds, center=center, - columns=columns, config=config, data=data, - datasets=datasets, description=description, name=name, - padding=padding, params=params, resolve=resolve, - spacing=spacing, title=title, transform=transform, - usermeta=usermeta, **kwds) + _schema = {"$ref": "#/definitions/TopLevelConcatSpec"} + + def __init__( + self, + concat: Union[ + Sequence[ + Union[ + "NonNormalizedSpec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ] + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + config: Union[Union["Config", dict], UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + datasets: Union[Union["Datasets", dict], UndefinedType] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + usermeta: Union[Union["Dict", dict], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelConcatSpec, self).__init__( + concat=concat, + align=align, + autosize=autosize, + background=background, + bounds=bounds, + center=center, + columns=columns, + config=config, + data=data, + datasets=datasets, + description=description, + name=name, + padding=padding, + params=params, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + usermeta=usermeta, + **kwds, + ) class TopLevelFacetSpec(TopLevelSpec): """TopLevelFacetSpec schema wrapper - Mapping(required=[data, facet, spec]) + :class:`TopLevelFacetSpec`, Dict[required=[data, facet, spec]] Parameters ---------- - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - facet : anyOf(:class:`FacetFieldDef`, :class:`FacetMapping`) + facet : :class:`FacetFieldDef`, Dict, :class:`FacetMapping`, Dict Definition for how to facet the data. One of: 1) `a field definition for faceting the plot by one field `__ 2) `An object that maps row and column channels to their field definitions `__ - spec : anyOf(:class:`LayerSpec`, :class:`UnitSpecWithFrame`) + spec : :class:`LayerSpec`, Dict[required=[layer]], :class:`UnitSpecWithFrame`, Dict[required=[mark]] A specification of the view that gets faceted. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -19692,17 +50442,17 @@ class TopLevelFacetSpec(TopLevelSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -19714,7 +50464,7 @@ class TopLevelFacetSpec(TopLevelSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -19740,29 +50490,29 @@ class TopLevelFacetSpec(TopLevelSpec): 2) Setting the ``columns`` to ``1`` is equivalent to ``vconcat`` (for ``concat`` ) and to using the ``row`` channel (for ``facet`` and ``repeat`` ). - config : :class:`Config` + config : :class:`Config`, Dict Vega-Lite configuration object. This property can only be defined at the top-level of a specification. - datasets : :class:`Datasets` + datasets : :class:`Datasets`, Dict A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a ``data`` property. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] Dynamic variables or selections that parameterize a visualization. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -19770,57 +50520,339 @@ class TopLevelFacetSpec(TopLevelSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - usermeta : :class:`Dict` + usermeta : :class:`Dict`, Dict Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata. - $schema : string + $schema : str URL to `JSON schema `__ for a Vega-Lite specification. Unless you have a reason to change this, use ``https://vega.github.io/schema/vega-lite/v5.json``. Setting the ``$schema`` property allows automatic validation and autocomplete in editors that support JSON schema. """ - _schema = {'$ref': '#/definitions/TopLevelFacetSpec'} - def __init__(self, data=Undefined, facet=Undefined, spec=Undefined, align=Undefined, - autosize=Undefined, background=Undefined, bounds=Undefined, center=Undefined, - columns=Undefined, config=Undefined, datasets=Undefined, description=Undefined, - name=Undefined, padding=Undefined, params=Undefined, resolve=Undefined, - spacing=Undefined, title=Undefined, transform=Undefined, usermeta=Undefined, **kwds): - super(TopLevelFacetSpec, self).__init__(data=data, facet=facet, spec=spec, align=align, - autosize=autosize, background=background, bounds=bounds, - center=center, columns=columns, config=config, - datasets=datasets, description=description, name=name, - padding=padding, params=params, resolve=resolve, - spacing=spacing, title=title, transform=transform, - usermeta=usermeta, **kwds) + _schema = {"$ref": "#/definitions/TopLevelFacetSpec"} + + def __init__( + self, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + facet: Union[ + Union[Union["FacetFieldDef", dict], Union["FacetMapping", dict]], + UndefinedType, + ] = Undefined, + spec: Union[ + Union[Union["LayerSpec", dict], Union["UnitSpecWithFrame", dict]], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + columns: Union[float, UndefinedType] = Undefined, + config: Union[Union["Config", dict], UndefinedType] = Undefined, + datasets: Union[Union["Datasets", dict], UndefinedType] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + usermeta: Union[Union["Dict", dict], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelFacetSpec, self).__init__( + data=data, + facet=facet, + spec=spec, + align=align, + autosize=autosize, + background=background, + bounds=bounds, + center=center, + columns=columns, + config=config, + datasets=datasets, + description=description, + name=name, + padding=padding, + params=params, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + usermeta=usermeta, + **kwds, + ) class TopLevelHConcatSpec(TopLevelSpec): """TopLevelHConcatSpec schema wrapper - Mapping(required=[hconcat]) + :class:`TopLevelHConcatSpec`, Dict[required=[hconcat]] Parameters ---------- - hconcat : List(:class:`NonNormalizedSpec`) + hconcat : Sequence[:class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`NonNormalizedSpec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]]] A list of views to be concatenated and put into a row. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -19832,111 +50864,389 @@ class TopLevelHConcatSpec(TopLevelSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : boolean + center : bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - config : :class:`Config` + config : :class:`Config`, Dict Vega-Lite configuration object. This property can only be defined at the top-level of a specification. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - datasets : :class:`Datasets` + datasets : :class:`Datasets`, Dict A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a ``data`` property. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] Dynamic variables or selections that parameterize a visualization. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. spacing : float The spacing in pixels between sub-views of the concat operator. **Default value** : ``10`` - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - usermeta : :class:`Dict` + usermeta : :class:`Dict`, Dict Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata. - $schema : string + $schema : str URL to `JSON schema `__ for a Vega-Lite specification. Unless you have a reason to change this, use ``https://vega.github.io/schema/vega-lite/v5.json``. Setting the ``$schema`` property allows automatic validation and autocomplete in editors that support JSON schema. """ - _schema = {'$ref': '#/definitions/TopLevelHConcatSpec'} - def __init__(self, hconcat=Undefined, autosize=Undefined, background=Undefined, bounds=Undefined, - center=Undefined, config=Undefined, data=Undefined, datasets=Undefined, - description=Undefined, name=Undefined, padding=Undefined, params=Undefined, - resolve=Undefined, spacing=Undefined, title=Undefined, transform=Undefined, - usermeta=Undefined, **kwds): - super(TopLevelHConcatSpec, self).__init__(hconcat=hconcat, autosize=autosize, - background=background, bounds=bounds, center=center, - config=config, data=data, datasets=datasets, - description=description, name=name, padding=padding, - params=params, resolve=resolve, spacing=spacing, - title=title, transform=transform, usermeta=usermeta, - **kwds) + _schema = {"$ref": "#/definitions/TopLevelHConcatSpec"} + + def __init__( + self, + hconcat: Union[ + Sequence[ + Union[ + "NonNormalizedSpec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ] + ], + UndefinedType, + ] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + config: Union[Union["Config", dict], UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + datasets: Union[Union["Datasets", dict], UndefinedType] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + usermeta: Union[Union["Dict", dict], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelHConcatSpec, self).__init__( + hconcat=hconcat, + autosize=autosize, + background=background, + bounds=bounds, + center=center, + config=config, + data=data, + datasets=datasets, + description=description, + name=name, + padding=padding, + params=params, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + usermeta=usermeta, + **kwds, + ) class TopLevelLayerSpec(TopLevelSpec): """TopLevelLayerSpec schema wrapper - Mapping(required=[layer]) + :class:`TopLevelLayerSpec`, Dict[required=[layer]] Parameters ---------- - layer : List(anyOf(:class:`LayerSpec`, :class:`UnitSpec`)) + layer : Sequence[:class:`LayerSpec`, Dict[required=[layer]], :class:`UnitSpec`, Dict[required=[mark]]] Layer or single view specifications to be layered. **Note** : Specifications inside ``layer`` cannot use ``row`` and ``column`` channels as layering facet specifications is not allowed. Instead, use the `facet operator `__ and place a layer inside a facet. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - config : :class:`Config` + config : :class:`Config`, Dict Vega-Lite configuration object. This property can only be defined at the top-level of a specification. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - datasets : :class:`Datasets` + datasets : :class:`Datasets`, Dict A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a ``data`` property. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`SharedEncoding` + encoding : :class:`SharedEncoding`, Dict A shared key-value mapping between encoding channels and definition of fields in the underlying layers. - height : anyOf(float, string, :class:`Step`) + height : :class:`Step`, Dict[required=[step]], float, str The height of a visualization. @@ -19956,34 +51266,34 @@ class TopLevelLayerSpec(TopLevelSpec): **See also:** `height `__ documentation. - name : string + name : str Name of the visualization for later reference. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] Dynamic variables or selections that parameterize a visualization. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of the geographic projection shared by underlying layers. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - usermeta : :class:`Dict` + usermeta : :class:`Dict`, Dict Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata. - view : :class:`ViewBackground` + view : :class:`ViewBackground`, Dict An object defining the view background's fill and stroke. **Default value:** none (transparent) - width : anyOf(float, string, :class:`Step`) + width : :class:`Step`, Dict[required=[step]], float, str The width of a visualization. @@ -20003,35 +51313,305 @@ class TopLevelLayerSpec(TopLevelSpec): **See also:** `width `__ documentation. - $schema : string + $schema : str URL to `JSON schema `__ for a Vega-Lite specification. Unless you have a reason to change this, use ``https://vega.github.io/schema/vega-lite/v5.json``. Setting the ``$schema`` property allows automatic validation and autocomplete in editors that support JSON schema. """ - _schema = {'$ref': '#/definitions/TopLevelLayerSpec'} - def __init__(self, layer=Undefined, autosize=Undefined, background=Undefined, config=Undefined, - data=Undefined, datasets=Undefined, description=Undefined, encoding=Undefined, - height=Undefined, name=Undefined, padding=Undefined, params=Undefined, - projection=Undefined, resolve=Undefined, title=Undefined, transform=Undefined, - usermeta=Undefined, view=Undefined, width=Undefined, **kwds): - super(TopLevelLayerSpec, self).__init__(layer=layer, autosize=autosize, background=background, - config=config, data=data, datasets=datasets, - description=description, encoding=encoding, - height=height, name=name, padding=padding, - params=params, projection=projection, resolve=resolve, - title=title, transform=transform, usermeta=usermeta, - view=view, width=width, **kwds) + _schema = {"$ref": "#/definitions/TopLevelLayerSpec"} + + def __init__( + self, + layer: Union[ + Sequence[Union[Union["LayerSpec", dict], Union["UnitSpec", dict]]], + UndefinedType, + ] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + config: Union[Union["Config", dict], UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + datasets: Union[Union["Datasets", dict], UndefinedType] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["SharedEncoding", dict], UndefinedType] = Undefined, + height: Union[ + Union[Union["Step", dict], float, str], UndefinedType + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + usermeta: Union[Union["Dict", dict], UndefinedType] = Undefined, + view: Union[Union["ViewBackground", dict], UndefinedType] = Undefined, + width: Union[Union[Union["Step", dict], float, str], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelLayerSpec, self).__init__( + layer=layer, + autosize=autosize, + background=background, + config=config, + data=data, + datasets=datasets, + description=description, + encoding=encoding, + height=height, + name=name, + padding=padding, + params=params, + projection=projection, + resolve=resolve, + title=title, + transform=transform, + usermeta=usermeta, + view=view, + width=width, + **kwds, + ) class TopLevelRepeatSpec(TopLevelSpec): """TopLevelRepeatSpec schema wrapper - anyOf(Mapping(required=[repeat, spec]), Mapping(required=[repeat, spec])) + :class:`TopLevelRepeatSpec`, Dict[required=[repeat, spec]] """ - _schema = {'$ref': '#/definitions/TopLevelRepeatSpec'} + + _schema = {"$ref": "#/definitions/TopLevelRepeatSpec"} def __init__(self, *args, **kwds): super(TopLevelRepeatSpec, self).__init__(*args, **kwds) @@ -20040,20 +51620,20 @@ def __init__(self, *args, **kwds): class TopLevelUnitSpec(TopLevelSpec): """TopLevelUnitSpec schema wrapper - Mapping(required=[data, mark]) + :class:`TopLevelUnitSpec`, Dict[required=[data, mark]] Parameters ---------- - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - mark : :class:`AnyMark` + mark : :class:`AnyMark`, :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]], :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, str, :class:`MarkDef`, Dict[required=[type]], :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] A string describing the mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"rule"``, ``"geoshape"``, and ``"text"`` ) or a `mark definition object `__. - align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`) + align : :class:`LayoutAlign`, Literal['all', 'each', 'none'], :class:`RowColLayoutAlign`, Dict The alignment to apply to grid rows and columns. The supported string values are ``"all"``, ``"each"``, and ``"none"``. @@ -20070,17 +51650,17 @@ class TopLevelUnitSpec(TopLevelSpec): be used to supply different alignments for rows and columns. **Default value:** ``"all"``. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -20092,7 +51672,7 @@ class TopLevelUnitSpec(TopLevelSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : anyOf(boolean, :class:`RowColboolean`) + center : :class:`RowColboolean`, Dict, bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. @@ -20100,18 +51680,18 @@ class TopLevelUnitSpec(TopLevelSpec): supply different centering values for rows and columns. **Default value:** ``false`` - config : :class:`Config` + config : :class:`Config`, Dict Vega-Lite configuration object. This property can only be defined at the top-level of a specification. - datasets : :class:`Datasets` + datasets : :class:`Datasets`, Dict A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a ``data`` property. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`FacetedEncoding` + encoding : :class:`FacetedEncoding`, Dict A key-value mapping between encoding channels and definition of fields. - height : anyOf(float, string, :class:`Step`) + height : :class:`Step`, Dict[required=[step]], float, str The height of a visualization. @@ -20131,25 +51711,25 @@ class TopLevelUnitSpec(TopLevelSpec): **See also:** `height `__ documentation. - name : string + name : str Name of the visualization for later reference. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] An array of parameters that may either be simple variables, or more complex selections that map user input to data queries. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of geographic projection, which will be applied to ``shape`` path for ``"geoshape"`` marks and to ``latitude`` and ``"longitude"`` channels for other marks. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. - spacing : anyOf(float, :class:`RowColnumber`) + spacing : :class:`RowColnumber`, Dict, float The spacing in pixels between sub-views of the composition operator. An object of the form ``{"row": number, "column": number}`` can be used to set different spacing values for rows and columns. @@ -20157,18 +51737,18 @@ class TopLevelUnitSpec(TopLevelSpec): **Default value** : Depends on ``"spacing"`` property of `the view composition configuration `__ ( ``20`` by default) - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - usermeta : :class:`Dict` + usermeta : :class:`Dict`, Dict Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata. - view : :class:`ViewBackground` + view : :class:`ViewBackground`, Dict An object defining the view background's fill and stroke. **Default value:** none (transparent) - width : anyOf(float, string, :class:`Step`) + width : :class:`Step`, Dict[required=[step]], float, str The width of a visualization. @@ -20188,52 +51768,371 @@ class TopLevelUnitSpec(TopLevelSpec): **See also:** `width `__ documentation. - $schema : string + $schema : str URL to `JSON schema `__ for a Vega-Lite specification. Unless you have a reason to change this, use ``https://vega.github.io/schema/vega-lite/v5.json``. Setting the ``$schema`` property allows automatic validation and autocomplete in editors that support JSON schema. """ - _schema = {'$ref': '#/definitions/TopLevelUnitSpec'} - def __init__(self, data=Undefined, mark=Undefined, align=Undefined, autosize=Undefined, - background=Undefined, bounds=Undefined, center=Undefined, config=Undefined, - datasets=Undefined, description=Undefined, encoding=Undefined, height=Undefined, - name=Undefined, padding=Undefined, params=Undefined, projection=Undefined, - resolve=Undefined, spacing=Undefined, title=Undefined, transform=Undefined, - usermeta=Undefined, view=Undefined, width=Undefined, **kwds): - super(TopLevelUnitSpec, self).__init__(data=data, mark=mark, align=align, autosize=autosize, - background=background, bounds=bounds, center=center, - config=config, datasets=datasets, - description=description, encoding=encoding, - height=height, name=name, padding=padding, params=params, - projection=projection, resolve=resolve, spacing=spacing, - title=title, transform=transform, usermeta=usermeta, - view=view, width=width, **kwds) + _schema = {"$ref": "#/definitions/TopLevelUnitSpec"} + + def __init__( + self, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + mark: Union[ + Union[ + "AnyMark", + Union[ + "CompositeMark", + Union["BoxPlot", str], + Union["ErrorBand", str], + Union["ErrorBar", str], + ], + Union[ + "CompositeMarkDef", + Union["BoxPlotDef", dict], + Union["ErrorBandDef", dict], + Union["ErrorBarDef", dict], + ], + Union[ + "Mark", + Literal[ + "arc", + "area", + "bar", + "image", + "line", + "point", + "rect", + "rule", + "text", + "tick", + "trail", + "circle", + "square", + "geoshape", + ], + ], + Union["MarkDef", dict], + ], + UndefinedType, + ] = Undefined, + align: Union[ + Union[ + Union["LayoutAlign", Literal["all", "each", "none"]], + Union["RowColLayoutAlign", dict], + ], + UndefinedType, + ] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[ + Union[Union["RowColboolean", dict], bool], UndefinedType + ] = Undefined, + config: Union[Union["Config", dict], UndefinedType] = Undefined, + datasets: Union[Union["Datasets", dict], UndefinedType] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["FacetedEncoding", dict], UndefinedType] = Undefined, + height: Union[ + Union[Union["Step", dict], float, str], UndefinedType + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[ + Union[Union["RowColnumber", dict], float], UndefinedType + ] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + usermeta: Union[Union["Dict", dict], UndefinedType] = Undefined, + view: Union[Union["ViewBackground", dict], UndefinedType] = Undefined, + width: Union[Union[Union["Step", dict], float, str], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelUnitSpec, self).__init__( + data=data, + mark=mark, + align=align, + autosize=autosize, + background=background, + bounds=bounds, + center=center, + config=config, + datasets=datasets, + description=description, + encoding=encoding, + height=height, + name=name, + padding=padding, + params=params, + projection=projection, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + usermeta=usermeta, + view=view, + width=width, + **kwds, + ) class TopLevelVConcatSpec(TopLevelSpec): """TopLevelVConcatSpec schema wrapper - Mapping(required=[vconcat]) + :class:`TopLevelVConcatSpec`, Dict[required=[vconcat]] Parameters ---------- - vconcat : List(:class:`NonNormalizedSpec`) + vconcat : Sequence[:class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`NonNormalizedSpec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]]] A list of views to be concatenated and put into a column. - autosize : anyOf(:class:`AutosizeType`, :class:`AutoSizeParams`) + autosize : :class:`AutoSizeParams`, Dict, :class:`AutosizeType`, Literal['pad', 'none', 'fit', 'fit-x', 'fit-y'] How the visualization size should be determined. If a string, should be one of ``"pad"``, ``"fit"`` or ``"none"``. Object values can additionally specify parameters for content sizing and automatic resizing. **Default value** : ``pad`` - background : anyOf(:class:`Color`, :class:`ExprRef`) + background : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]] CSS color property to use as the background of the entire view. **Default value:** ``"white"`` - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -20245,91 +52144,369 @@ class TopLevelVConcatSpec(TopLevelSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : boolean + center : bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - config : :class:`Config` + config : :class:`Config`, Dict Vega-Lite configuration object. This property can only be defined at the top-level of a specification. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - datasets : :class:`Datasets` + datasets : :class:`Datasets`, Dict A global data store for named datasets. This is a mapping from names to inline datasets. This can be an array of objects or primitive values or a string. Arrays of primitive values are ingested as objects with a ``data`` property. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - padding : anyOf(:class:`Padding`, :class:`ExprRef`) + padding : :class:`ExprRef`, Dict[required=[expr]], :class:`Padding`, Dict, float The default visualization padding, in pixels, from the edge of the visualization canvas to the data rectangle. If a number, specifies padding for all sides. If an object, the value should have the format ``{"left": 5, "top": 5, "right": 5, "bottom": 5}`` to specify padding for each side of the visualization. **Default value** : ``5`` - params : List(:class:`TopLevelParameter`) + params : Sequence[:class:`TopLevelParameter`, :class:`TopLevelSelectionParameter`, Dict[required=[name, select]], :class:`VariableParameter`, Dict[required=[name]]] Dynamic variables or selections that parameterize a visualization. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. spacing : float The spacing in pixels between sub-views of the concat operator. **Default value** : ``10`` - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - usermeta : :class:`Dict` + usermeta : :class:`Dict`, Dict Optional metadata that will be passed to Vega. This object is completely ignored by Vega and Vega-Lite and can be used for custom metadata. - $schema : string + $schema : str URL to `JSON schema `__ for a Vega-Lite specification. Unless you have a reason to change this, use ``https://vega.github.io/schema/vega-lite/v5.json``. Setting the ``$schema`` property allows automatic validation and autocomplete in editors that support JSON schema. """ - _schema = {'$ref': '#/definitions/TopLevelVConcatSpec'} - def __init__(self, vconcat=Undefined, autosize=Undefined, background=Undefined, bounds=Undefined, - center=Undefined, config=Undefined, data=Undefined, datasets=Undefined, - description=Undefined, name=Undefined, padding=Undefined, params=Undefined, - resolve=Undefined, spacing=Undefined, title=Undefined, transform=Undefined, - usermeta=Undefined, **kwds): - super(TopLevelVConcatSpec, self).__init__(vconcat=vconcat, autosize=autosize, - background=background, bounds=bounds, center=center, - config=config, data=data, datasets=datasets, - description=description, name=name, padding=padding, - params=params, resolve=resolve, spacing=spacing, - title=title, transform=transform, usermeta=usermeta, - **kwds) + _schema = {"$ref": "#/definitions/TopLevelVConcatSpec"} + + def __init__( + self, + vconcat: Union[ + Sequence[ + Union[ + "NonNormalizedSpec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ] + ], + UndefinedType, + ] = Undefined, + autosize: Union[ + Union[ + Union["AutoSizeParams", dict], + Union["AutosizeType", Literal["pad", "none", "fit", "fit-x", "fit-y"]], + ], + UndefinedType, + ] = Undefined, + background: Union[ + Union[ + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + config: Union[Union["Config", dict], UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + datasets: Union[Union["Datasets", dict], UndefinedType] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + padding: Union[ + Union[Union["ExprRef", "_Parameter", dict], Union["Padding", dict, float]], + UndefinedType, + ] = Undefined, + params: Union[ + Sequence[ + Union[ + "TopLevelParameter", + Union["TopLevelSelectionParameter", dict], + Union["VariableParameter", dict], + ] + ], + UndefinedType, + ] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + usermeta: Union[Union["Dict", dict], UndefinedType] = Undefined, + **kwds, + ): + super(TopLevelVConcatSpec, self).__init__( + vconcat=vconcat, + autosize=autosize, + background=background, + bounds=bounds, + center=center, + config=config, + data=data, + datasets=datasets, + description=description, + name=name, + padding=padding, + params=params, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + usermeta=usermeta, + **kwds, + ) class TopoDataFormat(DataFormat): """TopoDataFormat schema wrapper - Mapping(required=[]) + :class:`TopoDataFormat`, Dict Parameters ---------- - feature : string + feature : str The name of the TopoJSON object set to convert to a GeoJSON feature collection. For example, in a map of the world, there may be an object set named ``"countries"``. Using the feature property, we can extract this set and generate a GeoJSON feature object for each country. - mesh : string + mesh : str The name of the TopoJSON object set to convert to mesh. Similar to the ``feature`` option, ``mesh`` extracts a named TopoJSON object set. Unlike the ``feature`` option, the corresponding geo data is returned as a single, unified mesh instance, not as individual GeoJSON features. Extracting a mesh is useful for more efficiently drawing borders or other geographic elements that you do not need to associate with specific regions such as individual countries, states or counties. - parse : anyOf(:class:`Parse`, None) + parse : :class:`Parse`, Dict, None If set to ``null``, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field @@ -20345,30 +52522,47 @@ class TopoDataFormat(DataFormat): UTC date format parsing is supported similarly (e.g., ``{foo: "utc:'%m%d%Y'"}`` ). See more about `UTC time `__ - type : string + type : str Type of input data: ``"json"``, ``"csv"``, ``"tsv"``, ``"dsv"``. **Default value:** The default format type is determined by the extension of the file URL. If no extension is detected, ``"json"`` will be used by default. """ - _schema = {'$ref': '#/definitions/TopoDataFormat'} - def __init__(self, feature=Undefined, mesh=Undefined, parse=Undefined, type=Undefined, **kwds): - super(TopoDataFormat, self).__init__(feature=feature, mesh=mesh, parse=parse, type=type, **kwds) + _schema = {"$ref": "#/definitions/TopoDataFormat"} + + def __init__( + self, + feature: Union[str, UndefinedType] = Undefined, + mesh: Union[str, UndefinedType] = Undefined, + parse: Union[Union[None, Union["Parse", dict]], UndefinedType] = Undefined, + type: Union[str, UndefinedType] = Undefined, + **kwds, + ): + super(TopoDataFormat, self).__init__( + feature=feature, mesh=mesh, parse=parse, type=type, **kwds + ) class Transform(VegaLiteSchema): """Transform schema wrapper - anyOf(:class:`AggregateTransform`, :class:`BinTransform`, :class:`CalculateTransform`, - :class:`DensityTransform`, :class:`ExtentTransform`, :class:`FilterTransform`, - :class:`FlattenTransform`, :class:`FoldTransform`, :class:`ImputeTransform`, - :class:`JoinAggregateTransform`, :class:`LoessTransform`, :class:`LookupTransform`, - :class:`QuantileTransform`, :class:`RegressionTransform`, :class:`TimeUnitTransform`, - :class:`SampleTransform`, :class:`StackTransform`, :class:`WindowTransform`, - :class:`PivotTransform`) + :class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, + Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, + as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, + Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], + :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, + Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], + :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, + Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], + :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, + Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], + :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, + Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, + field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]] """ - _schema = {'$ref': '#/definitions/Transform'} + + _schema = {"$ref": "#/definitions/Transform"} def __init__(self, *args, **kwds): super(Transform, self).__init__(*args, **kwds) @@ -20377,97 +52571,114 @@ def __init__(self, *args, **kwds): class AggregateTransform(Transform): """AggregateTransform schema wrapper - Mapping(required=[aggregate]) + :class:`AggregateTransform`, Dict[required=[aggregate]] Parameters ---------- - aggregate : List(:class:`AggregatedFieldDef`) + aggregate : Sequence[:class:`AggregatedFieldDef`, Dict[required=[op, as]]] Array of objects that define fields to aggregate. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields to group by. If not specified, a single group containing all data objects will be used. """ - _schema = {'$ref': '#/definitions/AggregateTransform'} - def __init__(self, aggregate=Undefined, groupby=Undefined, **kwds): - super(AggregateTransform, self).__init__(aggregate=aggregate, groupby=groupby, **kwds) + _schema = {"$ref": "#/definitions/AggregateTransform"} + + def __init__( + self, + aggregate: Union[ + Sequence[Union["AggregatedFieldDef", dict]], UndefinedType + ] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): + super(AggregateTransform, self).__init__( + aggregate=aggregate, groupby=groupby, **kwds + ) class BinTransform(Transform): """BinTransform schema wrapper - Mapping(required=[bin, field, as]) + :class:`BinTransform`, Dict[required=[bin, field, as]] Parameters ---------- - bin : anyOf(boolean, :class:`BinParams`) + bin : :class:`BinParams`, Dict, bool An object indicating bin properties, or simply ``true`` for using default bin parameters. - field : :class:`FieldName` + field : :class:`FieldName`, str The data field to bin. - as : anyOf(:class:`FieldName`, List(:class:`FieldName`)) + as : :class:`FieldName`, str, Sequence[:class:`FieldName`, str] The output fields at which to write the start and end bin values. This can be either a string or an array of strings with two elements denoting the name for the fields for bin start and bin end respectively. If a single string (e.g., ``"val"`` ) is provided, the end field will be ``"val_end"``. """ - _schema = {'$ref': '#/definitions/BinTransform'} - def __init__(self, bin=Undefined, field=Undefined, **kwds): + _schema = {"$ref": "#/definitions/BinTransform"} + + def __init__( + self, + bin: Union[Union[Union["BinParams", dict], bool], UndefinedType] = Undefined, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + **kwds, + ): super(BinTransform, self).__init__(bin=bin, field=field, **kwds) class CalculateTransform(Transform): """CalculateTransform schema wrapper - Mapping(required=[calculate, as]) + :class:`CalculateTransform`, Dict[required=[calculate, as]] Parameters ---------- - calculate : string + calculate : str A `expression `__ string. Use the variable ``datum`` to refer to the current data object. - as : :class:`FieldName` + as : :class:`FieldName`, str The field for storing the computed formula value. """ - _schema = {'$ref': '#/definitions/CalculateTransform'} - def __init__(self, calculate=Undefined, **kwds): + _schema = {"$ref": "#/definitions/CalculateTransform"} + + def __init__(self, calculate: Union[str, UndefinedType] = Undefined, **kwds): super(CalculateTransform, self).__init__(calculate=calculate, **kwds) class DensityTransform(Transform): """DensityTransform schema wrapper - Mapping(required=[density]) + :class:`DensityTransform`, Dict[required=[density]] Parameters ---------- - density : :class:`FieldName` + density : :class:`FieldName`, str The data field for which to perform density estimation. bandwidth : float The bandwidth (standard deviation) of the Gaussian kernel. If unspecified or set to zero, the bandwidth value is automatically estimated from the input data using Scott’s rule. - counts : boolean + counts : bool A boolean flag indicating if the output values should be probability estimates (false) or smoothed counts (true). **Default value:** ``false`` - cumulative : boolean + cumulative : bool A boolean flag indicating whether to produce density estimates (false) or cumulative density estimates (true). **Default value:** ``false`` - extent : List(float) + extent : Sequence[float] A [min, max] domain from which to sample the distribution. If unspecified, the extent will be determined by the observed minimum and maximum values of the density value field. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields to group by. If not specified, a single group containing all data objects will be used. maxsteps : float @@ -20485,49 +52696,75 @@ class DensityTransform(Transform): density. If specified, overrides both minsteps and maxsteps to set an exact number of uniform samples. Potentially useful in conjunction with a fixed extent to ensure consistent sample points for stacked densities. - as : List(:class:`FieldName`) + as : Sequence[:class:`FieldName`, str] The output fields for the sample value and corresponding density estimate. **Default value:** ``["value", "density"]`` """ - _schema = {'$ref': '#/definitions/DensityTransform'} - def __init__(self, density=Undefined, bandwidth=Undefined, counts=Undefined, cumulative=Undefined, - extent=Undefined, groupby=Undefined, maxsteps=Undefined, minsteps=Undefined, - steps=Undefined, **kwds): - super(DensityTransform, self).__init__(density=density, bandwidth=bandwidth, counts=counts, - cumulative=cumulative, extent=extent, groupby=groupby, - maxsteps=maxsteps, minsteps=minsteps, steps=steps, **kwds) + _schema = {"$ref": "#/definitions/DensityTransform"} + + def __init__( + self, + density: Union[Union["FieldName", str], UndefinedType] = Undefined, + bandwidth: Union[float, UndefinedType] = Undefined, + counts: Union[bool, UndefinedType] = Undefined, + cumulative: Union[bool, UndefinedType] = Undefined, + extent: Union[Sequence[float], UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + maxsteps: Union[float, UndefinedType] = Undefined, + minsteps: Union[float, UndefinedType] = Undefined, + steps: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(DensityTransform, self).__init__( + density=density, + bandwidth=bandwidth, + counts=counts, + cumulative=cumulative, + extent=extent, + groupby=groupby, + maxsteps=maxsteps, + minsteps=minsteps, + steps=steps, + **kwds, + ) class ExtentTransform(Transform): """ExtentTransform schema wrapper - Mapping(required=[extent, param]) + :class:`ExtentTransform`, Dict[required=[extent, param]] Parameters ---------- - extent : :class:`FieldName` + extent : :class:`FieldName`, str The field of which to get the extent. - param : :class:`ParameterName` + param : :class:`ParameterName`, str The output parameter produced by the extent transform. """ - _schema = {'$ref': '#/definitions/ExtentTransform'} - def __init__(self, extent=Undefined, param=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ExtentTransform"} + + def __init__( + self, + extent: Union[Union["FieldName", str], UndefinedType] = Undefined, + param: Union[Union["ParameterName", str], UndefinedType] = Undefined, + **kwds, + ): super(ExtentTransform, self).__init__(extent=extent, param=param, **kwds) class FilterTransform(Transform): """FilterTransform schema wrapper - Mapping(required=[filter]) + :class:`FilterTransform`, Dict[required=[filter]] Parameters ---------- - filter : :class:`PredicateComposition` + filter : :class:`FieldEqualPredicate`, Dict[required=[equal, field]], :class:`FieldGTEPredicate`, Dict[required=[field, gte]], :class:`FieldGTPredicate`, Dict[required=[field, gt]], :class:`FieldLTEPredicate`, Dict[required=[field, lte]], :class:`FieldLTPredicate`, Dict[required=[field, lt]], :class:`FieldOneOfPredicate`, Dict[required=[field, oneOf]], :class:`FieldRangePredicate`, Dict[required=[field, range]], :class:`FieldValidPredicate`, Dict[required=[field, valid]], :class:`ParameterPredicate`, Dict[required=[param]], :class:`Predicate`, str, :class:`LogicalAndPredicate`, Dict[required=[and]], :class:`LogicalNotPredicate`, Dict[required=[not]], :class:`LogicalOrPredicate`, Dict[required=[or]], :class:`PredicateComposition` The ``filter`` property must be a predication definition, which can take one of the following forms: @@ -20556,70 +52793,106 @@ class FilterTransform(Transform): `__ of (1), (2), or (3). """ - _schema = {'$ref': '#/definitions/FilterTransform'} - def __init__(self, filter=Undefined, **kwds): + _schema = {"$ref": "#/definitions/FilterTransform"} + + def __init__( + self, + filter: Union[ + Union[ + "PredicateComposition", + Union["LogicalAndPredicate", dict], + Union["LogicalNotPredicate", dict], + Union["LogicalOrPredicate", dict], + Union[ + "Predicate", + Union["FieldEqualPredicate", dict], + Union["FieldGTEPredicate", dict], + Union["FieldGTPredicate", dict], + Union["FieldLTEPredicate", dict], + Union["FieldLTPredicate", dict], + Union["FieldOneOfPredicate", dict], + Union["FieldRangePredicate", dict], + Union["FieldValidPredicate", dict], + Union["ParameterPredicate", dict], + str, + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(FilterTransform, self).__init__(filter=filter, **kwds) class FlattenTransform(Transform): """FlattenTransform schema wrapper - Mapping(required=[flatten]) + :class:`FlattenTransform`, Dict[required=[flatten]] Parameters ---------- - flatten : List(:class:`FieldName`) + flatten : Sequence[:class:`FieldName`, str] An array of one or more data fields containing arrays to flatten. If multiple fields are specified, their array values should have a parallel structure, ideally with the same length. If the lengths of parallel arrays do not match, the longest array will be used with ``null`` values added for missing entries. - as : List(:class:`FieldName`) + as : Sequence[:class:`FieldName`, str] The output field names for extracted array values. **Default value:** The field name of the corresponding array field """ - _schema = {'$ref': '#/definitions/FlattenTransform'} - def __init__(self, flatten=Undefined, **kwds): + _schema = {"$ref": "#/definitions/FlattenTransform"} + + def __init__( + self, + flatten: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): super(FlattenTransform, self).__init__(flatten=flatten, **kwds) class FoldTransform(Transform): """FoldTransform schema wrapper - Mapping(required=[fold]) + :class:`FoldTransform`, Dict[required=[fold]] Parameters ---------- - fold : List(:class:`FieldName`) + fold : Sequence[:class:`FieldName`, str] An array of data fields indicating the properties to fold. - as : List(:class:`FieldName`) + as : Sequence[:class:`FieldName`, str] The output field names for the key and value properties produced by the fold transform. **Default value:** ``["key", "value"]`` """ - _schema = {'$ref': '#/definitions/FoldTransform'} - def __init__(self, fold=Undefined, **kwds): + _schema = {"$ref": "#/definitions/FoldTransform"} + + def __init__( + self, + fold: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): super(FoldTransform, self).__init__(fold=fold, **kwds) class ImputeTransform(Transform): """ImputeTransform schema wrapper - Mapping(required=[impute, key]) + :class:`ImputeTransform`, Dict[required=[impute, key]] Parameters ---------- - impute : :class:`FieldName` + impute : :class:`FieldName`, str The data field for which the missing values should be imputed. - key : :class:`FieldName` + key : :class:`FieldName`, str A key field that uniquely identifies data objects within a group. Missing key values (those occurring in the data but not in the current group) will be imputed. - frame : List(anyOf(None, float)) + frame : Sequence[None, float] A frame specification as a two-element array used to control the window over which the specified method is applied. The array entries should either be a number indicating the offset from the current data object, or null to indicate unbounded @@ -20629,10 +52902,10 @@ class ImputeTransform(Transform): **Default value:** : ``[null, null]`` indicating that the window includes all objects. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] An optional array of fields by which to group the values. Imputation will then be performed on a per-group basis. - keyvals : anyOf(List(Any), :class:`ImputeSequence`) + keyvals : :class:`ImputeSequence`, Dict[required=[stop]], Sequence[Any] Defines the key values that should be considered for imputation. An array of key values or an object defining a `number sequence `__. @@ -20643,7 +52916,7 @@ class ImputeTransform(Transform): the y-field is imputed, or vice versa. If there is no impute grouping, this property *must* be specified. - method : :class:`ImputeMethod` + method : :class:`ImputeMethod`, Literal['value', 'median', 'max', 'min', 'mean'] The imputation method to use for the field value of imputed data objects. One of ``"value"``, ``"mean"``, ``"median"``, ``"max"`` or ``"min"``. @@ -20651,82 +52924,123 @@ class ImputeTransform(Transform): value : Any The field value to use when the imputation ``method`` is ``"value"``. """ - _schema = {'$ref': '#/definitions/ImputeTransform'} - def __init__(self, impute=Undefined, key=Undefined, frame=Undefined, groupby=Undefined, - keyvals=Undefined, method=Undefined, value=Undefined, **kwds): - super(ImputeTransform, self).__init__(impute=impute, key=key, frame=frame, groupby=groupby, - keyvals=keyvals, method=method, value=value, **kwds) + _schema = {"$ref": "#/definitions/ImputeTransform"} + + def __init__( + self, + impute: Union[Union["FieldName", str], UndefinedType] = Undefined, + key: Union[Union["FieldName", str], UndefinedType] = Undefined, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + keyvals: Union[ + Union[Sequence[Any], Union["ImputeSequence", dict]], UndefinedType + ] = Undefined, + method: Union[ + Union["ImputeMethod", Literal["value", "median", "max", "min", "mean"]], + UndefinedType, + ] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ): + super(ImputeTransform, self).__init__( + impute=impute, + key=key, + frame=frame, + groupby=groupby, + keyvals=keyvals, + method=method, + value=value, + **kwds, + ) class JoinAggregateTransform(Transform): """JoinAggregateTransform schema wrapper - Mapping(required=[joinaggregate]) + :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]] Parameters ---------- - joinaggregate : List(:class:`JoinAggregateFieldDef`) + joinaggregate : Sequence[:class:`JoinAggregateFieldDef`, Dict[required=[op, as]]] The definition of the fields in the join aggregate, and what calculations to use. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields for partitioning the data objects into separate groups. If unspecified, all data points will be in a single group. """ - _schema = {'$ref': '#/definitions/JoinAggregateTransform'} - def __init__(self, joinaggregate=Undefined, groupby=Undefined, **kwds): - super(JoinAggregateTransform, self).__init__(joinaggregate=joinaggregate, groupby=groupby, - **kwds) + _schema = {"$ref": "#/definitions/JoinAggregateTransform"} + + def __init__( + self, + joinaggregate: Union[ + Sequence[Union["JoinAggregateFieldDef", dict]], UndefinedType + ] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): + super(JoinAggregateTransform, self).__init__( + joinaggregate=joinaggregate, groupby=groupby, **kwds + ) class LoessTransform(Transform): """LoessTransform schema wrapper - Mapping(required=[loess, on]) + :class:`LoessTransform`, Dict[required=[loess, on]] Parameters ---------- - loess : :class:`FieldName` + loess : :class:`FieldName`, str The data field of the dependent variable to smooth. - on : :class:`FieldName` + on : :class:`FieldName`, str The data field of the independent variable to use a predictor. bandwidth : float A bandwidth parameter in the range ``[0, 1]`` that determines the amount of smoothing. **Default value:** ``0.3`` - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields to group by. If not specified, a single group containing all data objects will be used. - as : List(:class:`FieldName`) + as : Sequence[:class:`FieldName`, str] The output field names for the smoothed points generated by the loess transform. **Default value:** The field names of the input x and y values. """ - _schema = {'$ref': '#/definitions/LoessTransform'} - def __init__(self, loess=Undefined, on=Undefined, bandwidth=Undefined, groupby=Undefined, **kwds): - super(LoessTransform, self).__init__(loess=loess, on=on, bandwidth=bandwidth, groupby=groupby, - **kwds) + _schema = {"$ref": "#/definitions/LoessTransform"} + + def __init__( + self, + loess: Union[Union["FieldName", str], UndefinedType] = Undefined, + on: Union[Union["FieldName", str], UndefinedType] = Undefined, + bandwidth: Union[float, UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + **kwds, + ): + super(LoessTransform, self).__init__( + loess=loess, on=on, bandwidth=bandwidth, groupby=groupby, **kwds + ) class LookupTransform(Transform): """LookupTransform schema wrapper - Mapping(required=[lookup, from]) + :class:`LookupTransform`, Dict[required=[lookup, from]] Parameters ---------- - lookup : string + lookup : str Key in primary data source. default : Any The default value to use if lookup fails. **Default value:** ``null`` - as : anyOf(:class:`FieldName`, List(:class:`FieldName`)) + as : :class:`FieldName`, str, Sequence[:class:`FieldName`, str] The output fields on which to store the looked up data values. For data lookups, this property may be left blank if ``from.fields`` has been @@ -20736,99 +53050,153 @@ class LookupTransform(Transform): For selection lookups, this property is optional: if unspecified, looked up values will be stored under a property named for the selection; and if specified, it must correspond to ``from.fields``. - from : anyOf(:class:`LookupData`, :class:`LookupSelection`) + from : :class:`LookupData`, Dict[required=[data, key]], :class:`LookupSelection`, Dict[required=[key, param]] Data source or selection for secondary data reference. """ - _schema = {'$ref': '#/definitions/LookupTransform'} - def __init__(self, lookup=Undefined, default=Undefined, **kwds): + _schema = {"$ref": "#/definitions/LookupTransform"} + + def __init__( + self, + lookup: Union[str, UndefinedType] = Undefined, + default: Union[Any, UndefinedType] = Undefined, + **kwds, + ): super(LookupTransform, self).__init__(lookup=lookup, default=default, **kwds) class PivotTransform(Transform): """PivotTransform schema wrapper - Mapping(required=[pivot, value]) + :class:`PivotTransform`, Dict[required=[pivot, value]] Parameters ---------- - pivot : :class:`FieldName` + pivot : :class:`FieldName`, str The data field to pivot on. The unique values of this field become new field names in the output stream. - value : :class:`FieldName` + value : :class:`FieldName`, str The data field to populate pivoted fields. The aggregate values of this field become the values of the new pivoted fields. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The optional data fields to group by. If not specified, a single group containing all data objects will be used. limit : float An optional parameter indicating the maximum number of pivoted fields to generate. The default ( ``0`` ) applies no limit. The pivoted ``pivot`` names are sorted in ascending order prior to enforcing the limit. **Default value:** ``0`` - op : :class:`AggregateOp` + op : :class:`AggregateOp`, Literal['argmax', 'argmin', 'average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] The aggregation operation to apply to grouped ``value`` field values. **Default value:** ``sum`` """ - _schema = {'$ref': '#/definitions/PivotTransform'} - def __init__(self, pivot=Undefined, value=Undefined, groupby=Undefined, limit=Undefined, - op=Undefined, **kwds): - super(PivotTransform, self).__init__(pivot=pivot, value=value, groupby=groupby, limit=limit, - op=op, **kwds) + _schema = {"$ref": "#/definitions/PivotTransform"} + + def __init__( + self, + pivot: Union[Union["FieldName", str], UndefinedType] = Undefined, + value: Union[Union["FieldName", str], UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + limit: Union[float, UndefinedType] = Undefined, + op: Union[ + Union[ + "AggregateOp", + Literal[ + "argmax", + "argmin", + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(PivotTransform, self).__init__( + pivot=pivot, value=value, groupby=groupby, limit=limit, op=op, **kwds + ) class QuantileTransform(Transform): """QuantileTransform schema wrapper - Mapping(required=[quantile]) + :class:`QuantileTransform`, Dict[required=[quantile]] Parameters ---------- - quantile : :class:`FieldName` + quantile : :class:`FieldName`, str The data field for which to perform quantile estimation. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields to group by. If not specified, a single group containing all data objects will be used. - probs : List(float) + probs : Sequence[float] An array of probabilities in the range (0, 1) for which to compute quantile values. If not specified, the *step* parameter will be used. step : float A probability step size (default 0.01) for sampling quantile values. All values from one-half the step size up to 1 (exclusive) will be sampled. This parameter is only used if the *probs* parameter is not provided. - as : List(:class:`FieldName`) + as : Sequence[:class:`FieldName`, str] The output field names for the probability and quantile values. **Default value:** ``["prob", "value"]`` """ - _schema = {'$ref': '#/definitions/QuantileTransform'} - def __init__(self, quantile=Undefined, groupby=Undefined, probs=Undefined, step=Undefined, **kwds): - super(QuantileTransform, self).__init__(quantile=quantile, groupby=groupby, probs=probs, - step=step, **kwds) + _schema = {"$ref": "#/definitions/QuantileTransform"} + + def __init__( + self, + quantile: Union[Union["FieldName", str], UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + probs: Union[Sequence[float], UndefinedType] = Undefined, + step: Union[float, UndefinedType] = Undefined, + **kwds, + ): + super(QuantileTransform, self).__init__( + quantile=quantile, groupby=groupby, probs=probs, step=step, **kwds + ) class RegressionTransform(Transform): """RegressionTransform schema wrapper - Mapping(required=[regression, on]) + :class:`RegressionTransform`, Dict[required=[regression, on]] Parameters ---------- - on : :class:`FieldName` + on : :class:`FieldName`, str The data field of the independent variable to use a predictor. - regression : :class:`FieldName` + regression : :class:`FieldName`, str The data field of the dependent variable to predict. - extent : List(float) + extent : Sequence[float] A [min, max] domain over the independent (x) field for the starting and ending points of the generated trend line. - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields to group by. If not specified, a single group containing all data objects will be used. - method : enum('linear', 'log', 'exp', 'pow', 'quad', 'poly') + method : Literal['linear', 'log', 'exp', 'pow', 'quad', 'poly'] The functional form of the regression model. One of ``"linear"``, ``"log"``, ``"exp"``, ``"pow"``, ``"quad"``, or ``"poly"``. @@ -20837,7 +53205,7 @@ class RegressionTransform(Transform): The polynomial order (number of coefficients) for the 'poly' method. **Default value:** ``3`` - params : boolean + params : bool A boolean flag indicating if the transform should return the regression model parameters (one object per group), rather than trend line points. The resulting objects include a ``coef`` array of fitted coefficient values (starting with the @@ -20845,25 +53213,44 @@ class RegressionTransform(Transform): value (indicating the total variance explained by the model). **Default value:** ``false`` - as : List(:class:`FieldName`) + as : Sequence[:class:`FieldName`, str] The output field names for the smoothed points generated by the regression transform. **Default value:** The field names of the input x and y values. """ - _schema = {'$ref': '#/definitions/RegressionTransform'} - def __init__(self, on=Undefined, regression=Undefined, extent=Undefined, groupby=Undefined, - method=Undefined, order=Undefined, params=Undefined, **kwds): - super(RegressionTransform, self).__init__(on=on, regression=regression, extent=extent, - groupby=groupby, method=method, order=order, - params=params, **kwds) + _schema = {"$ref": "#/definitions/RegressionTransform"} + + def __init__( + self, + on: Union[Union["FieldName", str], UndefinedType] = Undefined, + regression: Union[Union["FieldName", str], UndefinedType] = Undefined, + extent: Union[Sequence[float], UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + method: Union[ + Literal["linear", "log", "exp", "pow", "quad", "poly"], UndefinedType + ] = Undefined, + order: Union[float, UndefinedType] = Undefined, + params: Union[bool, UndefinedType] = Undefined, + **kwds, + ): + super(RegressionTransform, self).__init__( + on=on, + regression=regression, + extent=extent, + groupby=groupby, + method=method, + order=order, + params=params, + **kwds, + ) class SampleTransform(Transform): """SampleTransform schema wrapper - Mapping(required=[sample]) + :class:`SampleTransform`, Dict[required=[sample]] Parameters ---------- @@ -20873,74 +53260,207 @@ class SampleTransform(Transform): **Default value:** ``1000`` """ - _schema = {'$ref': '#/definitions/SampleTransform'} - def __init__(self, sample=Undefined, **kwds): + _schema = {"$ref": "#/definitions/SampleTransform"} + + def __init__(self, sample: Union[float, UndefinedType] = Undefined, **kwds): super(SampleTransform, self).__init__(sample=sample, **kwds) class StackTransform(Transform): """StackTransform schema wrapper - Mapping(required=[stack, groupby, as]) + :class:`StackTransform`, Dict[required=[stack, groupby, as]] Parameters ---------- - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields to group by. - stack : :class:`FieldName` + stack : :class:`FieldName`, str The field which is stacked. - offset : enum('zero', 'center', 'normalize') + offset : Literal['zero', 'center', 'normalize'] Mode for stacking marks. One of ``"zero"`` (default), ``"center"``, or ``"normalize"``. The ``"zero"`` offset will stack starting at ``0``. The ``"center"`` offset will center the stacks. The ``"normalize"`` offset will compute percentage values for each stack point, with output values in the range ``[0,1]``. **Default value:** ``"zero"`` - sort : List(:class:`SortField`) + sort : Sequence[:class:`SortField`, Dict[required=[field]]] Field that determines the order of leaves in the stacked charts. - as : anyOf(:class:`FieldName`, List(:class:`FieldName`)) + as : :class:`FieldName`, str, Sequence[:class:`FieldName`, str] Output field names. This can be either a string or an array of strings with two elements denoting the name for the fields for stack start and stack end respectively. If a single string(e.g., ``"val"`` ) is provided, the end field will be ``"val_end"``. """ - _schema = {'$ref': '#/definitions/StackTransform'} - def __init__(self, groupby=Undefined, stack=Undefined, offset=Undefined, sort=Undefined, **kwds): - super(StackTransform, self).__init__(groupby=groupby, stack=stack, offset=offset, sort=sort, - **kwds) + _schema = {"$ref": "#/definitions/StackTransform"} + + def __init__( + self, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + stack: Union[Union["FieldName", str], UndefinedType] = Undefined, + offset: Union[ + Literal["zero", "center", "normalize"], UndefinedType + ] = Undefined, + sort: Union[Sequence[Union["SortField", dict]], UndefinedType] = Undefined, + **kwds, + ): + super(StackTransform, self).__init__( + groupby=groupby, stack=stack, offset=offset, sort=sort, **kwds + ) class TimeUnitTransform(Transform): """TimeUnitTransform schema wrapper - Mapping(required=[timeUnit, field, as]) + :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]] Parameters ---------- - field : :class:`FieldName` + field : :class:`FieldName`, str The data field to apply time unit. - timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitTransformParams`) + timeUnit : :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitTransformParams`, Dict The timeUnit. - as : :class:`FieldName` + as : :class:`FieldName`, str The output field to write the timeUnit value. """ - _schema = {'$ref': '#/definitions/TimeUnitTransform'} - def __init__(self, field=Undefined, timeUnit=Undefined, **kwds): + _schema = {"$ref": "#/definitions/TimeUnitTransform"} + + def __init__( + self, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitTransformParams", dict], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): super(TimeUnitTransform, self).__init__(field=field, timeUnit=timeUnit, **kwds) class Type(VegaLiteSchema): """Type schema wrapper - enum('quantitative', 'ordinal', 'temporal', 'nominal', 'geojson') + :class:`Type`, Literal['quantitative', 'ordinal', 'temporal', 'nominal', 'geojson'] Data type based on level of measurement """ - _schema = {'$ref': '#/definitions/Type'} + + _schema = {"$ref": "#/definitions/Type"} def __init__(self, *args): super(Type, self).__init__(*args) @@ -20949,9 +53469,10 @@ def __init__(self, *args): class TypeForShape(VegaLiteSchema): """TypeForShape schema wrapper - enum('nominal', 'ordinal', 'geojson') + :class:`TypeForShape`, Literal['nominal', 'ordinal', 'geojson'] """ - _schema = {'$ref': '#/definitions/TypeForShape'} + + _schema = {"$ref": "#/definitions/TypeForShape"} def __init__(self, *args): super(TypeForShape, self).__init__(*args) @@ -20960,13 +53481,13 @@ def __init__(self, *args): class TypedFieldDef(VegaLiteSchema): """TypedFieldDef schema wrapper - Mapping(required=[]) + :class:`TypedFieldDef`, Dict Definition object for a data field, its type and transformation of an encoding channel. Parameters ---------- - aggregate : :class:`Aggregate` + aggregate : :class:`Aggregate`, :class:`ArgmaxDef`, Dict[required=[argmax]], :class:`ArgminDef`, Dict[required=[argmin]], :class:`NonArgAggregateOp`, Literal['average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'] Aggregation function for the field (e.g., ``"mean"``, ``"sum"``, ``"median"``, ``"min"``, ``"max"``, ``"count"`` ). @@ -20978,7 +53499,7 @@ class TypedFieldDef(VegaLiteSchema): Relative position on a band of a stacked, binned, time unit, or band scale. For example, the marks will be positioned at the beginning of the band if set to ``0``, and at the middle of the band if set to ``0.5``. - bin : anyOf(boolean, :class:`BinParams`, string, None) + bin : :class:`BinParams`, Dict, None, bool, str A flag for binning a ``quantitative`` field, `an object defining binning parameters `__, or indicating that the data for ``x`` or ``y`` channel are binned before they are imported into @@ -20999,7 +53520,7 @@ class TypedFieldDef(VegaLiteSchema): **See also:** `bin `__ documentation. - field : :class:`Field` + field : :class:`FieldName`, str, :class:`Field`, :class:`RepeatRef`, Dict[required=[repeat]] **Required.** A string defining the name of the field from which to pull a data value or an object defining iterated values from the `repeat `__ operator. @@ -21014,7 +53535,7 @@ class TypedFieldDef(VegaLiteSchema): about escaping in the `field documentation `__. 2) ``field`` is not required if ``aggregate`` is ``count``. - timeUnit : anyOf(:class:`TimeUnit`, :class:`BinnedTimeUnit`, :class:`TimeUnitParams`) + timeUnit : :class:`BinnedTimeUnit`, Literal['binnedutcyear', 'binnedutcyearquarter', 'binnedutcyearquartermonth', 'binnedutcyearmonth', 'binnedutcyearmonthdate', 'binnedutcyearmonthdatehours', 'binnedutcyearmonthdatehoursminutes', 'binnedutcyearmonthdatehoursminutesseconds', 'binnedutcyearweek', 'binnedutcyearweekday', 'binnedutcyearweekdayhours', 'binnedutcyearweekdayhoursminutes', 'binnedutcyearweekdayhoursminutesseconds', 'binnedutcyeardayofyear'], Literal['binnedyear', 'binnedyearquarter', 'binnedyearquartermonth', 'binnedyearmonth', 'binnedyearmonthdate', 'binnedyearmonthdatehours', 'binnedyearmonthdatehoursminutes', 'binnedyearmonthdatehoursminutesseconds', 'binnedyearweek', 'binnedyearweekday', 'binnedyearweekdayhours', 'binnedyearweekdayhoursminutes', 'binnedyearweekdayhoursminutesseconds', 'binnedyeardayofyear'], :class:`LocalMultiTimeUnit`, Literal['yearquarter', 'yearquartermonth', 'yearmonth', 'yearmonthdate', 'yearmonthdatehours', 'yearmonthdatehoursminutes', 'yearmonthdatehoursminutesseconds', 'yearweek', 'yearweekday', 'yearweekdayhours', 'yearweekdayhoursminutes', 'yearweekdayhoursminutesseconds', 'yeardayofyear', 'quartermonth', 'monthdate', 'monthdatehours', 'monthdatehoursminutes', 'monthdatehoursminutesseconds', 'weekday', 'weeksdayhours', 'weekdayhoursminutes', 'weekdayhoursminutesseconds', 'dayhours', 'dayhoursminutes', 'dayhoursminutesseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds', 'secondsmilliseconds'], :class:`MultiTimeUnit`, :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'], :class:`LocalSingleTimeUnit`, Literal['year', 'quarter', 'month', 'week', 'day', 'dayofyear', 'date', 'hours', 'minutes', 'seconds', 'milliseconds'], :class:`SingleTimeUnit`, :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds'], :class:`TimeUnit`, :class:`TimeUnitParams`, Dict Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal field. or `a temporal field that gets casted as ordinal `__. @@ -21023,7 +53544,7 @@ class TypedFieldDef(VegaLiteSchema): **See also:** `timeUnit `__ documentation. - title : anyOf(:class:`Text`, None) + title : :class:`Text`, Sequence[str], str, None A title for the field. If ``null``, the title will be removed. **Default value:** derived from the field's name and transformation function ( @@ -21043,7 +53564,7 @@ class TypedFieldDef(VegaLiteSchema): 2) If both field definition's ``title`` and axis, header, or legend ``title`` are defined, axis/header/legend title will be used. - type : :class:`StandardType` + type : :class:`StandardType`, Literal['quantitative', 'ordinal', 'temporal', 'nominal'] The type of measurement ( ``"quantitative"``, ``"temporal"``, ``"ordinal"``, or ``"nominal"`` ) for the encoded field or constant value ( ``datum`` ). It can also be a ``"geojson"`` type for encoding `'geoshape' @@ -21113,21 +53634,234 @@ class TypedFieldDef(VegaLiteSchema): **See also:** `type `__ documentation. """ - _schema = {'$ref': '#/definitions/TypedFieldDef'} - def __init__(self, aggregate=Undefined, bandPosition=Undefined, bin=Undefined, field=Undefined, - timeUnit=Undefined, title=Undefined, type=Undefined, **kwds): - super(TypedFieldDef, self).__init__(aggregate=aggregate, bandPosition=bandPosition, bin=bin, - field=field, timeUnit=timeUnit, title=title, type=type, - **kwds) + _schema = {"$ref": "#/definitions/TypedFieldDef"} + + def __init__( + self, + aggregate: Union[ + Union[ + "Aggregate", + Union["ArgmaxDef", dict], + Union["ArgminDef", dict], + Union[ + "NonArgAggregateOp", + Literal[ + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + ], + UndefinedType, + ] = Undefined, + bandPosition: Union[float, UndefinedType] = Undefined, + bin: Union[ + Union[None, Union["BinParams", dict], bool, str], UndefinedType + ] = Undefined, + field: Union[ + Union["Field", Union["FieldName", str], Union["RepeatRef", dict]], + UndefinedType, + ] = Undefined, + timeUnit: Union[ + Union[ + Union[ + "BinnedTimeUnit", + Literal[ + "binnedutcyear", + "binnedutcyearquarter", + "binnedutcyearquartermonth", + "binnedutcyearmonth", + "binnedutcyearmonthdate", + "binnedutcyearmonthdatehours", + "binnedutcyearmonthdatehoursminutes", + "binnedutcyearmonthdatehoursminutesseconds", + "binnedutcyearweek", + "binnedutcyearweekday", + "binnedutcyearweekdayhours", + "binnedutcyearweekdayhoursminutes", + "binnedutcyearweekdayhoursminutesseconds", + "binnedutcyeardayofyear", + ], + Literal[ + "binnedyear", + "binnedyearquarter", + "binnedyearquartermonth", + "binnedyearmonth", + "binnedyearmonthdate", + "binnedyearmonthdatehours", + "binnedyearmonthdatehoursminutes", + "binnedyearmonthdatehoursminutesseconds", + "binnedyearweek", + "binnedyearweekday", + "binnedyearweekdayhours", + "binnedyearweekdayhoursminutes", + "binnedyearweekdayhoursminutesseconds", + "binnedyeardayofyear", + ], + ], + Union[ + "TimeUnit", + Union[ + "MultiTimeUnit", + Union[ + "LocalMultiTimeUnit", + Literal[ + "yearquarter", + "yearquartermonth", + "yearmonth", + "yearmonthdate", + "yearmonthdatehours", + "yearmonthdatehoursminutes", + "yearmonthdatehoursminutesseconds", + "yearweek", + "yearweekday", + "yearweekdayhours", + "yearweekdayhoursminutes", + "yearweekdayhoursminutesseconds", + "yeardayofyear", + "quartermonth", + "monthdate", + "monthdatehours", + "monthdatehoursminutes", + "monthdatehoursminutesseconds", + "weekday", + "weeksdayhours", + "weekdayhoursminutes", + "weekdayhoursminutesseconds", + "dayhours", + "dayhoursminutes", + "dayhoursminutesseconds", + "hoursminutes", + "hoursminutesseconds", + "minutesseconds", + "secondsmilliseconds", + ], + ], + Union[ + "UtcMultiTimeUnit", + Literal[ + "utcyearquarter", + "utcyearquartermonth", + "utcyearmonth", + "utcyearmonthdate", + "utcyearmonthdatehours", + "utcyearmonthdatehoursminutes", + "utcyearmonthdatehoursminutesseconds", + "utcyearweek", + "utcyearweekday", + "utcyearweekdayhours", + "utcyearweekdayhoursminutes", + "utcyearweekdayhoursminutesseconds", + "utcyeardayofyear", + "utcquartermonth", + "utcmonthdate", + "utcmonthdatehours", + "utcmonthdatehoursminutes", + "utcmonthdatehoursminutesseconds", + "utcweekday", + "utcweeksdayhours", + "utcweekdayhoursminutes", + "utcweekdayhoursminutesseconds", + "utcdayhours", + "utcdayhoursminutes", + "utcdayhoursminutesseconds", + "utchoursminutes", + "utchoursminutesseconds", + "utcminutesseconds", + "utcsecondsmilliseconds", + ], + ], + ], + Union[ + "SingleTimeUnit", + Union[ + "LocalSingleTimeUnit", + Literal[ + "year", + "quarter", + "month", + "week", + "day", + "dayofyear", + "date", + "hours", + "minutes", + "seconds", + "milliseconds", + ], + ], + Union[ + "UtcSingleTimeUnit", + Literal[ + "utcyear", + "utcquarter", + "utcmonth", + "utcweek", + "utcday", + "utcdayofyear", + "utcdate", + "utchours", + "utcminutes", + "utcseconds", + "utcmilliseconds", + ], + ], + ], + ], + Union["TimeUnitParams", dict], + ], + UndefinedType, + ] = Undefined, + title: Union[ + Union[None, Union["Text", Sequence[str], str]], UndefinedType + ] = Undefined, + type: Union[ + Union[ + "StandardType", + Literal["quantitative", "ordinal", "temporal", "nominal"], + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(TypedFieldDef, self).__init__( + aggregate=aggregate, + bandPosition=bandPosition, + bin=bin, + field=field, + timeUnit=timeUnit, + title=title, + type=type, + **kwds, + ) class URI(VegaLiteSchema): """URI schema wrapper - string + :class:`URI`, str """ - _schema = {'$ref': '#/definitions/URI'} + + _schema = {"$ref": "#/definitions/URI"} def __init__(self, *args): super(URI, self).__init__(*args) @@ -21136,69 +53870,177 @@ def __init__(self, *args): class UnitSpec(VegaLiteSchema): """UnitSpec schema wrapper - Mapping(required=[mark]) + :class:`UnitSpec`, Dict[required=[mark]] Base interface for a unit (single-view) specification. Parameters ---------- - mark : :class:`AnyMark` + mark : :class:`AnyMark`, :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]], :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, str, :class:`MarkDef`, Dict[required=[type]], :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] A string describing the mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"rule"``, ``"geoshape"``, and ``"text"`` ) or a `mark definition object `__. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`Encoding` + encoding : :class:`Encoding`, Dict A key-value mapping between encoding channels and definition of fields. - name : string + name : str Name of the visualization for later reference. - params : List(:class:`SelectionParameter`) + params : Sequence[:class:`SelectionParameter`, Dict[required=[name, select]]] An array of parameters that may either be simple variables, or more complex selections that map user input to data queries. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of geographic projection, which will be applied to ``shape`` path for ``"geoshape"`` marks and to ``latitude`` and ``"longitude"`` channels for other marks. - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/UnitSpec'} - def __init__(self, mark=Undefined, data=Undefined, description=Undefined, encoding=Undefined, - name=Undefined, params=Undefined, projection=Undefined, title=Undefined, - transform=Undefined, **kwds): - super(UnitSpec, self).__init__(mark=mark, data=data, description=description, encoding=encoding, - name=name, params=params, projection=projection, title=title, - transform=transform, **kwds) + _schema = {"$ref": "#/definitions/UnitSpec"} + + def __init__( + self, + mark: Union[ + Union[ + "AnyMark", + Union[ + "CompositeMark", + Union["BoxPlot", str], + Union["ErrorBand", str], + Union["ErrorBar", str], + ], + Union[ + "CompositeMarkDef", + Union["BoxPlotDef", dict], + Union["ErrorBandDef", dict], + Union["ErrorBarDef", dict], + ], + Union[ + "Mark", + Literal[ + "arc", + "area", + "bar", + "image", + "line", + "point", + "rect", + "rule", + "text", + "tick", + "trail", + "circle", + "square", + "geoshape", + ], + ], + Union["MarkDef", dict], + ], + UndefinedType, + ] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["Encoding", dict], UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + params: Union[ + Sequence[Union["SelectionParameter", dict]], UndefinedType + ] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(UnitSpec, self).__init__( + mark=mark, + data=data, + description=description, + encoding=encoding, + name=name, + params=params, + projection=projection, + title=title, + transform=transform, + **kwds, + ) class UnitSpecWithFrame(VegaLiteSchema): """UnitSpecWithFrame schema wrapper - Mapping(required=[mark]) + :class:`UnitSpecWithFrame`, Dict[required=[mark]] Parameters ---------- - mark : :class:`AnyMark` + mark : :class:`AnyMark`, :class:`BoxPlotDef`, Dict[required=[type]], :class:`CompositeMarkDef`, :class:`ErrorBandDef`, Dict[required=[type]], :class:`ErrorBarDef`, Dict[required=[type]], :class:`BoxPlot`, str, :class:`CompositeMark`, :class:`ErrorBand`, str, :class:`ErrorBar`, str, :class:`MarkDef`, Dict[required=[type]], :class:`Mark`, Literal['arc', 'area', 'bar', 'image', 'line', 'point', 'rect', 'rule', 'text', 'tick', 'trail', 'circle', 'square', 'geoshape'] A string describing the mark type (one of ``"bar"``, ``"circle"``, ``"square"``, ``"tick"``, ``"line"``, ``"area"``, ``"point"``, ``"rule"``, ``"geoshape"``, and ``"text"`` ) or a `mark definition object `__. - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - encoding : :class:`Encoding` + encoding : :class:`Encoding`, Dict A key-value mapping between encoding channels and definition of fields. - height : anyOf(float, string, :class:`Step`) + height : :class:`Step`, Dict[required=[step]], float, str The height of a visualization. @@ -21218,24 +54060,24 @@ class UnitSpecWithFrame(VegaLiteSchema): **See also:** `height `__ documentation. - name : string + name : str Name of the visualization for later reference. - params : List(:class:`SelectionParameter`) + params : Sequence[:class:`SelectionParameter`, Dict[required=[name, select]]] An array of parameters that may either be simple variables, or more complex selections that map user input to data queries. - projection : :class:`Projection` + projection : :class:`Projection`, Dict An object defining properties of geographic projection, which will be applied to ``shape`` path for ``"geoshape"`` marks and to ``latitude`` and ``"longitude"`` channels for other marks. - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. - view : :class:`ViewBackground` + view : :class:`ViewBackground`, Dict An object defining the view background's fill and stroke. **Default value:** none (transparent) - width : anyOf(float, string, :class:`Step`) + width : :class:`Step`, Dict[required=[step]], float, str The width of a visualization. @@ -21256,53 +54098,185 @@ class UnitSpecWithFrame(VegaLiteSchema): **See also:** `width `__ documentation. """ - _schema = {'$ref': '#/definitions/UnitSpecWithFrame'} - def __init__(self, mark=Undefined, data=Undefined, description=Undefined, encoding=Undefined, - height=Undefined, name=Undefined, params=Undefined, projection=Undefined, - title=Undefined, transform=Undefined, view=Undefined, width=Undefined, **kwds): - super(UnitSpecWithFrame, self).__init__(mark=mark, data=data, description=description, - encoding=encoding, height=height, name=name, - params=params, projection=projection, title=title, - transform=transform, view=view, width=width, **kwds) + _schema = {"$ref": "#/definitions/UnitSpecWithFrame"} + + def __init__( + self, + mark: Union[ + Union[ + "AnyMark", + Union[ + "CompositeMark", + Union["BoxPlot", str], + Union["ErrorBand", str], + Union["ErrorBar", str], + ], + Union[ + "CompositeMarkDef", + Union["BoxPlotDef", dict], + Union["ErrorBandDef", dict], + Union["ErrorBarDef", dict], + ], + Union[ + "Mark", + Literal[ + "arc", + "area", + "bar", + "image", + "line", + "point", + "rect", + "rule", + "text", + "tick", + "trail", + "circle", + "square", + "geoshape", + ], + ], + Union["MarkDef", dict], + ], + UndefinedType, + ] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + encoding: Union[Union["Encoding", dict], UndefinedType] = Undefined, + height: Union[ + Union[Union["Step", dict], float, str], UndefinedType + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + params: Union[ + Sequence[Union["SelectionParameter", dict]], UndefinedType + ] = Undefined, + projection: Union[Union["Projection", dict], UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + view: Union[Union["ViewBackground", dict], UndefinedType] = Undefined, + width: Union[Union[Union["Step", dict], float, str], UndefinedType] = Undefined, + **kwds, + ): + super(UnitSpecWithFrame, self).__init__( + mark=mark, + data=data, + description=description, + encoding=encoding, + height=height, + name=name, + params=params, + projection=projection, + title=title, + transform=transform, + view=view, + width=width, + **kwds, + ) class UrlData(DataSource): """UrlData schema wrapper - Mapping(required=[url]) + :class:`UrlData`, Dict[required=[url]] Parameters ---------- - url : string + url : str An URL from which to load the data set. Use the ``format.type`` property to ensure the loaded data is correctly parsed. - format : :class:`DataFormat` + format : :class:`CsvDataFormat`, Dict, :class:`DataFormat`, :class:`DsvDataFormat`, Dict[required=[delimiter]], :class:`JsonDataFormat`, Dict, :class:`TopoDataFormat`, Dict An object that specifies the format for parsing the data. - name : string + name : str Provide a placeholder name and bind data at runtime. """ - _schema = {'$ref': '#/definitions/UrlData'} - def __init__(self, url=Undefined, format=Undefined, name=Undefined, **kwds): + _schema = {"$ref": "#/definitions/UrlData"} + + def __init__( + self, + url: Union[str, UndefinedType] = Undefined, + format: Union[ + Union[ + "DataFormat", + Union["CsvDataFormat", dict], + Union["DsvDataFormat", dict], + Union["JsonDataFormat", dict], + Union["TopoDataFormat", dict], + ], + UndefinedType, + ] = Undefined, + name: Union[str, UndefinedType] = Undefined, + **kwds, + ): super(UrlData, self).__init__(url=url, format=format, name=name, **kwds) class UtcMultiTimeUnit(MultiTimeUnit): """UtcMultiTimeUnit schema wrapper - enum('utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', 'utcyearmonthdate', - 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', + :class:`UtcMultiTimeUnit`, Literal['utcyearquarter', 'utcyearquartermonth', 'utcyearmonth', + 'utcyearmonthdate', 'utcyearmonthdatehours', 'utcyearmonthdatehoursminutes', 'utcyearmonthdatehoursminutesseconds', 'utcyearweek', 'utcyearweekday', 'utcyearweekdayhours', 'utcyearweekdayhoursminutes', 'utcyearweekdayhoursminutesseconds', 'utcyeardayofyear', 'utcquartermonth', 'utcmonthdate', 'utcmonthdatehours', 'utcmonthdatehoursminutes', 'utcmonthdatehoursminutesseconds', 'utcweekday', 'utcweeksdayhours', 'utcweekdayhoursminutes', 'utcweekdayhoursminutesseconds', 'utcdayhours', 'utcdayhoursminutes', 'utcdayhoursminutesseconds', 'utchoursminutes', - 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds') + 'utchoursminutesseconds', 'utcminutesseconds', 'utcsecondsmilliseconds'] """ - _schema = {'$ref': '#/definitions/UtcMultiTimeUnit'} + + _schema = {"$ref": "#/definitions/UtcMultiTimeUnit"} def __init__(self, *args): super(UtcMultiTimeUnit, self).__init__(*args) @@ -21311,10 +54285,12 @@ def __init__(self, *args): class UtcSingleTimeUnit(SingleTimeUnit): """UtcSingleTimeUnit schema wrapper - enum('utcyear', 'utcquarter', 'utcmonth', 'utcweek', 'utcday', 'utcdayofyear', 'utcdate', - 'utchours', 'utcminutes', 'utcseconds', 'utcmilliseconds') + :class:`UtcSingleTimeUnit`, Literal['utcyear', 'utcquarter', 'utcmonth', 'utcweek', + 'utcday', 'utcdayofyear', 'utcdate', 'utchours', 'utcminutes', 'utcseconds', + 'utcmilliseconds'] """ - _schema = {'$ref': '#/definitions/UtcSingleTimeUnit'} + + _schema = {"$ref": "#/definitions/UtcSingleTimeUnit"} def __init__(self, *args): super(UtcSingleTimeUnit, self).__init__(*args) @@ -21323,15 +54299,15 @@ def __init__(self, *args): class VConcatSpecGenericSpec(Spec, NonNormalizedSpec): """VConcatSpecGenericSpec schema wrapper - Mapping(required=[vconcat]) + :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]] Base interface for a vertical concatenation specification. Parameters ---------- - vconcat : List(:class:`Spec`) + vconcat : Sequence[:class:`ConcatSpecGenericSpec`, Dict[required=[concat]], :class:`FacetSpec`, Dict[required=[facet, spec]], :class:`FacetedUnitSpec`, Dict[required=[mark]], :class:`HConcatSpecGenericSpec`, Dict[required=[hconcat]], :class:`LayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`NonLayerRepeatSpec`, Dict[required=[repeat, spec]], :class:`RepeatSpec`, :class:`LayerSpec`, Dict[required=[layer]], :class:`Spec`, :class:`VConcatSpecGenericSpec`, Dict[required=[vconcat]]] A list of views to be concatenated and put into a column. - bounds : enum('full', 'flush') + bounds : Literal['full', 'flush'] The bounds calculation method to use for determining the extent of a sub-plot. One of ``full`` (the default) or ``flush``. @@ -21343,179 +54319,489 @@ class VConcatSpecGenericSpec(Spec, NonNormalizedSpec): sub-plots without axes or legends into a uniform grid structure. **Default value:** ``"full"`` - center : boolean + center : bool Boolean flag indicating if subviews should be centered relative to their respective rows or columns. **Default value:** ``false`` - data : anyOf(:class:`Data`, None) + data : :class:`DataSource`, :class:`InlineData`, Dict[required=[values]], :class:`NamedData`, Dict[required=[name]], :class:`UrlData`, Dict[required=[url]], :class:`Data`, :class:`Generator`, :class:`GraticuleGenerator`, Dict[required=[graticule]], :class:`SequenceGenerator`, Dict[required=[sequence]], :class:`SphereGenerator`, Dict[required=[sphere]], None An object describing the data source. Set to ``null`` to ignore the parent's data source. If no data is set, it is derived from the parent. - description : string + description : str Description of this mark for commenting purpose. - name : string + name : str Name of the visualization for later reference. - resolve : :class:`Resolve` + resolve : :class:`Resolve`, Dict Scale, axis, and legend resolutions for view composition specifications. spacing : float The spacing in pixels between sub-views of the concat operator. **Default value** : ``10`` - title : anyOf(:class:`Text`, :class:`TitleParams`) + title : :class:`Text`, Sequence[str], str, :class:`TitleParams`, Dict[required=[text]] Title for the plot. - transform : List(:class:`Transform`) + transform : Sequence[:class:`AggregateTransform`, Dict[required=[aggregate]], :class:`BinTransform`, Dict[required=[bin, field, as]], :class:`CalculateTransform`, Dict[required=[calculate, as]], :class:`DensityTransform`, Dict[required=[density]], :class:`ExtentTransform`, Dict[required=[extent, param]], :class:`FilterTransform`, Dict[required=[filter]], :class:`FlattenTransform`, Dict[required=[flatten]], :class:`FoldTransform`, Dict[required=[fold]], :class:`ImputeTransform`, Dict[required=[impute, key]], :class:`JoinAggregateTransform`, Dict[required=[joinaggregate]], :class:`LoessTransform`, Dict[required=[loess, on]], :class:`LookupTransform`, Dict[required=[lookup, from]], :class:`PivotTransform`, Dict[required=[pivot, value]], :class:`QuantileTransform`, Dict[required=[quantile]], :class:`RegressionTransform`, Dict[required=[regression, on]], :class:`SampleTransform`, Dict[required=[sample]], :class:`StackTransform`, Dict[required=[stack, groupby, as]], :class:`TimeUnitTransform`, Dict[required=[timeUnit, field, as]], :class:`Transform`, :class:`WindowTransform`, Dict[required=[window]]] An array of data transformations such as filter and new field calculation. """ - _schema = {'$ref': '#/definitions/VConcatSpec'} - - def __init__(self, vconcat=Undefined, bounds=Undefined, center=Undefined, data=Undefined, - description=Undefined, name=Undefined, resolve=Undefined, spacing=Undefined, - title=Undefined, transform=Undefined, **kwds): - super(VConcatSpecGenericSpec, self).__init__(vconcat=vconcat, bounds=bounds, center=center, - data=data, description=description, name=name, - resolve=resolve, spacing=spacing, title=title, - transform=transform, **kwds) - -class ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull(ColorDef, MarkPropDefGradientstringnull): + _schema = {"$ref": "#/definitions/VConcatSpec"} + + def __init__( + self, + vconcat: Union[ + Sequence[ + Union[ + "Spec", + Union["ConcatSpecGenericSpec", dict], + Union["FacetSpec", dict], + Union["FacetedUnitSpec", dict], + Union["HConcatSpecGenericSpec", dict], + Union["LayerSpec", dict], + Union[ + "RepeatSpec", + Union["LayerRepeatSpec", dict], + Union["NonLayerRepeatSpec", dict], + ], + Union["VConcatSpecGenericSpec", dict], + ] + ], + UndefinedType, + ] = Undefined, + bounds: Union[Literal["full", "flush"], UndefinedType] = Undefined, + center: Union[bool, UndefinedType] = Undefined, + data: Union[ + Union[ + None, + Union[ + "Data", + Union[ + "DataSource", + Union["InlineData", dict], + Union["NamedData", dict], + Union["UrlData", dict], + ], + Union[ + "Generator", + Union["GraticuleGenerator", dict], + Union["SequenceGenerator", dict], + Union["SphereGenerator", dict], + ], + ], + ], + UndefinedType, + ] = Undefined, + description: Union[str, UndefinedType] = Undefined, + name: Union[str, UndefinedType] = Undefined, + resolve: Union[Union["Resolve", dict], UndefinedType] = Undefined, + spacing: Union[float, UndefinedType] = Undefined, + title: Union[ + Union[Union["Text", Sequence[str], str], Union["TitleParams", dict]], + UndefinedType, + ] = Undefined, + transform: Union[ + Sequence[ + Union[ + "Transform", + Union["AggregateTransform", dict], + Union["BinTransform", dict], + Union["CalculateTransform", dict], + Union["DensityTransform", dict], + Union["ExtentTransform", dict], + Union["FilterTransform", dict], + Union["FlattenTransform", dict], + Union["FoldTransform", dict], + Union["ImputeTransform", dict], + Union["JoinAggregateTransform", dict], + Union["LoessTransform", dict], + Union["LookupTransform", dict], + Union["PivotTransform", dict], + Union["QuantileTransform", dict], + Union["RegressionTransform", dict], + Union["SampleTransform", dict], + Union["StackTransform", dict], + Union["TimeUnitTransform", dict], + Union["WindowTransform", dict], + ] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(VConcatSpecGenericSpec, self).__init__( + vconcat=vconcat, + bounds=bounds, + center=center, + data=data, + description=description, + name=name, + resolve=resolve, + spacing=spacing, + title=title, + transform=transform, + **kwds, + ) + + +class ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull( + ColorDef, MarkPropDefGradientstringnull +): """ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefGradientstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefGradientstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefGradientstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Gradient`, :class:`LinearGradient`, Dict[required=[gradient, stops]], :class:`RadialGradient`, Dict[required=[gradient, stops]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDefWithCondition'} - - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull, self).__init__(condition=condition, - value=value, - **kwds) - -class ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull(MarkPropDefstringnullTypeForShape, ShapeDef): + _schema = { + "$ref": "#/definitions/ValueDefWithCondition" + } + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefGradientstringnullExprRef", + Union[ + "ConditionalParameterValueDefGradientstringnullExprRef", + dict, + ], + Union[ + "ConditionalPredicateValueDefGradientstringnullExprRef", + dict, + ], + ] + ], + Union[ + "ConditionalMarkPropFieldOrDatumDef", + Union["ConditionalParameterMarkPropFieldOrDatumDef", dict], + Union["ConditionalPredicateMarkPropFieldOrDatumDef", dict], + ], + Union[ + "ConditionalValueDefGradientstringnullExprRef", + Union[ + "ConditionalParameterValueDefGradientstringnullExprRef", dict + ], + Union[ + "ConditionalPredicateValueDefGradientstringnullExprRef", dict + ], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + None, + Union["ExprRef", "_Parameter", dict], + Union[ + "Gradient", + Union["LinearGradient", dict], + Union["RadialGradient", dict], + ], + str, + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super( + ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull, self + ).__init__(condition=condition, value=value, **kwds) + + +class ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull( + MarkPropDefstringnullTypeForShape, ShapeDef +): """ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDefTypeForShape`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDefTypeForShape`, :class:`ConditionalParameterMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDefWithCondition,(string|null)>'} - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull, self).__init__(condition=condition, - value=value, - **kwds) - - -class ValueDefWithConditionMarkPropFieldOrDatumDefnumber(MarkPropDefnumber, NumericMarkPropDef): + _schema = { + "$ref": "#/definitions/ValueDefWithCondition,(string|null)>" + } + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ] + ], + Union[ + "ConditionalMarkPropFieldOrDatumDefTypeForShape", + Union[ + "ConditionalParameterMarkPropFieldOrDatumDefTypeForShape", dict + ], + Union[ + "ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape", dict + ], + ], + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + **kwds, + ): + super( + ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull, self + ).__init__(condition=condition, value=value, **kwds) + + +class ValueDefWithConditionMarkPropFieldOrDatumDefnumber( + MarkPropDefnumber, NumericMarkPropDef +): """ValueDefWithConditionMarkPropFieldOrDatumDefnumber schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumber`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(float, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDefWithCondition'} - - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(ValueDefWithConditionMarkPropFieldOrDatumDefnumber, self).__init__(condition=condition, - value=value, **kwds) - -class ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray(MarkPropDefnumberArray, NumericArrayMarkPropDef): + _schema = { + "$ref": "#/definitions/ValueDefWithCondition" + } + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumberExprRef", + Union["ConditionalParameterValueDefnumberExprRef", dict], + Union["ConditionalPredicateValueDefnumberExprRef", dict], + ] + ], + Union[ + "ConditionalMarkPropFieldOrDatumDef", + Union["ConditionalParameterMarkPropFieldOrDatumDef", dict], + Union["ConditionalPredicateMarkPropFieldOrDatumDef", dict], + ], + Union[ + "ConditionalValueDefnumberExprRef", + Union["ConditionalParameterValueDefnumberExprRef", dict], + Union["ConditionalPredicateValueDefnumberExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(ValueDefWithConditionMarkPropFieldOrDatumDefnumber, self).__init__( + condition=condition, value=value, **kwds + ) + + +class ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray( + MarkPropDefnumberArray, NumericArrayMarkPropDef +): """ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`, Sequence[:class:`ConditionalParameterValueDefnumberArrayExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefnumberArrayExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefnumberArrayExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(List(float), :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDefWithCondition'} - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray, self).__init__(condition=condition, - value=value, - **kwds) + _schema = { + "$ref": "#/definitions/ValueDefWithCondition" + } + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefnumberArrayExprRef", + Union["ConditionalParameterValueDefnumberArrayExprRef", dict], + Union["ConditionalPredicateValueDefnumberArrayExprRef", dict], + ] + ], + Union[ + "ConditionalMarkPropFieldOrDatumDef", + Union["ConditionalParameterMarkPropFieldOrDatumDef", dict], + Union["ConditionalPredicateMarkPropFieldOrDatumDef", dict], + ], + Union[ + "ConditionalValueDefnumberArrayExprRef", + Union["ConditionalParameterValueDefnumberArrayExprRef", dict], + Union["ConditionalPredicateValueDefnumberArrayExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + **kwds, + ): + super(ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray, self).__init__( + condition=condition, value=value, **kwds + ) class ValueDefWithConditionMarkPropFieldOrDatumDefstringnull(VegaLiteSchema): """ValueDefWithConditionMarkPropFieldOrDatumDefstringnull schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionMarkPropFieldOrDatumDefstringnull`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`)) + condition : :class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalParameterMarkPropFieldOrDatumDef`, Dict[required=[param]], :class:`ConditionalPredicateMarkPropFieldOrDatumDef`, Dict[required=[test]], :class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`, Sequence[:class:`ConditionalParameterValueDefstringnullExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefstringnullExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefstringnullExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(string, None, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], None, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDefWithCondition'} - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(ValueDefWithConditionMarkPropFieldOrDatumDefstringnull, self).__init__(condition=condition, - value=value, **kwds) + _schema = { + "$ref": "#/definitions/ValueDefWithCondition" + } + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ] + ], + Union[ + "ConditionalMarkPropFieldOrDatumDef", + Union["ConditionalParameterMarkPropFieldOrDatumDef", dict], + Union["ConditionalPredicateMarkPropFieldOrDatumDef", dict], + ], + Union[ + "ConditionalValueDefstringnullExprRef", + Union["ConditionalParameterValueDefstringnullExprRef", dict], + Union["ConditionalPredicateValueDefstringnullExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[None, Union["ExprRef", "_Parameter", dict], str], UndefinedType + ] = Undefined, + **kwds, + ): + super(ValueDefWithConditionMarkPropFieldOrDatumDefstringnull, self).__init__( + condition=condition, value=value, **kwds + ) class ValueDefWithConditionStringFieldDefText(TextDef): """ValueDefWithConditionStringFieldDefText schema wrapper - Mapping(required=[]) + :class:`ValueDefWithConditionStringFieldDefText`, Dict Parameters ---------- - condition : anyOf(:class:`ConditionalStringFieldDef`, :class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`)) + condition : :class:`ConditionalParameterStringFieldDef`, Dict[required=[param]], :class:`ConditionalPredicateStringFieldDef`, Dict[required=[test]], :class:`ConditionalStringFieldDef`, :class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`, Sequence[:class:`ConditionalParameterValueDefTextExprRef`, Dict[required=[param, value]], :class:`ConditionalPredicateValueDefTextExprRef`, Dict[required=[test, value]], :class:`ConditionalValueDefTextExprRef`] A field definition or one or more value definition(s) with a parameter predicate. - value : anyOf(:class:`Text`, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], :class:`Text`, Sequence[str], str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDefWithCondition'} - def __init__(self, condition=Undefined, value=Undefined, **kwds): - super(ValueDefWithConditionStringFieldDefText, self).__init__(condition=condition, value=value, - **kwds) + _schema = {"$ref": "#/definitions/ValueDefWithCondition"} + + def __init__( + self, + condition: Union[ + Union[ + Sequence[ + Union[ + "ConditionalValueDefTextExprRef", + Union["ConditionalParameterValueDefTextExprRef", dict], + Union["ConditionalPredicateValueDefTextExprRef", dict], + ] + ], + Union[ + "ConditionalStringFieldDef", + Union["ConditionalParameterStringFieldDef", dict], + Union["ConditionalPredicateStringFieldDef", dict], + ], + Union[ + "ConditionalValueDefTextExprRef", + Union["ConditionalParameterValueDefTextExprRef", dict], + Union["ConditionalPredicateValueDefTextExprRef", dict], + ], + ], + UndefinedType, + ] = Undefined, + value: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], Union["Text", Sequence[str], str] + ], + UndefinedType, + ] = Undefined, + **kwds, + ): + super(ValueDefWithConditionStringFieldDefText, self).__init__( + condition=condition, value=value, **kwds + ) class ValueDefnumber(OffsetDef): """ValueDefnumber schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumber`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. @@ -21527,50 +54813,58 @@ class ValueDefnumber(OffsetDef): definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDef'} - def __init__(self, value=Undefined, **kwds): + _schema = {"$ref": "#/definitions/ValueDef"} + + def __init__(self, value: Union[float, UndefinedType] = Undefined, **kwds): super(ValueDefnumber, self).__init__(value=value, **kwds) class ValueDefnumberwidthheightExprRef(VegaLiteSchema): """ValueDefnumberwidthheightExprRef schema wrapper - Mapping(required=[value]) + :class:`ValueDefnumberwidthheightExprRef`, Dict[required=[value]] Definition object for a constant value (primitive value or gradient definition) of an encoding channel. Parameters ---------- - value : anyOf(float, string, string, :class:`ExprRef`) + value : :class:`ExprRef`, Dict[required=[expr]], float, str A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient definition `__ for color, values between ``0`` to ``1`` for opacity). """ - _schema = {'$ref': '#/definitions/ValueDef<(number|"width"|"height"|ExprRef)>'} - def __init__(self, value=Undefined, **kwds): + _schema = {"$ref": '#/definitions/ValueDef<(number|"width"|"height"|ExprRef)>'} + + def __init__( + self, + value: Union[ + Union[Union["ExprRef", "_Parameter", dict], float, str], UndefinedType + ] = Undefined, + **kwds, + ): super(ValueDefnumberwidthheightExprRef, self).__init__(value=value, **kwds) class VariableParameter(TopLevelParameter): """VariableParameter schema wrapper - Mapping(required=[name]) + :class:`VariableParameter`, Dict[required=[name]] Parameters ---------- - name : :class:`ParameterName` + name : :class:`ParameterName`, str A unique name for the variable parameter. Parameter names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or "$", or "_") and may not start with a digit. Reserved keywords that may not be used as parameter names are "datum", "event", "item", and "parent". - bind : :class:`Binding` + bind : :class:`BindCheckbox`, Dict[required=[input]], :class:`BindDirect`, Dict[required=[element]], :class:`BindInput`, Dict, :class:`BindRadioSelect`, Dict[required=[input, options]], :class:`BindRange`, Dict[required=[input]], :class:`Binding` Binds the parameter to an external input element such as a slider, selection list or radio button group. - expr : :class:`Expr` + expr : :class:`Expr`, str An expression for the value of the parameter. This expression may include other parameters, in which case the parameter will automatically update in response to upstream parameter changes. @@ -21580,18 +54874,39 @@ class VariableParameter(TopLevelParameter): **Default value:** ``undefined`` """ - _schema = {'$ref': '#/definitions/VariableParameter'} - def __init__(self, name=Undefined, bind=Undefined, expr=Undefined, value=Undefined, **kwds): - super(VariableParameter, self).__init__(name=name, bind=bind, expr=expr, value=value, **kwds) + _schema = {"$ref": "#/definitions/VariableParameter"} + + def __init__( + self, + name: Union[Union["ParameterName", str], UndefinedType] = Undefined, + bind: Union[ + Union[ + "Binding", + Union["BindCheckbox", dict], + Union["BindDirect", dict], + Union["BindInput", dict], + Union["BindRadioSelect", dict], + Union["BindRange", dict], + ], + UndefinedType, + ] = Undefined, + expr: Union[Union["Expr", str], UndefinedType] = Undefined, + value: Union[Any, UndefinedType] = Undefined, + **kwds, + ): + super(VariableParameter, self).__init__( + name=name, bind=bind, expr=expr, value=value, **kwds + ) class Vector10string(VegaLiteSchema): """Vector10string schema wrapper - List(string) + :class:`Vector10string`, Sequence[str] """ - _schema = {'$ref': '#/definitions/Vector10'} + + _schema = {"$ref": "#/definitions/Vector10"} def __init__(self, *args): super(Vector10string, self).__init__(*args) @@ -21600,9 +54915,10 @@ def __init__(self, *args): class Vector12string(VegaLiteSchema): """Vector12string schema wrapper - List(string) + :class:`Vector12string`, Sequence[str] """ - _schema = {'$ref': '#/definitions/Vector12'} + + _schema = {"$ref": "#/definitions/Vector12"} def __init__(self, *args): super(Vector12string, self).__init__(*args) @@ -21611,9 +54927,10 @@ def __init__(self, *args): class Vector2DateTime(SelectionInitInterval): """Vector2DateTime schema wrapper - List(:class:`DateTime`) + :class:`Vector2DateTime`, Sequence[:class:`DateTime`, Dict] """ - _schema = {'$ref': '#/definitions/Vector2'} + + _schema = {"$ref": "#/definitions/Vector2"} def __init__(self, *args): super(Vector2DateTime, self).__init__(*args) @@ -21622,9 +54939,10 @@ def __init__(self, *args): class Vector2Vector2number(VegaLiteSchema): """Vector2Vector2number schema wrapper - List(:class:`Vector2number`) + :class:`Vector2Vector2number`, Sequence[:class:`Vector2number`, Sequence[float]] """ - _schema = {'$ref': '#/definitions/Vector2>'} + + _schema = {"$ref": "#/definitions/Vector2>"} def __init__(self, *args): super(Vector2Vector2number, self).__init__(*args) @@ -21633,9 +54951,10 @@ def __init__(self, *args): class Vector2boolean(SelectionInitInterval): """Vector2boolean schema wrapper - List(boolean) + :class:`Vector2boolean`, Sequence[bool] """ - _schema = {'$ref': '#/definitions/Vector2'} + + _schema = {"$ref": "#/definitions/Vector2"} def __init__(self, *args): super(Vector2boolean, self).__init__(*args) @@ -21644,9 +54963,10 @@ def __init__(self, *args): class Vector2number(SelectionInitInterval): """Vector2number schema wrapper - List(float) + :class:`Vector2number`, Sequence[float] """ - _schema = {'$ref': '#/definitions/Vector2'} + + _schema = {"$ref": "#/definitions/Vector2"} def __init__(self, *args): super(Vector2number, self).__init__(*args) @@ -21655,9 +54975,10 @@ def __init__(self, *args): class Vector2string(SelectionInitInterval): """Vector2string schema wrapper - List(string) + :class:`Vector2string`, Sequence[str] """ - _schema = {'$ref': '#/definitions/Vector2'} + + _schema = {"$ref": "#/definitions/Vector2"} def __init__(self, *args): super(Vector2string, self).__init__(*args) @@ -21666,9 +54987,10 @@ def __init__(self, *args): class Vector3number(VegaLiteSchema): """Vector3number schema wrapper - List(float) + :class:`Vector3number`, Sequence[float] """ - _schema = {'$ref': '#/definitions/Vector3'} + + _schema = {"$ref": "#/definitions/Vector3"} def __init__(self, *args): super(Vector3number, self).__init__(*args) @@ -21677,9 +54999,10 @@ def __init__(self, *args): class Vector7string(VegaLiteSchema): """Vector7string schema wrapper - List(string) + :class:`Vector7string`, Sequence[str] """ - _schema = {'$ref': '#/definitions/Vector7'} + + _schema = {"$ref": "#/definitions/Vector7"} def __init__(self, *args): super(Vector7string, self).__init__(*args) @@ -21688,57 +55011,57 @@ def __init__(self, *args): class ViewBackground(VegaLiteSchema): """ViewBackground schema wrapper - Mapping(required=[]) + :class:`ViewBackground`, Dict Parameters ---------- - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cursor : :class:`Cursor` + cursor : :class:`Cursor`, 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'] The mouse cursor used over the view. Any valid `CSS cursor type `__ can be used. - fill : anyOf(:class:`Color`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], None The fill color. **Default value:** ``undefined`` - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. - stroke : anyOf(:class:`Color`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], None The stroke color. **Default value:** ``"#ddd"`` - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. - style : anyOf(string, List(string)) + style : Sequence[str], str A string or array of strings indicating the name of custom styles to apply to the view background. A style is a named collection of mark property defaults defined within the `style configuration @@ -21748,30 +55071,454 @@ class ViewBackground(VegaLiteSchema): **Default value:** ``"cell"`` **Note:** Any specified view background properties will augment the default style. """ - _schema = {'$ref': '#/definitions/ViewBackground'} - def __init__(self, cornerRadius=Undefined, cursor=Undefined, fill=Undefined, fillOpacity=Undefined, - opacity=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, **kwds): - super(ViewBackground, self).__init__(cornerRadius=cornerRadius, cursor=cursor, fill=fill, - fillOpacity=fillOpacity, opacity=opacity, stroke=stroke, - strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, - strokeOpacity=strokeOpacity, strokeWidth=strokeWidth, - style=style, **kwds) + _schema = {"$ref": "#/definitions/ViewBackground"} + + def __init__( + self, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + "Cursor", + 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", + ], + ], + UndefinedType, + ] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + style: Union[Union[Sequence[str], str], UndefinedType] = Undefined, + **kwds, + ): + super(ViewBackground, self).__init__( + cornerRadius=cornerRadius, + cursor=cursor, + fill=fill, + fillOpacity=fillOpacity, + opacity=opacity, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + style=style, + **kwds, + ) class ViewConfig(VegaLiteSchema): """ViewConfig schema wrapper - Mapping(required=[]) + :class:`ViewConfig`, Dict Parameters ---------- - clip : boolean + clip : bool Whether the view should be clipped. continuousHeight : float The default height when the plot has a continuous y-field for x or latitude, or has @@ -21783,91 +55530,526 @@ class ViewConfig(VegaLiteSchema): arc marks. **Default value:** ``200`` - cornerRadius : anyOf(float, :class:`ExprRef`) + cornerRadius : :class:`ExprRef`, Dict[required=[expr]], float The radius in pixels of rounded rectangles or arcs' corners. **Default value:** ``0`` - cursor : :class:`Cursor` + cursor : :class:`Cursor`, 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'] The mouse cursor used over the view. Any valid `CSS cursor type `__ can be used. - discreteHeight : anyOf(float, Mapping(required=[step])) + discreteHeight : Dict[required=[step]], float The default height when the plot has non arc marks and either a discrete y-field or no y-field. The height can be either a number indicating a fixed height or an object in the form of ``{step: number}`` defining the height per discrete step. **Default value:** a step size based on ``config.view.step``. - discreteWidth : anyOf(float, Mapping(required=[step])) + discreteWidth : Dict[required=[step]], float The default width when the plot has non-arc marks and either a discrete x-field or no x-field. The width can be either a number indicating a fixed width or an object in the form of ``{step: number}`` defining the width per discrete step. **Default value:** a step size based on ``config.view.step``. - fill : anyOf(:class:`Color`, None, :class:`ExprRef`) + fill : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], None The fill color. **Default value:** ``undefined`` - fillOpacity : anyOf(float, :class:`ExprRef`) + fillOpacity : :class:`ExprRef`, Dict[required=[expr]], float The fill opacity (value between [0,1]). **Default value:** ``1`` - opacity : anyOf(float, :class:`ExprRef`) + opacity : :class:`ExprRef`, Dict[required=[expr]], float The overall opacity (value between [0,1]). **Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``, ``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise. step : float Default step size for x-/y- discrete fields. - stroke : anyOf(:class:`Color`, None, :class:`ExprRef`) + stroke : :class:`ColorName`, 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'], :class:`Color`, :class:`HexColor`, str, str, :class:`ExprRef`, Dict[required=[expr]], None The stroke color. **Default value:** ``"#ddd"`` - strokeCap : anyOf(:class:`StrokeCap`, :class:`ExprRef`) + strokeCap : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeCap`, Literal['butt', 'round', 'square'] The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or ``"square"``. **Default value:** ``"butt"`` - strokeDash : anyOf(List(float), :class:`ExprRef`) + strokeDash : :class:`ExprRef`, Dict[required=[expr]], Sequence[float] An array of alternating stroke, space lengths for creating dashed or dotted lines. - strokeDashOffset : anyOf(float, :class:`ExprRef`) + strokeDashOffset : :class:`ExprRef`, Dict[required=[expr]], float The offset (in pixels) into which to begin drawing with the stroke dash array. - strokeJoin : anyOf(:class:`StrokeJoin`, :class:`ExprRef`) + strokeJoin : :class:`ExprRef`, Dict[required=[expr]], :class:`StrokeJoin`, Literal['miter', 'round', 'bevel'] The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``. **Default value:** ``"miter"`` - strokeMiterLimit : anyOf(float, :class:`ExprRef`) + strokeMiterLimit : :class:`ExprRef`, Dict[required=[expr]], float The miter limit at which to bevel a line join. - strokeOpacity : anyOf(float, :class:`ExprRef`) + strokeOpacity : :class:`ExprRef`, Dict[required=[expr]], float The stroke opacity (value between [0,1]). **Default value:** ``1`` - strokeWidth : anyOf(float, :class:`ExprRef`) + strokeWidth : :class:`ExprRef`, Dict[required=[expr]], float The stroke width, in pixels. """ - _schema = {'$ref': '#/definitions/ViewConfig'} - - def __init__(self, clip=Undefined, continuousHeight=Undefined, continuousWidth=Undefined, - cornerRadius=Undefined, cursor=Undefined, discreteHeight=Undefined, - discreteWidth=Undefined, fill=Undefined, fillOpacity=Undefined, opacity=Undefined, - step=Undefined, stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, **kwds): - super(ViewConfig, self).__init__(clip=clip, continuousHeight=continuousHeight, - continuousWidth=continuousWidth, cornerRadius=cornerRadius, - cursor=cursor, discreteHeight=discreteHeight, - discreteWidth=discreteWidth, fill=fill, - fillOpacity=fillOpacity, opacity=opacity, step=step, - stroke=stroke, strokeCap=strokeCap, strokeDash=strokeDash, - strokeDashOffset=strokeDashOffset, strokeJoin=strokeJoin, - strokeMiterLimit=strokeMiterLimit, strokeOpacity=strokeOpacity, - strokeWidth=strokeWidth, **kwds) + + _schema = {"$ref": "#/definitions/ViewConfig"} + + def __init__( + self, + clip: Union[bool, UndefinedType] = Undefined, + continuousHeight: Union[float, UndefinedType] = Undefined, + continuousWidth: Union[float, UndefinedType] = Undefined, + cornerRadius: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + cursor: Union[ + Union[ + "Cursor", + 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", + ], + ], + UndefinedType, + ] = Undefined, + discreteHeight: Union[Union[dict, float], UndefinedType] = Undefined, + discreteWidth: Union[Union[dict, float], UndefinedType] = Undefined, + fill: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + fillOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + opacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + step: Union[float, UndefinedType] = Undefined, + stroke: Union[ + Union[ + None, + Union[ + "Color", + Union[ + "ColorName", + 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", + ], + ], + Union["HexColor", str], + str, + ], + Union["ExprRef", "_Parameter", dict], + ], + UndefinedType, + ] = Undefined, + strokeCap: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeCap", Literal["butt", "round", "square"]], + ], + UndefinedType, + ] = Undefined, + strokeDash: Union[ + Union[Sequence[float], Union["ExprRef", "_Parameter", dict]], UndefinedType + ] = Undefined, + strokeDashOffset: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeJoin: Union[ + Union[ + Union["ExprRef", "_Parameter", dict], + Union["StrokeJoin", Literal["miter", "round", "bevel"]], + ], + UndefinedType, + ] = Undefined, + strokeMiterLimit: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeOpacity: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + strokeWidth: Union[ + Union[Union["ExprRef", "_Parameter", dict], float], UndefinedType + ] = Undefined, + **kwds, + ): + super(ViewConfig, self).__init__( + clip=clip, + continuousHeight=continuousHeight, + continuousWidth=continuousWidth, + cornerRadius=cornerRadius, + cursor=cursor, + discreteHeight=discreteHeight, + discreteWidth=discreteWidth, + fill=fill, + fillOpacity=fillOpacity, + opacity=opacity, + step=step, + stroke=stroke, + strokeCap=strokeCap, + strokeDash=strokeDash, + strokeDashOffset=strokeDashOffset, + strokeJoin=strokeJoin, + strokeMiterLimit=strokeMiterLimit, + strokeOpacity=strokeOpacity, + strokeWidth=strokeWidth, + **kwds, + ) class WindowEventType(VegaLiteSchema): """WindowEventType schema wrapper - anyOf(:class:`EventType`, string) + :class:`EventType`, Literal['click', 'dblclick', 'dragenter', 'dragleave', 'dragover', + 'keydown', 'keypress', 'keyup', 'mousedown', 'mousemove', 'mouseout', 'mouseover', + 'mouseup', 'mousewheel', 'pointerdown', 'pointermove', 'pointerout', 'pointerover', + 'pointerup', 'timer', 'touchend', 'touchmove', 'touchstart', 'wheel'], + :class:`WindowEventType`, str """ - _schema = {'$ref': '#/definitions/WindowEventType'} + + _schema = {"$ref": "#/definitions/WindowEventType"} def __init__(self, *args, **kwds): super(WindowEventType, self).__init__(*args, **kwds) @@ -21876,12 +56058,13 @@ def __init__(self, *args, **kwds): class EventType(WindowEventType): """EventType schema wrapper - enum('click', 'dblclick', 'dragenter', 'dragleave', 'dragover', 'keydown', 'keypress', - 'keyup', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'mousewheel', - 'pointerdown', 'pointermove', 'pointerout', 'pointerover', 'pointerup', 'timer', 'touchend', - 'touchmove', 'touchstart', 'wheel') + :class:`EventType`, Literal['click', 'dblclick', 'dragenter', 'dragleave', 'dragover', + 'keydown', 'keypress', 'keyup', 'mousedown', 'mousemove', 'mouseout', 'mouseover', + 'mouseup', 'mousewheel', 'pointerdown', 'pointermove', 'pointerout', 'pointerover', + 'pointerup', 'timer', 'touchend', 'touchmove', 'touchstart', 'wheel'] """ - _schema = {'$ref': '#/definitions/EventType'} + + _schema = {"$ref": "#/definitions/EventType"} def __init__(self, *args): super(EventType, self).__init__(*args) @@ -21890,16 +56073,16 @@ def __init__(self, *args): class WindowFieldDef(VegaLiteSchema): """WindowFieldDef schema wrapper - Mapping(required=[op, as]) + :class:`WindowFieldDef`, Dict[required=[op, as]] Parameters ---------- - op : anyOf(:class:`AggregateOp`, :class:`WindowOnlyOp`) + op : :class:`AggregateOp`, Literal['argmax', 'argmin', 'average', 'count', 'distinct', 'max', 'mean', 'median', 'min', 'missing', 'product', 'q1', 'q3', 'ci0', 'ci1', 'stderr', 'stdev', 'stdevp', 'sum', 'valid', 'values', 'variance', 'variancep'], :class:`WindowOnlyOp`, Literal['row_number', 'rank', 'dense_rank', 'percent_rank', 'cume_dist', 'ntile', 'lag', 'lead', 'first_value', 'last_value', 'nth_value'] The window or aggregation operation to apply within a window (e.g., ``"rank"``, ``"lead"``, ``"sum"``, ``"average"`` or ``"count"`` ). See the list of all supported operations `here `__. - field : :class:`FieldName` + field : :class:`FieldName`, str The data field for which to compute the aggregate or window function. This can be omitted for window functions that do not operate over a field such as ``"count"``, ``"rank"``, ``"dense_rank"``. @@ -21909,22 +56092,78 @@ class WindowFieldDef(VegaLiteSchema): See the list of all supported operations and their parameters `here `__. - as : :class:`FieldName` + as : :class:`FieldName`, str The output name for the window operation. """ - _schema = {'$ref': '#/definitions/WindowFieldDef'} - def __init__(self, op=Undefined, field=Undefined, param=Undefined, **kwds): + _schema = {"$ref": "#/definitions/WindowFieldDef"} + + def __init__( + self, + op: Union[ + Union[ + Union[ + "AggregateOp", + Literal[ + "argmax", + "argmin", + "average", + "count", + "distinct", + "max", + "mean", + "median", + "min", + "missing", + "product", + "q1", + "q3", + "ci0", + "ci1", + "stderr", + "stdev", + "stdevp", + "sum", + "valid", + "values", + "variance", + "variancep", + ], + ], + Union[ + "WindowOnlyOp", + Literal[ + "row_number", + "rank", + "dense_rank", + "percent_rank", + "cume_dist", + "ntile", + "lag", + "lead", + "first_value", + "last_value", + "nth_value", + ], + ], + ], + UndefinedType, + ] = Undefined, + field: Union[Union["FieldName", str], UndefinedType] = Undefined, + param: Union[float, UndefinedType] = Undefined, + **kwds, + ): super(WindowFieldDef, self).__init__(op=op, field=field, param=param, **kwds) class WindowOnlyOp(VegaLiteSchema): """WindowOnlyOp schema wrapper - enum('row_number', 'rank', 'dense_rank', 'percent_rank', 'cume_dist', 'ntile', 'lag', - 'lead', 'first_value', 'last_value', 'nth_value') + :class:`WindowOnlyOp`, Literal['row_number', 'rank', 'dense_rank', 'percent_rank', + 'cume_dist', 'ntile', 'lag', 'lead', 'first_value', 'last_value', 'nth_value'] """ - _schema = {'$ref': '#/definitions/WindowOnlyOp'} + + _schema = {"$ref": "#/definitions/WindowOnlyOp"} def __init__(self, *args): super(WindowOnlyOp, self).__init__(*args) @@ -21933,14 +56172,14 @@ def __init__(self, *args): class WindowTransform(Transform): """WindowTransform schema wrapper - Mapping(required=[window]) + :class:`WindowTransform`, Dict[required=[window]] Parameters ---------- - window : List(:class:`WindowFieldDef`) + window : Sequence[:class:`WindowFieldDef`, Dict[required=[op, as]]] The definition of the fields in the window, and what calculations to use. - frame : List(anyOf(None, float)) + frame : Sequence[None, float] A frame specification as a two-element array indicating how the sliding window should proceed. The array entries should either be a number indicating the offset from the current data object, or null to indicate unbounded rows preceding or @@ -21957,10 +56196,10 @@ class WindowTransform(Transform): **Default value:** : ``[null, 0]`` (includes the current object and all preceding objects) - groupby : List(:class:`FieldName`) + groupby : Sequence[:class:`FieldName`, str] The data fields for partitioning the data objects into separate windows. If unspecified, all data points will be in a single window. - ignorePeers : boolean + ignorePeers : bool Indicates if the sliding window frame should ignore peer values (data that are considered identical by the sort criteria). The default is false, causing the window frame to expand to include all peer values. If set to true, the window frame will be @@ -21969,17 +56208,32 @@ class WindowTransform(Transform): last_value, and nth_value window operations. **Default value:** ``false`` - sort : List(:class:`SortField`) + sort : Sequence[:class:`SortField`, Dict[required=[field]]] A sort field definition for sorting data objects within a window. If two data objects are considered equal by the comparator, they are considered "peer" values of equal rank. If sort is not specified, the order is undefined: data objects are processed in the order they are observed and none are considered peers (the ignorePeers parameter is ignored and treated as if set to ``true`` ). """ - _schema = {'$ref': '#/definitions/WindowTransform'} - - def __init__(self, window=Undefined, frame=Undefined, groupby=Undefined, ignorePeers=Undefined, - sort=Undefined, **kwds): - super(WindowTransform, self).__init__(window=window, frame=frame, groupby=groupby, - ignorePeers=ignorePeers, sort=sort, **kwds) + _schema = {"$ref": "#/definitions/WindowTransform"} + + def __init__( + self, + window: Union[ + Sequence[Union["WindowFieldDef", dict]], UndefinedType + ] = Undefined, + frame: Union[Sequence[Union[None, float]], UndefinedType] = Undefined, + groupby: Union[Sequence[Union["FieldName", str]], UndefinedType] = Undefined, + ignorePeers: Union[bool, UndefinedType] = Undefined, + sort: Union[Sequence[Union["SortField", dict]], UndefinedType] = Undefined, + **kwds, + ): + super(WindowTransform, self).__init__( + window=window, + frame=frame, + groupby=groupby, + ignorePeers=ignorePeers, + sort=sort, + **kwds, + ) diff --git a/altair/vegalite/v5/schema/mixins.py b/altair/vegalite/v5/schema/mixins.py index ec172c3cd..b1d50cbfb 100644 --- a/altair/vegalite/v5/schema/mixins.py +++ b/altair/vegalite/v5/schema/mixins.py @@ -1,10 +1,14 @@ # 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 +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 @@ -15,844 +19,14839 @@ class MarkMethodMixin: """A mixin class that defines mark methods""" - def mark_arc(self, align=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - discreteBandSize=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, - fill=Undefined, fillOpacity=Undefined, filled=Undefined, font=Undefined, - fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, height=Undefined, - href=Undefined, innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, - limit=Undefined, line=Undefined, lineBreak=Undefined, lineHeight=Undefined, - minBandSize=Undefined, opacity=Undefined, order=Undefined, orient=Undefined, - outerRadius=Undefined, padAngle=Undefined, point=Undefined, radius=Undefined, - radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, shape=Undefined, - size=Undefined, smooth=Undefined, stroke=Undefined, strokeCap=Undefined, - strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, - strokeMiterLimit=Undefined, strokeOffset=Undefined, strokeOpacity=Undefined, - strokeWidth=Undefined, style=Undefined, tension=Undefined, text=Undefined, - theta=Undefined, theta2=Undefined, theta2Offset=Undefined, thetaOffset=Undefined, - thickness=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, y2Offset=Undefined, - yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, dir=Undefined, - discreteBandSize=Undefined, dx=Undefined, dy=Undefined, ellipsis=Undefined, - fill=Undefined, fillOpacity=Undefined, filled=Undefined, font=Undefined, - fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, height=Undefined, - href=Undefined, innerRadius=Undefined, interpolate=Undefined, invalid=Undefined, - limit=Undefined, line=Undefined, lineBreak=Undefined, lineHeight=Undefined, - minBandSize=Undefined, opacity=Undefined, order=Undefined, orient=Undefined, - outerRadius=Undefined, padAngle=Undefined, point=Undefined, radius=Undefined, - radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, shape=Undefined, - size=Undefined, smooth=Undefined, stroke=Undefined, strokeCap=Undefined, - strokeDash=Undefined, strokeDashOffset=Undefined, strokeJoin=Undefined, - strokeMiterLimit=Undefined, strokeOffset=Undefined, strokeOpacity=Undefined, - strokeWidth=Undefined, style=Undefined, tension=Undefined, text=Undefined, - theta=Undefined, theta2=Undefined, theta2Offset=Undefined, thetaOffset=Undefined, - thickness=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, y2Offset=Undefined, - yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, radiusOffset=Undefined, - shape=Undefined, size=Undefined, smooth=Undefined, stroke=Undefined, - strokeCap=Undefined, strokeDash=Undefined, strokeDashOffset=Undefined, - strokeJoin=Undefined, strokeMiterLimit=Undefined, strokeOffset=Undefined, - strokeOpacity=Undefined, strokeWidth=Undefined, style=Undefined, tension=Undefined, - text=Undefined, theta=Undefined, theta2=Undefined, theta2Offset=Undefined, - thetaOffset=Undefined, thickness=Undefined, timeUnitBandPosition=Undefined, - timeUnitBandSize=Undefined, tooltip=Undefined, url=Undefined, width=Undefined, - x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, - y2=Undefined, y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, - radiusOffset=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - style=Undefined, tension=Undefined, text=Undefined, theta=Undefined, - theta2=Undefined, theta2Offset=Undefined, thetaOffset=Undefined, - thickness=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, - y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, - radiusOffset=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - style=Undefined, tension=Undefined, text=Undefined, theta=Undefined, - theta2=Undefined, theta2Offset=Undefined, thetaOffset=Undefined, - thickness=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, - y2Offset=Undefined, yOffset=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) + 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=Undefined, angle=Undefined, aria=Undefined, ariaRole=Undefined, - ariaRoleDescription=Undefined, aspect=Undefined, bandSize=Undefined, - baseline=Undefined, binSpacing=Undefined, blend=Undefined, clip=Undefined, - color=Undefined, continuousBandSize=Undefined, cornerRadius=Undefined, - cornerRadiusBottomLeft=Undefined, cornerRadiusBottomRight=Undefined, - cornerRadiusEnd=Undefined, cornerRadiusTopLeft=Undefined, - cornerRadiusTopRight=Undefined, cursor=Undefined, description=Undefined, - dir=Undefined, discreteBandSize=Undefined, dx=Undefined, dy=Undefined, - ellipsis=Undefined, fill=Undefined, fillOpacity=Undefined, filled=Undefined, - font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, - height=Undefined, href=Undefined, innerRadius=Undefined, interpolate=Undefined, - invalid=Undefined, limit=Undefined, line=Undefined, lineBreak=Undefined, - lineHeight=Undefined, minBandSize=Undefined, opacity=Undefined, order=Undefined, - orient=Undefined, outerRadius=Undefined, padAngle=Undefined, point=Undefined, - radius=Undefined, radius2=Undefined, radius2Offset=Undefined, - radiusOffset=Undefined, shape=Undefined, size=Undefined, smooth=Undefined, - stroke=Undefined, strokeCap=Undefined, strokeDash=Undefined, - strokeDashOffset=Undefined, strokeJoin=Undefined, strokeMiterLimit=Undefined, - strokeOffset=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, - style=Undefined, tension=Undefined, text=Undefined, theta=Undefined, - theta2=Undefined, theta2Offset=Undefined, thetaOffset=Undefined, - thickness=Undefined, timeUnitBandPosition=Undefined, timeUnitBandSize=Undefined, - tooltip=Undefined, url=Undefined, width=Undefined, x=Undefined, x2=Undefined, - x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, - y2Offset=Undefined, yOffset=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) + 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=Undefined, clip=Undefined, color=Undefined, extent=Undefined, - invalid=Undefined, median=Undefined, opacity=Undefined, orient=Undefined, - outliers=Undefined, rule=Undefined, size=Undefined, ticks=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) + 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=Undefined, color=Undefined, extent=Undefined, opacity=Undefined, - orient=Undefined, rule=Undefined, size=Undefined, thickness=Undefined, - ticks=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) + 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=Undefined, borders=Undefined, clip=Undefined, color=Undefined, - extent=Undefined, interpolate=Undefined, opacity=Undefined, orient=Undefined, - tension=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) + 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: @@ -865,13 +14864,13 @@ class ConfigMethodMixin: @use_signature(core.Config) def configure(self, *args, **kwargs) -> Self: - copy = self.copy(deep=False) + 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']) + 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) @@ -879,7 +14878,7 @@ def configure_arc(self, *args, **kwargs) -> Self: @use_signature(core.AreaConfig) def configure_area(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -887,7 +14886,7 @@ def configure_area(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axis(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -895,7 +14894,7 @@ def configure_axis(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisBand(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -903,7 +14902,7 @@ def configure_axisBand(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisBottom(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -911,7 +14910,7 @@ def configure_axisBottom(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisDiscrete(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -919,7 +14918,7 @@ def configure_axisDiscrete(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisLeft(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -927,7 +14926,7 @@ def configure_axisLeft(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisPoint(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -935,7 +14934,7 @@ def configure_axisPoint(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisQuantitative(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -943,7 +14942,7 @@ def configure_axisQuantitative(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisRight(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -951,7 +14950,7 @@ def configure_axisRight(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisTemporal(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -959,7 +14958,7 @@ def configure_axisTemporal(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisTop(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -967,7 +14966,7 @@ def configure_axisTop(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisX(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -975,7 +14974,7 @@ def configure_axisX(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisXBand(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -983,7 +14982,7 @@ def configure_axisXBand(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisXDiscrete(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -991,7 +14990,7 @@ def configure_axisXDiscrete(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisXPoint(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -999,7 +14998,7 @@ def configure_axisXPoint(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisXQuantitative(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1007,7 +15006,7 @@ def configure_axisXQuantitative(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisXTemporal(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1015,7 +15014,7 @@ def configure_axisXTemporal(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisY(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1023,7 +15022,7 @@ def configure_axisY(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisYBand(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1031,7 +15030,7 @@ def configure_axisYBand(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisYDiscrete(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1039,7 +15038,7 @@ def configure_axisYDiscrete(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisYPoint(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1047,7 +15046,7 @@ def configure_axisYPoint(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisYQuantitative(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1055,7 +15054,7 @@ def configure_axisYQuantitative(self, *args, **kwargs) -> Self: @use_signature(core.AxisConfig) def configure_axisYTemporal(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1063,7 +15062,7 @@ def configure_axisYTemporal(self, *args, **kwargs) -> Self: @use_signature(core.BarConfig) def configure_bar(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1071,7 +15070,7 @@ def configure_bar(self, *args, **kwargs) -> Self: @use_signature(core.BoxPlotConfig) def configure_boxplot(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1079,7 +15078,7 @@ def configure_boxplot(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_circle(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1087,7 +15086,7 @@ def configure_circle(self, *args, **kwargs) -> Self: @use_signature(core.CompositionConfig) def configure_concat(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1095,7 +15094,7 @@ def configure_concat(self, *args, **kwargs) -> Self: @use_signature(core.ErrorBandConfig) def configure_errorband(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1103,7 +15102,7 @@ def configure_errorband(self, *args, **kwargs) -> Self: @use_signature(core.ErrorBarConfig) def configure_errorbar(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1111,7 +15110,7 @@ def configure_errorbar(self, *args, **kwargs) -> Self: @use_signature(core.CompositionConfig) def configure_facet(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1119,7 +15118,7 @@ def configure_facet(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_geoshape(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1127,7 +15126,7 @@ def configure_geoshape(self, *args, **kwargs) -> Self: @use_signature(core.HeaderConfig) def configure_header(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1135,7 +15134,7 @@ def configure_header(self, *args, **kwargs) -> Self: @use_signature(core.HeaderConfig) def configure_headerColumn(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1143,7 +15142,7 @@ def configure_headerColumn(self, *args, **kwargs) -> Self: @use_signature(core.HeaderConfig) def configure_headerFacet(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1151,7 +15150,7 @@ def configure_headerFacet(self, *args, **kwargs) -> Self: @use_signature(core.HeaderConfig) def configure_headerRow(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1159,7 +15158,7 @@ def configure_headerRow(self, *args, **kwargs) -> Self: @use_signature(core.RectConfig) def configure_image(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1167,7 +15166,7 @@ def configure_image(self, *args, **kwargs) -> Self: @use_signature(core.LegendConfig) def configure_legend(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1175,7 +15174,7 @@ def configure_legend(self, *args, **kwargs) -> Self: @use_signature(core.LineConfig) def configure_line(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1183,7 +15182,7 @@ def configure_line(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_mark(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1191,7 +15190,7 @@ def configure_mark(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_point(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1199,7 +15198,7 @@ def configure_point(self, *args, **kwargs) -> Self: @use_signature(core.ProjectionConfig) def configure_projection(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1207,7 +15206,7 @@ def configure_projection(self, *args, **kwargs) -> Self: @use_signature(core.RangeConfig) def configure_range(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1215,7 +15214,7 @@ def configure_range(self, *args, **kwargs) -> Self: @use_signature(core.RectConfig) def configure_rect(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1223,7 +15222,7 @@ def configure_rect(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_rule(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1231,7 +15230,7 @@ def configure_rule(self, *args, **kwargs) -> Self: @use_signature(core.ScaleConfig) def configure_scale(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1239,7 +15238,7 @@ def configure_scale(self, *args, **kwargs) -> Self: @use_signature(core.SelectionConfig) def configure_selection(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1247,7 +15246,7 @@ def configure_selection(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_square(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1255,7 +15254,7 @@ def configure_square(self, *args, **kwargs) -> Self: @use_signature(core.MarkConfig) def configure_text(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1263,7 +15262,7 @@ def configure_text(self, *args, **kwargs) -> Self: @use_signature(core.TickConfig) def configure_tick(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1271,7 +15270,7 @@ def configure_tick(self, *args, **kwargs) -> Self: @use_signature(core.TitleConfig) def configure_title(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1279,7 +15278,7 @@ def configure_title(self, *args, **kwargs) -> Self: @use_signature(core.FormatConfig) def configure_tooltipFormat(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1287,7 +15286,7 @@ def configure_tooltipFormat(self, *args, **kwargs) -> Self: @use_signature(core.LineConfig) def configure_trail(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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) @@ -1295,8 +15294,8 @@ def configure_trail(self, *args, **kwargs) -> Self: @use_signature(core.ViewConfig) def configure_view(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + 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 \ No newline at end of file + return copy diff --git a/doc/conf.py b/doc/conf.py index b78551ca1..da50c57c5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -49,6 +49,8 @@ autodoc_member_order = "groupwise" +autodoc_typehints = "none" + # generate autosummary even if no references autosummary_generate = True diff --git a/pyproject.toml b/pyproject.toml index 527d03f09..862ad3ed5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -218,9 +218,8 @@ module = [ "nbformat.*", "ipykernel.*", "m2r.*", + # This refers to schemapi in the tools folder which is imported + # by the tools scripts such as generate_schema_wrapper.py + "schemapi.*" ] ignore_missing_imports = true - -[[tool.mypy.overrides]] -module = ["altair.vegalite.v5.schema.*"] -ignore_errors = true diff --git a/tests/examples_arguments_syntax/scatter_marginal_hist.py b/tests/examples_arguments_syntax/scatter_marginal_hist.py index b2718b524..72638bcfd 100644 --- a/tests/examples_arguments_syntax/scatter_marginal_hist.py +++ b/tests/examples_arguments_syntax/scatter_marginal_hist.py @@ -11,12 +11,11 @@ source = data.iris() base = alt.Chart(source) +base_bar = base.mark_bar(opacity=0.3, binSpacing=0) xscale = alt.Scale(domain=(4.0, 8.0)) yscale = alt.Scale(domain=(1.9, 4.55)) -bar_args = {"opacity": 0.3, "binSpacing": 0} - points = base.mark_circle().encode( alt.X("sepalLength", scale=xscale), alt.Y("sepalWidth", scale=yscale), @@ -24,7 +23,7 @@ ) top_hist = ( - base.mark_bar(**bar_args) + base_bar .encode( alt.X( "sepalLength:Q", @@ -42,7 +41,7 @@ ) right_hist = ( - base.mark_bar(**bar_args) + base_bar .encode( alt.Y( "sepalWidth:Q", diff --git a/tests/examples_methods_syntax/scatter_marginal_hist.py b/tests/examples_methods_syntax/scatter_marginal_hist.py index 4905de5ba..9669b70ab 100644 --- a/tests/examples_methods_syntax/scatter_marginal_hist.py +++ b/tests/examples_methods_syntax/scatter_marginal_hist.py @@ -11,12 +11,11 @@ source = data.iris() base = alt.Chart(source) +base_bar = base.mark_bar(opacity=0.3, binSpacing=0) xscale = alt.Scale(domain=(4.0, 8.0)) yscale = alt.Scale(domain=(1.9, 4.55)) -bar_args = {"opacity": 0.3, "binSpacing": 0} - points = base.mark_circle().encode( alt.X("sepalLength").scale(xscale), alt.Y("sepalWidth").scale(yscale), @@ -24,7 +23,7 @@ ) top_hist = ( - base.mark_bar(**bar_args) + base_bar .encode( alt.X("sepalLength:Q") # when using bins, the axis scale is set through @@ -38,7 +37,7 @@ ) right_hist = ( - base.mark_bar(**bar_args) + base_bar .encode( alt.Y("sepalWidth:Q") .bin(maxbins=20, extent=yscale.domain) diff --git a/tools/generate_schema_wrapper.py b/tools/generate_schema_wrapper.py index ee20a6349..07c5176f4 100644 --- a/tools/generate_schema_wrapper.py +++ b/tools/generate_schema_wrapper.py @@ -1,19 +1,18 @@ """Generate a schema wrapper from a schema""" import argparse import copy -import os -import sys import json +import os import re -from os.path import abspath, join, dirname -from typing import Final, Optional, List, Dict, Tuple, Literal, Union, Type - +import sys import textwrap +from dataclasses import dataclass +from os.path import abspath, dirname, join +from typing import Dict, Final, List, Literal, Optional, Tuple, Type, Union from urllib import request import m2r - # Add path so that schemapi can be imported from the tools folder current_dir = dirname(__file__) sys.path.insert(0, abspath(current_dir)) @@ -23,10 +22,12 @@ from schemapi import codegen # noqa: E402 from schemapi.codegen import CodeSnippet # noqa: E402 from schemapi.utils import ( # noqa: E402 - get_valid_identifier, SchemaInfo, - indent_arglist, + get_valid_identifier, resolve_references, + ruff_format_str, + rst_syntax_for_class, + indent_docstring, ) SCHEMA_VERSION: Final = "v5.15.1" @@ -41,11 +42,42 @@ SCHEMA_URL_TEMPLATE: Final = "https://vega.github.io/schema/" "{library}/{version}.json" +CHANNEL_MYPY_IGNORE_STATEMENTS: Final = """\ +# These errors need to be ignored as they come from the overload methods +# which trigger two kind of errors in mypy: +# * all of them do not have an implementation in this file +# * some of them are the only overload methods -> overloads usually only make +# sense if there are multiple ones +# However, we need these overloads due to how the propertysetter works +# mypy: disable-error-code="no-overload-impl, empty-body, misc" +""" + +PARAMETER_PROTOCOL: Final = """ +class _Parameter(Protocol): + # This protocol represents a Parameter as defined in api.py + # It would be better if we could directly use the Parameter class, + # but that would create a circular import. + # The protocol does not need to have all the attributes and methods of this + # class but the actual api.Parameter just needs to pass a type check + # as a core._Parameter. + + _counter: int + + def _get_name(cls) -> str: + ... + + def to_dict(self) -> TypingDict[str, Union[str, dict]]: + ... + + def _to_expr(self) -> str: + ... +""" + BASE_SCHEMA: Final = """ class {basename}(SchemaBase): _rootschema = load_schema() @classmethod - def _default_wrapper_classes(cls): + def _default_wrapper_classes(cls) -> TypingGenerator[type, None, None]: return _subclasses({basename}) """ @@ -53,95 +85,126 @@ def _default_wrapper_classes(cls): import pkgutil import json -def load_schema(): +def load_schema() -> dict: """Load the json schema associated with this module's functions""" - return json.loads(pkgutil.get_data(__name__, '{schemafile}').decode('utf-8')) + schema_bytes = pkgutil.get_data(__name__, "{schemafile}") + if schema_bytes is None: + raise ValueError("Unable to load {schemafile}") + return json.loads( + schema_bytes.decode("utf-8") + ) ''' CHANNEL_MIXINS: Final = """ class FieldChannelMixin: - def to_dict(self, validate=True, ignore=(), context=None): + def to_dict( + self, + validate: bool = True, + ignore: Optional[List[str]] = None, + context: Optional[TypingDict[str, Any]] = None, + ) -> Union[dict, List[dict]]: context = context or {} - shorthand = self._get('shorthand') - field = self._get('field') + ignore = ignore or [] + shorthand = self._get("shorthand") # type: ignore[attr-defined] + field = self._get("field") # type: ignore[attr-defined] if shorthand is not Undefined and field is not Undefined: - raise ValueError("{} specifies both shorthand={} and field={}. " - "".format(self.__class__.__name__, shorthand, field)) + raise ValueError( + "{} specifies both shorthand={} and field={}. " + "".format(self.__class__.__name__, shorthand, field) + ) if isinstance(shorthand, (tuple, list)): # If given a list of shorthands, then transform it to a list of classes - kwds = self._kwds.copy() - kwds.pop('shorthand') - return [self.__class__(sh, **kwds).to_dict(validate=validate, ignore=ignore, context=context) - for sh in shorthand] + kwds = self._kwds.copy() # type: ignore[attr-defined] + kwds.pop("shorthand") + return [ + self.__class__(sh, **kwds).to_dict( # type: ignore[call-arg] + validate=validate, ignore=ignore, context=context + ) + for sh in shorthand + ] if shorthand is Undefined: parsed = {} elif isinstance(shorthand, str): - parsed = parse_shorthand(shorthand, data=context.get('data', None)) - type_required = 'type' in self._kwds - type_in_shorthand = 'type' in parsed - type_defined_explicitly = self._get('type') is not Undefined + parsed = parse_shorthand(shorthand, data=context.get("data", None)) + type_required = "type" in self._kwds # type: ignore[attr-defined] + type_in_shorthand = "type" in parsed + type_defined_explicitly = self._get("type") is not Undefined # type: ignore[attr-defined] if not type_required: # Secondary field names don't require a type argument in VegaLite 3+. # We still parse it out of the shorthand, but drop it here. - parsed.pop('type', None) + parsed.pop("type", None) elif not (type_in_shorthand or type_defined_explicitly): - if isinstance(context.get('data', None), pd.DataFrame): + if isinstance(context.get("data", None), pd.DataFrame): raise ValueError( 'Unable to determine data type for the field "{}";' " verify that the field name is not misspelled." " If you are referencing a field from a transform," - " also confirm that the data type is specified correctly.".format(shorthand) + " also confirm that the data type is specified correctly.".format( + shorthand + ) ) else: - raise ValueError("{} encoding field is specified without a type; " - "the type cannot be automatically inferred because " - "the data is not specified as a pandas.DataFrame." - "".format(shorthand)) + raise ValueError( + "{} encoding field is specified without a type; " + "the type cannot be automatically inferred because " + "the data is not specified as a pandas.DataFrame." + "".format(shorthand) + ) else: # Shorthand is not a string; we pass the definition to field, # and do not do any parsing. - parsed = {'field': shorthand} + parsed = {"field": shorthand} context["parsed_shorthand"] = parsed return super(FieldChannelMixin, self).to_dict( - validate=validate, - ignore=ignore, - context=context + validate=validate, ignore=ignore, context=context ) class ValueChannelMixin: - def to_dict(self, validate=True, ignore=(), context=None): + def to_dict( + self, + validate: bool = True, + ignore: Optional[List[str]] = None, + context: Optional[TypingDict[str, Any]] = None, + ) -> dict: context = context or {} - condition = self._get('condition', Undefined) + ignore = ignore or [] + condition = self._get("condition", Undefined) # type: ignore[attr-defined] copy = self # don't copy unless we need to if condition is not Undefined: if isinstance(condition, core.SchemaBase): pass - elif 'field' in condition and 'type' not in condition: - kwds = parse_shorthand(condition['field'], context.get('data', None)) - copy = self.copy(deep=['condition']) - copy['condition'].update(kwds) - return super(ValueChannelMixin, copy).to_dict(validate=validate, - ignore=ignore, - context=context) + elif "field" in condition and "type" not in condition: + kwds = parse_shorthand(condition["field"], context.get("data", None)) + copy = self.copy(deep=["condition"]) # type: ignore[attr-defined] + copy["condition"].update(kwds) # type: ignore[index] + return super(ValueChannelMixin, copy).to_dict( + validate=validate, ignore=ignore, context=context + ) class DatumChannelMixin: - def to_dict(self, validate=True, ignore=(), context=None): + def to_dict( + self, + validate: bool = True, + ignore: Optional[List[str]] = None, + context: Optional[TypingDict[str, Any]] = None, + ) -> dict: context = context or {} - datum = self._get('datum', Undefined) + ignore = ignore or [] + datum = self._get("datum", Undefined) # type: ignore[attr-defined] copy = self # don't copy unless we need to if datum is not Undefined: if isinstance(datum, core.SchemaBase): pass - return super(DatumChannelMixin, copy).to_dict(validate=validate, - ignore=ignore, - context=context) + return super(DatumChannelMixin, copy).to_dict( + validate=validate, ignore=ignore, context=context + ) """ MARK_METHOD: Final = ''' @@ -149,7 +212,7 @@ def mark_{mark}({def_arglist}) -> Self: """Set the chart's mark to '{mark}' (see :class:`{mark_def}`) """ kwds = dict({dict_arglist}) - copy = self.copy(deep=False) + copy = self.copy(deep=False) # type: ignore[attr-defined] if any(val is not Undefined for val in kwds.values()): copy.mark = core.{mark_def}(type="{mark}", **kwds) else: @@ -160,7 +223,7 @@ def mark_{mark}({def_arglist}) -> Self: CONFIG_METHOD: Final = """ @use_signature(core.{classname}) def {method}(self, *args, **kwargs) -> Self: - copy = self.copy(deep=False) + copy = self.copy(deep=False) # type: ignore[attr-defined] copy.config = core.{classname}(*args, **kwargs) return copy """ @@ -168,13 +231,19 @@ def {method}(self, *args, **kwargs) -> Self: CONFIG_PROP_METHOD: Final = """ @use_signature(core.{classname}) def configure_{prop}(self, *args, **kwargs) -> Self: - copy = self.copy(deep=['config']) + copy = self.copy(deep=['config']) # type: ignore[attr-defined] if copy.config is Undefined: copy.config = core.Config() copy.config["{prop}"] = core.{classname}(*args, **kwargs) return copy """ +ENCODE_SIGNATURE: Final = ''' +def _encode_signature({encode_method_args}): + """{docstring}""" + ... +''' + class SchemaGenerator(codegen.SchemaGenerator): schema_class_template = textwrap.dedent( @@ -187,24 +256,28 @@ class {classname}({basename}): ''' ) - def _process_description(self, description: str): - description = "".join( - [ - reSpecial.sub("", d) if i % 2 else d - for i, d in enumerate(reLink.split(description)) - ] - ) # remove formatting from links - description = m2r.convert(description) - description = description.replace(m2r.prolog, "") - description = description.replace(":raw-html-m2r:", ":raw-html:") - description = description.replace(r"\ ,", ",") - description = description.replace(r"\ ", " ") - # turn explicit references into anonymous references - description = description.replace(">`_", ">`__") - # Some entries in the Vega-Lite schema miss the second occurence of '__' - description = description.replace("__Default value: ", "__Default value:__ ") - description += "\n" - return description.strip() + def _process_description(self, description: str) -> str: + return process_description(description) + + +def process_description(description: str) -> str: + description = "".join( + [ + reSpecial.sub("", d) if i % 2 else d + for i, d in enumerate(reLink.split(description)) + ] + ) # remove formatting from links + description = m2r.convert(description) + description = description.replace(m2r.prolog, "") + description = description.replace(":raw-html-m2r:", ":raw-html:") + description = description.replace(r"\ ,", ",") + description = description.replace(r"\ ", " ") + # turn explicit references into anonymous references + description = description.replace(">`_", ">`__") + # Some entries in the Vega-Lite schema miss the second occurence of '__' + description = description.replace("__Default value: ", "__Default value:__ ") + description += "\n" + return description.strip() class FieldSchemaGenerator(SchemaGenerator): @@ -277,6 +350,45 @@ def download_schemafile( return filename +def load_schema_with_shorthand_properties(schemapath: str) -> dict: + with open(schemapath, encoding="utf8") as f: + schema = json.load(f) + + schema = _add_shorthand_property_to_field_encodings(schema) + return schema + + +def _add_shorthand_property_to_field_encodings(schema: dict) -> dict: + encoding_def = "FacetedEncoding" + + encoding = SchemaInfo(schema["definitions"][encoding_def], rootschema=schema) + + for _, propschema in encoding.properties.items(): + def_dict = get_field_datum_value_defs(propschema, schema) + + field_ref = def_dict.get("field") + if field_ref is not None: + defschema = {"$ref": field_ref} + defschema = copy.deepcopy(resolve_references(defschema, schema)) + # For Encoding field definitions, we patch the schema by adding the + # shorthand property. + defschema["properties"]["shorthand"] = { + "anyOf": [ + {"type": "string"}, + {"type": "array", "items": {"type": "string"}}, + {"$ref": "#/definitions/RepeatRef"}, + ], + "description": "shorthand for field, aggregate, and type", + } + if "required" not in defschema: + defschema["required"] = ["shorthand"] + else: + if "shorthand" not in defschema["required"]: + defschema["required"].append("shorthand") + schema["definitions"][field_ref.split("/")[-1]] = defschema + return schema + + def copy_schemapi_util() -> None: """ Copy the schemapi utility into altair/utils/ and its test file to tests/utils/ @@ -359,8 +471,7 @@ def generate_vegalite_schema_wrapper(schema_file: str) -> str: # TODO: generate simple tests for each wrapper basename = "VegaLiteSchema" - with open(schema_file, encoding="utf8") as f: - rootschema = json.load(f) + rootschema = load_schema_with_shorthand_properties(schema_file) definitions: Dict[str, SchemaGenerator] = {} @@ -393,9 +504,13 @@ def generate_vegalite_schema_wrapper(schema_file: str) -> str: contents = [ HEADER, + "from typing import Any, Literal, Union, Protocol, Sequence, List", + "from typing import Dict as TypingDict", + "from typing import Generator as TypingGenerator" "", "from altair.utils.schemapi import SchemaBase, Undefined, UndefinedType, _subclasses", LOAD_SCHEMA.format(schemafile="vega-lite-schema.json"), ] + contents.append(PARAMETER_PROTOCOL) contents.append(BASE_SCHEMA.format(basename=basename)) contents.append( schema_class( @@ -413,39 +528,54 @@ def generate_vegalite_schema_wrapper(schema_file: str) -> str: return "\n".join(contents) +@dataclass +class ChannelInfo: + supports_arrays: bool + deep_description: str + field_class_name: Optional[str] = None + datum_class_name: Optional[str] = None + value_class_name: Optional[str] = None + + def generate_vegalite_channel_wrappers( schemafile: str, version: str, imports: Optional[List[str]] = None ) -> str: # TODO: generate __all__ for top of file - with open(schemafile, encoding="utf8") as f: - schema = json.load(f) + schema = load_schema_with_shorthand_properties(schemafile) if imports is None: imports = [ "import sys", "from . import core", "import pandas as pd", - "from altair.utils.schemapi import Undefined, with_property_setters", + "from altair.utils.schemapi import Undefined, UndefinedType, with_property_setters", "from altair.utils import parse_shorthand", - "from typing import overload, List", - "", - "from typing import Literal", + "from typing import Any, overload, Sequence, List, Literal, Union, Optional", + "from typing import Dict as TypingDict", ] contents = [HEADER] + contents.append(CHANNEL_MYPY_IGNORE_STATEMENTS) contents.extend(imports) contents.append("") contents.append(CHANNEL_MIXINS) - if version == "v2": - encoding_def = "EncodingWithFacet" - else: - encoding_def = "FacetedEncoding" + encoding_def = "FacetedEncoding" encoding = SchemaInfo(schema["definitions"][encoding_def], rootschema=schema) + channel_infos: dict[str, ChannelInfo] = {} + for prop, propschema in encoding.properties.items(): def_dict = get_field_datum_value_defs(propschema, schema) + supports_arrays = any( + schema_info.is_array() for schema_info in propschema.anyOf + ) + channel_info = ChannelInfo( + supports_arrays=supports_arrays, + deep_description=propschema.deep_description, + ) + for encoding_spec, definition in def_dict.items(): classname = prop[0].upper() + prop[1:] basename = definition.split("/")[-1] @@ -461,25 +591,19 @@ def generate_vegalite_channel_wrappers( if encoding_spec == "field": Generator = FieldSchemaGenerator nodefault = [] - defschema = copy.deepcopy(resolve_references(defschema, schema)) - - # For Encoding field definitions, we patch the schema by adding the - # shorthand property. - defschema["properties"]["shorthand"] = { - "type": "string", - "description": "shorthand for field, aggregate, and type", - } - defschema["required"] = ["shorthand"] + channel_info.field_class_name = classname elif encoding_spec == "datum": Generator = DatumSchemaGenerator classname += "Datum" nodefault = ["datum"] + channel_info.datum_class_name = classname elif encoding_spec == "value": Generator = ValueSchemaGenerator classname += "Value" nodefault = ["value"] + channel_info.value_class_name = classname gen = Generator( classname=classname, @@ -489,8 +613,15 @@ def generate_vegalite_channel_wrappers( encodingname=prop, nodefault=nodefault, haspropsetters=True, + altair_classes_prefix="core", ) contents.append(gen.schema_class()) + + channel_infos[prop] = channel_info + + # Generate the type signature for the encode method + encode_signature = _create_encode_signature(channel_infos) + contents.append(encode_signature) return "\n".join(contents) @@ -503,7 +634,9 @@ def generate_vegalite_mark_mixin( class_name = "MarkMethodMixin" imports = [ - "from altair.utils.schemapi import Undefined", + "from typing import Any, Sequence, List, Literal, Union", + "", + "from altair.utils.schemapi import Undefined, UndefinedType", "from . import core", ] @@ -525,7 +658,11 @@ def generate_vegalite_mark_mixin( arg_info.kwds -= {"type"} def_args = ["self"] + [ - "{}=Undefined".format(p) + f"{p}: Union[" + + info.properties[p].get_python_type_representation( + for_type_hints=True, altair_classes_prefix="core" + ) + + ", UndefinedType] = Undefined" for p in (sorted(arg_info.required) + sorted(arg_info.kwds)) ] dict_args = [ @@ -542,8 +679,8 @@ def generate_vegalite_mark_mixin( mark_method = MARK_METHOD.format( mark=mark, mark_def=mark_def, - def_arglist=indent_arglist(def_args, indent_level=10 + len(mark)), - dict_arglist=indent_arglist(dict_args, indent_level=16), + def_arglist=", ".join(def_args), + dict_arglist=", ".join(dict_args), ) code.append("\n ".join(mark_method.splitlines())) @@ -591,25 +728,28 @@ def vegalite_main(skip_download: bool = False) -> None: # Generate __init__.py file outfile = join(schemapath, "__init__.py") print("Writing {}".format(outfile)) + content = [ + "# ruff: noqa\n", + "from .core import *\nfrom .channels import * # type: ignore[assignment]\n", + f"SCHEMA_VERSION = '{version}'\n", + "SCHEMA_URL = {!r}\n" "".format(schema_url(version)), + ] with open(outfile, "w", encoding="utf8") as f: - f.write("# ruff: noqa\n") - f.write("from .core import *\nfrom .channels import *\n") - f.write(f"SCHEMA_VERSION = '{version}'\n") - f.write("SCHEMA_URL = {!r}\n" "".format(schema_url(version))) + f.write(ruff_format_str(content)) # Generate the core schema wrappers outfile = join(schemapath, "core.py") print("Generating\n {}\n ->{}".format(schemafile, outfile)) file_contents = generate_vegalite_schema_wrapper(schemafile) with open(outfile, "w", encoding="utf8") as f: - f.write(file_contents) + f.write(ruff_format_str(file_contents)) # Generate the channel wrappers outfile = join(schemapath, "channels.py") print("Generating\n {}\n ->{}".format(schemafile, outfile)) code = generate_vegalite_channel_wrappers(schemafile, version=version) with open(outfile, "w", encoding="utf8") as f: - f.write(code) + f.write(ruff_format_str(code)) # generate the mark mixin markdefs = {k: k + "Def" for k in ["Mark", "BoxPlot", "ErrorBar", "ErrorBand"]} @@ -625,17 +765,71 @@ def vegalite_main(skip_download: bool = False) -> None: ] stdlib_imports = ["import sys"] imports = sorted(set(mark_imports + config_imports)) + content = [ + HEADER, + "\n".join(stdlib_imports), + "\n\n", + "\n".join(imports), + "\n\n", + "\n".join(try_except_imports), + "\n\n\n", + mark_mixin, + "\n\n\n", + config_mixin, + ] with open(outfile, "w", encoding="utf8") as f: - f.write(HEADER) - f.write("\n".join(stdlib_imports)) - f.write("\n\n") - f.write("\n".join(imports)) - f.write("\n\n") - f.write("\n".join(try_except_imports)) - f.write("\n\n\n") - f.write(mark_mixin) - f.write("\n\n\n") - f.write(config_mixin) + f.write(ruff_format_str(content)) + + +def _create_encode_signature( + channel_infos: Dict[str, ChannelInfo], +) -> str: + signature_args: list[str] = ["self"] + docstring_parameters: list[str] = ["", "Parameters", "----------", ""] + for channel, info in channel_infos.items(): + field_class_name = info.field_class_name + assert ( + field_class_name is not None + ), "All channels are expected to have a field class" + datum_and_value_class_names = [] + if info.datum_class_name is not None: + datum_and_value_class_names.append(info.datum_class_name) + + if info.value_class_name is not None: + datum_and_value_class_names.append(info.value_class_name) + + # dict stands for the return types of alt.datum, alt.value as well as + # the dictionary representation of an encoding channel class. See + # discussions in https://github.com/altair-viz/altair/pull/3208 + # for more background. + union_types = ["str", field_class_name, "dict"] + docstring_union_types = ["str", rst_syntax_for_class(field_class_name), "Dict"] + if info.supports_arrays: + # We could be more specific about what types are accepted in the list + # but then the signatures would get rather long and less useful + # to a user when it shows up in their IDE. + union_types.append("list") + docstring_union_types.append("List") + + union_types = union_types + datum_and_value_class_names + ["UndefinedType"] + docstring_union_types = docstring_union_types + [ + rst_syntax_for_class(c) for c in datum_and_value_class_names + ] + + signature_args.append(f"{channel}: Union[{', '.join(union_types)}] = Undefined") + + docstring_parameters.append(f"{channel} : {', '.join(docstring_union_types)}") + docstring_parameters.append( + " {}".format(process_description(info.deep_description)) + ) + if len(docstring_parameters) > 1: + docstring_parameters += [""] + docstring = indent_docstring( + docstring_parameters, indent_level=4, width=100, lstrip=True + ) + return ENCODE_SIGNATURE.format( + encode_method_args=", ".join(signature_args), docstring=docstring + ) def main() -> None: diff --git a/tools/schemapi/codegen.py b/tools/schemapi/codegen.py index 3f97bdf2f..6e743979f 100644 --- a/tools/schemapi/codegen.py +++ b/tools/schemapi/codegen.py @@ -1,15 +1,15 @@ """Code generation utilities""" import re import textwrap -from typing import Set, Final, Optional, List, Iterable, Union +from typing import Set, Final, Optional, List, Union, Dict, Tuple from dataclasses import dataclass from .utils import ( SchemaInfo, is_valid_identifier, indent_docstring, - indent_arglist, - SchemaProperties, + jsonschema_to_python_types, + flatten, ) @@ -100,6 +100,7 @@ class SchemaGenerator: rootschemarepr : CodeSnippet or object, optional An object whose repr will be used in the place of the explicit root schema. + altair_classes_prefix : string, optional **kwargs : dict Additional keywords for derived classes. """ @@ -135,6 +136,7 @@ def __init__( rootschemarepr: Optional[object] = None, nodefault: Optional[List[str]] = None, haspropsetters: bool = False, + altair_classes_prefix: Optional[str] = None, **kwargs, ) -> None: self.classname = classname @@ -146,6 +148,7 @@ def __init__( self.nodefault = nodefault or () self.haspropsetters = haspropsetters self.kwargs = kwargs + self.altair_classes_prefix = altair_classes_prefix def subclasses(self) -> List[str]: """Return a list of subclass names, if any.""" @@ -181,13 +184,23 @@ def schema_class(self) -> str: **self.kwargs, ) + @property + def info(self) -> SchemaInfo: + return SchemaInfo(self.schema, self.rootschema) + + @property + def arg_info(self) -> ArgInfo: + return get_args(self.info) + def docstring(self, indent: int = 0) -> str: - # TODO: add a general description at the top, derived from the schema. - # for example, a non-object definition should list valid type, enum - # values, etc. - # TODO: use get_args here for more information on allOf objects - info = SchemaInfo(self.schema, self.rootschema) - doc = ["{} schema wrapper".format(self.classname), "", info.medium_description] + info = self.info + doc = [ + "{} schema wrapper".format(self.classname), + "", + info.get_python_type_representation( + altair_classes_prefix=self.altair_classes_prefix + ), + ] if info.description: doc += self._process_description( # remove condition description re.sub(r"\n\{\n(\n|.)*\n\}", "", info.description) @@ -199,7 +212,7 @@ def docstring(self, indent: int = 0) -> str: doc = [line for line in doc if ":raw-html:" not in line] if info.properties: - arg_info = get_args(info) + arg_info = self.arg_info doc += ["", "Parameters", "----------", ""] for prop in ( sorted(arg_info.required) @@ -208,7 +221,12 @@ def docstring(self, indent: int = 0) -> str: ): propinfo = info.properties[prop] doc += [ - "{} : {}".format(prop, propinfo.short_description), + "{} : {}".format( + prop, + propinfo.get_python_type_representation( + altair_classes_prefix=self.altair_classes_prefix, + ), + ), " {}".format( self._process_description(propinfo.deep_description) ), @@ -219,8 +237,23 @@ def docstring(self, indent: int = 0) -> str: def init_code(self, indent: int = 0) -> str: """Return code suitable for the __init__ function of a Schema class""" - info = SchemaInfo(self.schema, rootschema=self.rootschema) - arg_info = get_args(info) + args, super_args = self.init_args() + + initfunc = self.init_template.format( + classname=self.classname, + arglist=", ".join(args), + super_arglist=", ".join(super_args), + ) + if indent: + initfunc = ("\n" + indent * " ").join(initfunc.splitlines()) + return initfunc + + def init_args( + self, additional_types: Optional[List[str]] = None + ) -> Tuple[List[str], List[str]]: + additional_types = additional_types or [] + info = self.info + arg_info = self.arg_info nodefault = set(self.nodefault) arg_info.required -= nodefault @@ -238,7 +271,18 @@ def init_code(self, indent: int = 0) -> str: super_args.append("*args") args.extend( - "{}=Undefined".format(p) + f"{p}: Union[" + + ", ".join( + [ + *additional_types, + info.properties[p].get_python_type_representation( + for_type_hints=True, + altair_classes_prefix=self.altair_classes_prefix, + ), + "UndefinedType", + ] + ) + + "] = Undefined" for p in sorted(arg_info.required) + sorted(arg_info.kwds) ) super_args.extend( @@ -251,49 +295,38 @@ def init_code(self, indent: int = 0) -> str: if arg_info.additional: args.append("**kwds") super_args.append("**kwds") - - arg_indent_level = 9 + indent - super_arg_indent_level = 23 + len(self.classname) + indent - - initfunc = self.init_template.format( - classname=self.classname, - arglist=indent_arglist(args, indent_level=arg_indent_level), - super_arglist=indent_arglist( - super_args, indent_level=super_arg_indent_level - ), - ) - if indent: - initfunc = ("\n" + indent * " ").join(initfunc.splitlines()) - return initfunc - - _equiv_python_types = { - "string": "str", - "number": "float", - "integer": "int", - "object": "dict", - "boolean": "bool", - "array": "list", - "null": "None", - } + return args, super_args def get_args(self, si: SchemaInfo) -> List[str]: contents = ["self"] - props: Union[List[str], SchemaProperties] = [] + prop_infos: Dict[str, SchemaInfo] = {} if si.is_anyOf(): - props = sorted({p for si_sub in si.anyOf for p in si_sub.properties}) + prop_infos = {} + for si_sub in si.anyOf: + prop_infos.update(si_sub.properties) elif si.properties: - props = si.properties - - if props: - contents.extend([p + "=Undefined" for p in props]) + prop_infos = dict(si.properties.items()) + + if prop_infos: + contents.extend( + [ + f"{p}: Union[" + + info.get_python_type_representation( + for_type_hints=True, + altair_classes_prefix=self.altair_classes_prefix, + ) + + ", UndefinedType] = Undefined" + for p, info in prop_infos.items() + ] + ) elif si.type: - py_type = self._equiv_python_types[si.type] + py_type = jsonschema_to_python_types[si.type] if py_type == "list": # Try to get a type hint like "List[str]" which is more specific # then just "list" item_vl_type = si.items.get("type", None) if item_vl_type is not None: - item_type = self._equiv_python_types[item_vl_type] + item_type = jsonschema_to_python_types[item_vl_type] else: item_si = SchemaInfo(si.items, self.rootschema) assert item_si.is_reference() @@ -316,7 +349,7 @@ def get_signature( ) -> List[str]: lines = [] if has_overload: - lines.append("@overload # type: ignore[no-overload-impl]") + lines.append("@overload") args = ", ".join(self.get_args(sub_si)) lines.append(f"def {attr}({args}) -> '{self.classname}':") lines.append(indent * " " + "...\n") @@ -327,7 +360,7 @@ def setter_hint(self, attr: str, indent: int) -> List[str]: if si.is_anyOf(): return self._get_signature_any_of(si, attr, indent) else: - return self.get_signature(attr, si, indent) + return self.get_signature(attr, si, indent, has_overload=True) def _get_signature_any_of( self, si: SchemaInfo, attr: str, indent: int @@ -351,16 +384,3 @@ def method_code(self, indent: int = 0) -> Optional[str]: type_hints = [hint for a in args for hint in self.setter_hint(a, indent)] return ("\n" + indent * " ").join(type_hints) - - -def flatten(container: Iterable) -> Iterable: - """Flatten arbitrarily flattened list - - From https://stackoverflow.com/a/10824420 - """ - for i in container: - if isinstance(i, (list, tuple)): - for j in flatten(i): - yield j - else: - yield i diff --git a/tools/schemapi/schemapi.py b/tools/schemapi/schemapi.py index f3e00e26a..356b6b021 100644 --- a/tools/schemapi/schemapi.py +++ b/tools/schemapi/schemapi.py @@ -42,7 +42,7 @@ else: from typing_extensions import Self -_TSchemaBase = TypeVar("_TSchemaBase", bound="SchemaBase") +_TSchemaBase = TypeVar("_TSchemaBase", bound=Type["SchemaBase"]) ValidationErrorList = List[jsonschema.exceptions.ValidationError] GroupedValidationErrors = Dict[str, ValidationErrorList] diff --git a/tools/schemapi/utils.py b/tools/schemapi/utils.py index 7a3d27408..fc504591e 100644 --- a/tools/schemapi/utils.py +++ b/tools/schemapi/utils.py @@ -2,15 +2,25 @@ import keyword import re +import subprocess import textwrap import urllib -from typing import Final, Optional, List, Dict, Any +from typing import Any, Dict, Final, Iterable, List, Optional, Union from .schemapi import _resolve_references as resolve_references - EXCLUDE_KEYS: Final = ("definitions", "title", "description", "$schema", "id") +jsonschema_to_python_types = { + "string": "str", + "number": "float", + "integer": "int", + "object": "dict", + "boolean": "bool", + "array": "list", + "null": "None", +} + def get_valid_identifier( prop: str, @@ -169,69 +179,121 @@ def title(self) -> str: else: return "" - @property - def short_description(self) -> str: + def get_python_type_representation( + self, + for_type_hints: bool = False, + altair_classes_prefix: Optional[str] = None, + ) -> str: + # This is a list of all types which can be used for the current SchemaInfo. + # This includes Altair classes, standard Python types, etc. + type_representations: List[str] = [] if self.title: - # use RST syntax for generated sphinx docs - return ":class:`{}`".format(self.title) - else: - return self.medium_description - - _simple_types: Dict[str, str] = { - "string": "string", - "number": "float", - "integer": "integer", - "object": "mapping", - "boolean": "boolean", - "array": "list", - "null": "None", - } + # Add the name of the current Altair class + if for_type_hints: + class_names = [self.title] + if self.title == "ExprRef": + # In these cases, a value parameter is also always accepted. + # We use the _Parameter to indicate this although this + # protocol would also pass for selection parameters but + # due to how the Parameter class is defined, it would be quite + # complex to further differentiate between a value and + # a selection parameter based on the type system (one could + # try to check for the type of the Parameter.param attribute + # but then we would need to write some overload signatures for + # api.param). + class_names.append("_Parameter") + if self.title == "ParameterExtent": + class_names.append("_Parameter") + + prefix = ( + "" if not altair_classes_prefix else altair_classes_prefix + "." + ) + # If there is no prefix, it might be that the class is defined + # in the same script and potentially after this line -> We use + # deferred type annotations using quotation marks. + if not prefix: + class_names = [f'"{n}"' for n in class_names] + else: + class_names = [f"{prefix}{n}" for n in class_names] + type_representations.extend(class_names) + else: + # use RST syntax for generated sphinx docs + type_representations.append(rst_syntax_for_class(self.title)) - @property - def medium_description(self) -> str: if self.is_empty(): - return "Any" + type_representations.append("Any") elif self.is_enum(): - return "enum({})".format(", ".join(map(repr, self.enum))) - elif self.is_anyOf(): - return "anyOf({})".format( - ", ".join(s.short_description for s in self.anyOf) - ) - elif self.is_oneOf(): - return "oneOf({})".format( - ", ".join(s.short_description for s in self.oneOf) + type_representations.append( + "Literal[{}]".format(", ".join(map(repr, self.enum))) ) - elif self.is_allOf(): - return "allOf({})".format( - ", ".join(s.short_description for s in self.allOf) + elif self.is_anyOf(): + type_representations.extend( + [ + s.get_python_type_representation( + for_type_hints=for_type_hints, + altair_classes_prefix=altair_classes_prefix, + ) + for s in self.anyOf + ] ) - elif self.is_not(): - return "not {}".format(self.not_.short_description) elif isinstance(self.type, list): options = [] subschema = SchemaInfo(dict(**self.schema)) for typ_ in self.type: subschema.schema["type"] = typ_ - options.append(subschema.short_description) - return "anyOf({})".format(", ".join(options)) + options.append( + subschema.get_python_type_representation( + # We always use title if possible for nested objects + for_type_hints=for_type_hints, + altair_classes_prefix=altair_classes_prefix, + ) + ) + type_representations.extend(options) elif self.is_object(): - return "Mapping(required=[{}])".format(", ".join(self.required)) + if for_type_hints: + type_representations.append("dict") + else: + type_r = "Dict" + if self.required: + type_r += "[required=[{}]]".format(", ".join(self.required)) + type_representations.append(type_r) elif self.is_array(): - return "List({})".format(self.child(self.items).short_description) - elif self.type in self._simple_types: - return self._simple_types[self.type] - elif not self.type: - import warnings - - warnings.warn( - "no short_description for schema\n{}" "".format(self.schema), - stacklevel=1, + # A list is invariant in its type parameter. This means that e.g. + # List[str] is not a subtype of List[Union[core.FieldName, str]] + # and hence we would need to explicitly write out the combinations, + # so in this case: + # List[core.FieldName], List[str], List[core.FieldName, str] + # However, this can easily explode to too many combinations. + # Furthermore, we would also need to add additional entries + # for e.g. int wherever a float is accepted which would lead to very + # long code. + # As suggested in the mypy docs, + # https://mypy.readthedocs.io/en/stable/common_issues.html#variance, + # we revert to using Sequence which works as well for lists and also + # includes tuples which are also supported by the SchemaBase.to_dict + # method. However, it is not entirely accurate as some sequences + # such as e.g. a range are not supported by SchemaBase.to_dict but + # this tradeoff seems worth it. + type_representations.append( + "Sequence[{}]".format( + self.child(self.items).get_python_type_representation( + for_type_hints=for_type_hints, + altair_classes_prefix=altair_classes_prefix, + ) + ) ) - return "any" + elif self.type in jsonschema_to_python_types: + type_representations.append(jsonschema_to_python_types[self.type]) else: - raise ValueError( - "No medium_description available for this schema for schema" - ) + raise ValueError("No Python type representation available for this schema") + + type_representations = sorted(set(flatten(type_representations))) + type_representations_str = ", ".join(type_representations) + # If it's not for_type_hints but instead for the docstrings, we don't want + # to include Union as it just clutters the docstrings. + if len(type_representations) > 1 and for_type_hints: + type_representations_str = f"Union[{type_representations_str}]" + return type_representations_str @property def properties(self) -> SchemaProperties: @@ -363,22 +425,6 @@ def is_array(self) -> bool: return self.type == "array" -def indent_arglist( - args: List[str], indent_level: int, width: int = 100, lstrip: bool = True -) -> str: - """Indent an argument list for use in generated code""" - wrapper = textwrap.TextWrapper( - width=width, - initial_indent=indent_level * " ", - subsequent_indent=indent_level * " ", - break_long_words=False, - ) - wrapped = "\n".join(wrapper.wrap(", ".join(args))) - if lstrip: - wrapped = wrapped.lstrip() - return wrapped - - def indent_docstring( lines: List[str], indent_level: int, width: int = 100, lstrip=True ) -> str: @@ -468,3 +514,34 @@ def fix_docstring_issues(docstring: str) -> str: "types#datetime", "https://vega.github.io/vega-lite/docs/datetime.html" ) return docstring + + +def rst_syntax_for_class(class_name: str) -> str: + return f":class:`{class_name}`" + + +def flatten(container: Iterable) -> Iterable: + """Flatten arbitrarily flattened list + + From https://stackoverflow.com/a/10824420 + """ + for i in container: + if isinstance(i, (list, tuple)): + for j in flatten(i): + yield j + else: + yield i + + +def ruff_format_str(code: Union[str, List[str]]) -> str: + if isinstance(code, list): + code = "\n".join(code) + + r = subprocess.run( + # Name of the file does not seem to matter but ruff requires one + ["ruff", "format", "--stdin-filename", "placeholder.py"], + input=code.encode(), + check=True, + capture_output=True, + ) + return r.stdout.decode() diff --git a/tools/update_init_file.py b/tools/update_init_file.py index e15f607a7..2f537da51 100644 --- a/tools/update_init_file.py +++ b/tools/update_init_file.py @@ -4,20 +4,34 @@ """ import inspect import sys -import subprocess -from pathlib import Path from os.path import abspath, dirname, join -from typing import TypeVar, Type, cast, List, Any, Optional, Iterable, Union, IO +from pathlib import Path +from typing import ( + IO, + Any, + Iterable, + List, + Optional, + Protocol, + Sequence, + Type, + TypeVar, + Union, + cast, +) if sys.version_info >= (3, 11): from typing import Self else: from typing_extensions import Self -from typing import Literal, Final +from typing import Final, Literal -# Import Altair from head ROOT_DIR: Final = abspath(join(dirname(__file__), "..")) +sys.path.insert(0, abspath(dirname(__file__))) +from schemapi.utils import ruff_format_str # noqa: E402 + +# Import Altair from head sys.path.insert(0, ROOT_DIR) import altair as alt # noqa: E402 @@ -64,17 +78,6 @@ def update__all__variable() -> None: f.write(new_file_content) -def ruff_format_str(code: str) -> str: - r = subprocess.run( - # Name of the file does not seem to matter but ruff requires one - ["ruff", "format", "--stdin-filename", "placeholder.py"], - input=code.encode(), - check=True, - capture_output=True, - ) - return r.stdout.decode() - - def _is_relevant_attribute(attr_name: str) -> bool: attr = getattr(alt, attr_name) if ( @@ -90,8 +93,12 @@ def _is_relevant_attribute(attr_name: str) -> bool: or attr is Optional or attr is Iterable or attr is Union + or attr is Protocol + or attr is Sequence or attr is IO or attr_name == "TypingDict" + or attr_name == "TypingGenerator" + or attr_name == "ValueOrDatum" ): return False else: