
    dM                    t   d dl Z ddlmZ d dlZd dlmZmZ d dlm	Z	 d dl
mZmZ e j        dk    rd dl
mZ nd dlmZ  G d	 d
          Z G d d          Z G d d          Ze G d deej                              Ze G d deej                              Ze G d deej                              Ze G d deej                              Ze G d deej                              Ze G d deej                              Ze G d deej                              Z e G d deej!                              Z"e G d d eej#                              Z$e G d! d"eej%                              Z&e G d# d$eej'                              Z(e G d% d&eej                              Z)e G d' d(eej                              Z*e G d) d*eej                              Z+e G d+ d,eej                              Z,e G d- d.eej                              Z-e G d/ d0eej                              Z.e G d1 d2eej!                              Z/e G d3 d4eej#                              Z0e G d5 d6eej%                              Z1e G d7 d8eej2                              Z3e G d9 d:eej4                              Z5e G d; d<eej6                              Z7e G d= d>eej4                              Z8e G d? d@eej9                              Z:e G dA dBeej2                              Z;e G dC dDeej4                              Z<e G dE dFeej6                              Z=e G dG dHeej4                              Z>e G dI dJeej9                              Z?e G dK dLeej                              Z@e G dM dNeej                              ZAe G dO dPeej                              ZBe G dQ dReejC                              ZDe G dS dTeejE                              ZFe G dU dVeejG                              ZHe G dW dXeejI                              ZJe G dY dZeej9                              ZKe G d[ d\eej6                              ZLe G d] d^eej4                              ZMe G d_ d`eej9                              ZNe G da dbeej                              ZOe G dc ddeejP                              ZQe G de dfeejR                              ZSe G dg dheejT                              ZUe G di djeej                              ZVe G dk dleej                              ZWe G dm dneej                              ZXe G do dpeej                              ZYe G dq dreej                              ZZe G ds dteej                              Z[e G du dveej\                              Z]e G dw dxeej^                              Z_e G dy dzeej`                              Zae G d{ d|eej                              Zbe G d} d~eej                              Zce G d deej                              Zde G d deej                              Zee G d deej                              Zfe G d deej                              Zge G d deejh                              Zie G d deejj                              Zke G d deejl                              Zme G d deejG                              Zne G d deejI                              Zoe G d deej9                              Zpe G d deej6                              Zqe G d deej4                              Zre G d deej9                              Zse G d deej!                              Zte G d deej#                              Zue G d deej!                              Zve G d deej#                              Zwe G d deejx                              Zye G d deejz                              Z{e G d deej9                              Z|e G d deej6                              Z}e G d deej4                              Z~e G d deej9                              Ze G d deej6                              Ze G d deej                              Ze G d deej6                              Ze G d deej                              Ze G d deej                              Ze G d deej                              Ze G d deej                              Ze G d deejx                              Ze G d deejz                              Ze G d deej9                              Ze G d deej6                              Ze G dÄ deej4                              Ze G dń deej9                              Ze G dǄ deej6                              Ze G dɄ deej                              Ze G d˄ deej6                              Ze G d̈́ deej                              Ze G dτ deej                              Ze G dф deej                              Ze G dӄ deej                              ZdS )    N   )core)	Undefinedwith_property_setters)parse_shorthand)overloadList)      )Literalc                         e Zd Zd fd	Z xZS )FieldChannelMixinT Nc                    
 pi                       d          }                      d          }|t          ur7|t          ur.t          d                     j        j        ||                    t          |t          t          f          r@ j	        
                                

                    d           
 fd|D             S |t          u ri }nt          |t                    rt          |                    dd                     }d j	        v }d|v }                      d          t          u}	|s|                    dd            n{|st|	srt                              dd           t          j                  r"t          d                    |                    t          d	                    |                    nd|i}|d
<   t#          t$                                                   S )N	shorthandfieldz-{} specifies both shorthand={} and field={}. c                 X    g | ]&} j         |fi                                'S )validateignorecontext)	__class__to_dict).0shr   r   kwdsselfr   s     Blib/python3.11/site-packages/altair/vegalite/v5/schema/channels.py
<listcomp>z-FieldChannelMixin.to_dict.<locals>.<listcomp>   sT     ) ) ) #DN2....66QWah6ii ) ) )    data)r!   typezUnable 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.z{} encoding field is specified without a type; the type cannot be automatically inferred because the data is not specified as a pandas.DataFrame.parsed_shorthandr   )_getr   
ValueErrorformatr   __name__
isinstancetuplelist_kwdscopypopstrr   getpd	DataFramesuperr   r   )r   r   r   r   r   r   parsedtype_requiredtype_in_shorthandtype_defined_explicitlyr   r   s   ````      @r   r   zFieldChannelMixin.to_dict   sU   -RIIk**			'""I%%%y*@*@   &t~'>	5 Q QS S S i%// 	):??$$DHH[!!!) ) ) ) ) ) ) )') ) ) ) 	!!FF	3'' 	*$YW[[5N5NOOOF"dj0M && 0&*ii&7&7y&H#  ; 

64((((' ;+B ;gkk&$77FF ;$S TZSYZcSdSd	   % &( )/y(9(9; ; ; y)F&,"#&--55 6 
 
 	
r    Tr   Nr'   
__module____qualname__r   __classcell__r   s   @r   r   r      s=        2
 2
 2
 2
 2
 2
 2
 2
 2
 2
r    r   c                         e Zd Zd fd	Z xZS )ValueChannelMixinTr   Nc                    |pi }|                      dt                    }| }|t          urt          |t          j                  rndd|v r`d|vr\t          |d         |                    dd                     }|                     dg          }|d                             |           t          t          |                              |||          S )N	conditionr   r"   r!   )deepr   )r$   r   r(   r   
SchemaBaser   r/   r,   updater2   r>   r   )r   r   r   r   r@   r,   r   r   s          r   r   zValueChannelMixin.to_dictH   s    -RIIk955	I%%)T_55 /I%%&	*A*A&y'97;;vt;T;TUUyy{my44[!((...&--55x=C>E 6 G G 	Gr    r7   r8   r<   s   @r   r>   r>   G   sG        G G G G G G G G G Gr    r>   c                         e Zd Zd fd	Z xZS )DatumChannelMixinTr   Nc                     |pi }|                      dt                    }| }|t          urt          |t          j                  r	 t          t          |                              |||          S )Ndatumr   )r$   r   r(   r   rB   r2   rE   r   )r   r   r   r   rG   r,   r   s         r   r   zDatumChannelMixin.to_dictY   sy    -R		'9--	!!%11 &--55x=C>E 6 G G 	Gr    r7   r8   r<   s   @r   rE   rE   X   sG        	G 	G 	G 	G 	G 	G 	G 	G 	G 	Gr    rE   c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Angleaz/  Angle 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fangle_averagecountdistinctmaxmeanmedianminmissingproductq1q3ci0ci1stderrstdevstdevpsumvalidvaluesvariance	variancepreturnc                     d S Nr   r   rK   r   s      r   	aggregatezAngle.aggregateJ      r    c                     d S rd   r   r   argmaxr   s      r   rf   zAngle.aggregateN  rg   r    c                     d S rd   r   r   argminr   s      r   rf   zAngle.aggregateR  rg   r    c                     d S rd   r   re   s      r   bandPositionzAngle.bandPositionV      r    c                     d S rd   r   re   s      r   binz	Angle.binY  rg   r    c                     d S rd   r   r   anchorbasebinneddivideextentmaxbinsminstepnicestepstepsr   s               r   rr   z	Angle.bin]  rg   r    Nc                     d S rd   r   re   s      r   rr   z	Angle.bina  rg   r    c                     d S rd   r   r   testvaluer   s       r   r@   zAngle.conditione  rg   r    c                     d S rd   r   r   emptyparamr   r   s        r   r@   zAngle.conditioni  rg   r    c                     d S rd   r   re   s      r   r@   zAngle.conditionm  rg   r    c                     d S rd   r   re   s      r   r   zAngle.fieldq  rg   r    c                     d S rd   r   r   repeatr   s      r   r   zAngle.fieldu  rg   r    cC                     d S rd   r   Dr   aria
clipHeightcolumnPaddingcolumnscornerRadiusdescription	direction	fillColorr&   
formatTypegradientLengthgradientOpacitygradientStrokeColorgradientStrokeWidthgradientThickness	gridAlign
labelAlignlabelBaseline
labelColor	labelExpr	labelFontlabelFontSizelabelFontStylelabelFontWeight
labelLimitlabelOffsetlabelOpacitylabelOverlaplabelPaddinglabelSeparationlegendXlegendYoffsetorientpadding
rowPaddingstrokeColor
symbolDashsymbolDashOffsetsymbolFillColorsymbolLimitsymbolOffsetsymbolOpacity
symbolSizesymbolStrokeColorsymbolStrokeWidth
symbolType	tickCounttickMinSteptitle
titleAligntitleAnchortitleBaseline
titleColor	titleFonttitleFontSizetitleFontStyletitleFontWeight
titleLimittitleLineHeighttitleOpacitytitleOrienttitlePaddingr"   r_   zindexr   sD                                                                       r   legendzAngle.legendy  rg   r    c                     d S rd   r   re   s      r   r   zAngle.legend}  rg   r    c                     d S rd   r   r   alignrv   binsclampconstantdomain	domainMax	domainMid	domainMinexponentinterpolater|   r   paddingInnerpaddingOuterrangerangeMaxrangeMinreverseroundschemer"   zeror   s                            r   scalezAngle.scale  rg   r    c                     d S rd   r   re   s      r   r   zAngle.scale  rg   r    c                     d S rd   r   re   s      r   sortz
Angle.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    	ascending
descendingc                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    xycolorfillstrokestrokeWidthsizeshapefillOpacitystrokeOpacityopacitytextc                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    z-xz-yz-colorz-fillz-strokez-strokeWidthz-sizez-shapez-fillOpacityz-strokeOpacityz-opacityz-textc                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    c                     d S rd   r   r   r   oporderr   s        r   r   z
Angle.sort  rg   r    c                     d S rd   r   r   encodingr  r   s       r   r   z
Angle.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Angle.sort  rg   r    yearquartermonthweekday	dayofyeardatehoursminutessecondsmillisecondsc                     d S rd   r   re   s      r   timeUnitzAngle.timeUnit  rg   r    utcyear
utcquarterutcmonthutcweekutcdayutcdayofyearutcdateutchours
utcminutes
utcsecondsutcmillisecondsc                     d S rd   r   re   s      r   r  zAngle.timeUnit  rg   r    yearquarteryearquartermonth	yearmonthyearmonthdateyearmonthdatehoursyearmonthdatehoursminutes yearmonthdatehoursminutessecondsyearweekyearweekdayyearweekdayhoursyearweekdayhoursminutesyearweekdayhoursminutessecondsyeardayofyearquartermonth	monthdatemonthdatehoursmonthdatehoursminutesmonthdatehoursminutessecondsweekdayweeksdayhoursweekdayhoursminutesweekdayhoursminutessecondsdayhoursdayhoursminutesdayhoursminutessecondshoursminuteshoursminutessecondsminutessecondssecondsmillisecondsc                     d S rd   r   re   s      r   r  zAngle.timeUnit  rg   r    utcyearquarterutcyearquartermonthutcyearmonthutcyearmonthdateutcyearmonthdatehoursutcyearmonthdatehoursminutes#utcyearmonthdatehoursminutessecondsutcyearweekutcyearweekdayutcyearweekdayhoursutcyearweekdayhoursminutes!utcyearweekdayhoursminutessecondsutcyeardayofyearutcquartermonthutcmonthdateutcmonthdatehoursutcmonthdatehoursminutesutcmonthdatehoursminutesseconds
utcweekdayutcweeksdayhoursutcweekdayhoursminutesutcweekdayhoursminutessecondsutcdayhoursutcdayhoursminutesutcdayhoursminutessecondsutchoursminutesutchoursminutessecondsutcminutessecondsutcsecondsmillisecondsc                     d S rd   r   re   s      r   r  zAngle.timeUnit  rg   r    c                     d S rd   r   r   rz   r}   unitutcr   s         r   r  zAngle.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zAngle.title  rg   r    c                     d S rd   r   re   s      r   r   zAngle.title  rg   r    c                     d S rd   r   re   s      r   r   zAngle.title  rg   r    quantitativeordinaltemporalnominalc                     d S rd   r   re   s      r   r"   z
Angle.type  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S N)r   rf   ro   rr   r@   r   r   r   r   r  r   r"   r   )r2   rI   __init__r   r   rf   ro   rr   r@   r   r   r   r   r  r   r"   r   r   s                 r   rp  zAngle.__init__  b     	$eT# 	,i9[g(+yV\*/dXUZae	, 	, '+	, 	, 	, 	, 	,r    )rb   rI   )rK   Nrb   rI   r'   r9   r:   __doc__ _class_is_valid_at_instantiation_encoding_namer   r   rf   r   floatro   boolrr   r@   r	   r    ConditionalValueDefnumberExprRefr.   r   r   r   r   DateTimer  r   r"   rp  r;   r<   s   @r   rI   rI   e   s3	       _ _@ (-$N7  $b  c   pw    X (     X (     Xe      T g    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 EF SZ    X s w    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k g    X d3i G    X d4j W    X d4=) g    X g78 W    X g  U  V   cj    X g  a  b   ov    X "y	     X %Y     X    X '  #P  Q   ^e    X '  #q  r   F    X '  #x	  y	   F
M
    X '  #O  P   ]d    X (yyi     X s w    X tCy W    X    XgNO \c     "+ii]f$Iiy)99, , , , , , , , , ,r    rI   c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )
AngleDatumag  AngleDatum 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:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FrJ   rK   rb   c                     d S rd   r   re   s      r   ro   zAngleDatum.bandPositionQ  rp   r    c                     d S rd   r   r   s       r   r@   zAngleDatum.conditionT  rg   r    c                     d S rd   r   r   s        r   r@   zAngleDatum.conditionX  rg   r    c                     d S rd   r   re   s      r   r@   zAngleDatum.condition\  rg   r    c                     d S rd   r   re   s      r   r   zAngleDatum.title`  rg   r    c                     d S rd   r   re   s      r   r   zAngleDatum.titled  rg   r    Nc                     d S rd   r   re   s      r   r   zAngleDatum.titleh  rg   r    ri  rj  rk  rl  geojsonc                     d S rd   r   re   s      r   r"   zAngleDatum.typel  rp   r    c           	      T     t          t          |           j        d|||||d| d S N)rG   ro   r@   r   r"   r   )r2   r|  rp  r   rG   ro   r@   r   r"   r   r   s          r   rp  zAngleDatum.__init__p  T    (j$( 	Iu<[d/44	I 	ICG	I 	I 	I 	I 	Ir    )rb   r|  )rK   Nrb   r|  r'   r9   r:   rt  ru  rv  rw  ro   r   r   r@   r	   r   ry  r.   r   r   r"   rp  r;   r<   s   @r   r|  r|    s       m m\ (-$Ne      &i     X 'y	     X 4 EF S_    X s |    X tCy \    X    XgYZ gs     ,5	QZI I I I I I I I I Ir    r|  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )
AngleValuead  AngleValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    FrJ   rb   c                     d S rd   r   r   rf   ro   rr   r   r   r   r   r   r  r   r"   r   s                r   r@   zAngleValue.condition  rg   r    c                     d S rd   r   	r   ro   rG   r   r   r   r   r"   r   s	            r   r@   zAngleValue.condition  rg   r    c                     d S rd   r   r   rf   ro   rr   r   r   r   r   r   r   r  r   r"   r   s                 r   r@   zAngleValue.condition  rg   r    c	                     d S rd   r   
r   ro   rG   r   r   r   r   r   r"   r   s
             r   r@   zAngleValue.condition  rg   r    c                     d S rd   r   r   s       r   r@   zAngleValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zAngleValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zAngleValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S N)r   r@   r   )r2   r  rp  r   r   r@   r   r   s       r   rp  zAngleValue.__init__  3    (j$(Ru	RRTRRRRRr    )rb   r  r'   r9   r:   rt  ru  rv  r   r   r@   r	   r   ry  rp  r;   r<   s   @r   r  r  v  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 EF S_    X )2 S S S S S S S S S Sr    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Colora/  Color 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zColor.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zColor.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zColor.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zColor.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   z	Color.bin  rg   r    c                     d S rd   r   rt   s               r   rr   z	Color.bin  rg   r    Nc                     d S rd   r   re   s      r   rr   z	Color.bin  rg   r    c                     d S rd   r   r   s       r   r@   zColor.condition  rg   r    c                     d S rd   r   r   s        r   r@   zColor.condition  rg   r    c                     d S rd   r   re   s      r   r@   zColor.condition  rg   r    c                     d S rd   r   re   s      r   r   zColor.field  rg   r    c                     d S rd   r   r   s      r   r   zColor.field  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zColor.legend  rg   r    c                     d S rd   r   re   s      r   r   zColor.legend  rg   r    c                     d S rd   r   r   s                            r   r   zColor.scale  rg   r    c                     d S rd   r   re   s      r   r   zColor.scale  rg   r    c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    r   c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    r   c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    r   c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    c                     d S rd   r   r  s        r   r   z
Color.sort  rg   r    c                     d S rd   r   r  s       r   r   z
Color.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Color.sort  rg   r    r  c                     d S rd   r   re   s      r   r  zColor.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zColor.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zColor.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zColor.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zColor.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zColor.title
  rg   r    c                     d S rd   r   re   s      r   r   zColor.title  rg   r    c                     d S rd   r   re   s      r   r   zColor.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   z
Color.type  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zColor.__init__  rr  r    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r@   r	   r   ,ConditionalValueDefGradientstringnullExprRefr.   r   r   r   r   rz  r  r   r"   rp  r;   r<   s   @r   r  r    s3	       _ _@ (-$N7  $b  c   pw    X (     X (     Xe      T g    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 QR _f    X s w    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k g    X d3i G    X d4j W    X d4=) g    X g78 W    X g  U  V   cj    X g  a  b   ov    X "y	     X %Y     X    X '  #P  Q   ^e    X '  #q  r   F    X '  #x	  y	   F
M
    X '  #O  P   ]d    X (yyi     X s w    X tCy W    X    XgNO \c     "+ii]f$Iiy)99, , , , , , , , , ,r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )
ColorDatuma  ColorDatum 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:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zColorDatum.bandPosition  rp   r    c                     d S rd   r   r   s       r   r@   zColorDatum.condition  rg   r    c                     d S rd   r   r   s        r   r@   zColorDatum.condition  rg   r    c                     d S rd   r   re   s      r   r@   zColorDatum.condition  rg   r    c                     d S rd   r   re   s      r   r   zColorDatum.title  rg   r    c                     d S rd   r   re   s      r   r   zColorDatum.title  rg   r    Nc                     d S rd   r   re   s      r   r   zColorDatum.title  rg   r    r  c                     d S rd   r   re   s      r   r"   zColorDatum.type  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zColorDatum.__init__  r  r    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  rw  ro   r   r   r@   r	   r   r  r.   r   r   r"   rp  r;   r<   s   @r   r  r  #  s       m m\ (-$Ne      &i     X 'y	     X 4 QR _k    X s |    X tCy \    X    XgYZ gs     ,5	QZI I I I I I I I I Ir    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )
ColorValuea  ColorValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zColorValue.condition  rg   r    c                     d S rd   r   r  s	            r   r@   zColorValue.condition  rg   r    c                     d S rd   r   r  s                 r   r@   zColorValue.condition  rg   r    c	                     d S rd   r   r  s
             r   r@   zColorValue.condition  rg   r    c                     d S rd   r   r   s       r   r@   zColorValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zColorValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zColorValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zColorValue.__init__  r  r    )rb   r  r'   r9   r:   rt  ru  rv  r   r   r@   r	   r   r  rp  r;   r<   s   @r   r  r    s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 QR _k    X )2 S S S S S S S S S Sr    r  c            !       z    e Zd ZdZdZdZeded         dd fd            Zee	fd.d            Zee	fd.d	            Zded
         dd fdZ
dedd fdZededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d.d            Zed/d            Zdedd fdZededd fd            Zee	fd.d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	f d.d            Zed/d            Zedee         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zee	e	e	fd.d            Zed/d            Zdedd fdZeded         dd fd             Zeded!         dd fd"            Zeded#         dd fd$            Zeded%         dd fd&            Zee	e	e	e	fd.d'            Zededd fd(            Zedee         dd fd)            Zed/d*            Zded+         dd fd,Ze	e	e	e	e	e	e	e	e	e	e	e	e	f fd-	Z xZS )0Columna+  Column 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    align : :class:`LayoutAlign`
        The alignment to apply to row/column facet's subplot. The supported string values
        are ``"all"``, ``"each"``, and ``"none"``.


        * For ``"none"``, a flow layout will be used, in which adjacent subviews are simply
          placed one after the other.
        * For ``"each"``, subviews will be aligned into a clean grid structure, but each row
          or column may be of variable size.
        * For ``"all"``, subviews will be aligned and each row or column will be sized
          identically based on the maximum observed size. String values for this property
          will be applied to both grid rows and columns.

        **Default value:** ``"all"``.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    center : boolean
        Boolean flag indicating if facet's subviews should be centered relative to their
        respective rows or columns.

        **Default value:** ``false``
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    header : anyOf(:class:`Header`, None)
        An object defining properties of a facet's header.
    sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None)
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` is not supported for ``row`` and ``column``.
    spacing : float
        The spacing in pixels between facet's sub-views.

        **Default value** : Depends on ``"spacing"`` property of `the view composition
        configuration <https://vega.github.io/vega-lite/docs/config.html#view-config>`__ (
        ``20`` by default)
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FcolumnrK   rL   rb   c                     d S rd   r   re   s      r   rf   zColumn.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zColumn.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zColumn.aggregate  rg   r    alleachnonec                     d S rd   r   re   s      r   r   zColumn.align  rp   r    c                     d S rd   r   re   s      r   ro   zColumn.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   z
Column.bin  rg   r    c                     d S rd   r   rt   s               r   rr   z
Column.bin  rg   r    Nc                     d S rd   r   re   s      r   rr   z
Column.bin  rg   r    c                     d S rd   r   re   s      r   centerzColumn.center  rp   r    c                     d S rd   r   re   s      r   r   zColumn.field  rg   r    c                     d S rd   r   r   s      r   r   zColumn.field  rg   r    c!                     d S rd   r   "r   r&   r   r   labelAnchor
labelAngler   r   r   r   r   r   r   r   labelLineHeightlabelOrientr   labelsr   r   r   r   
titleAngler   r   r   r   r   r   r   r   r   r   r   s"                                     r   headerzColumn.header  rg   r    c                     d S rd   r   re   s      r   r  zColumn.header  rg   r    c                     d S rd   r   re   s      r   r   zColumn.sort  rg   r    c                     d S rd   r   re   s      r   r   zColumn.sort  rg   r    c                     d S rd   r   re   s      r   r   zColumn.sort  rg   r    c                     d S rd   r   re   s      r   r   zColumn.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zColumn.sort  rg   r    c                     d S rd   r   r  s        r   r   zColumn.sort  rg   r    c                     d S rd   r   re   s      r   r   zColumn.sort  rg   r    c                     d S rd   r   re   s      r   spacingzColumn.spacing  rp   r    r  c                     d S rd   r   re   s      r   r  zColumn.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zColumn.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zColumn.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zColumn.timeUnit"  rg   r    c                     d S rd   r   rb  s         r   r  zColumn.timeUnit&  rg   r    c                     d S rd   r   re   s      r   r   zColumn.title*  rg   r    c                     d S rd   r   re   s      r   r   zColumn.title.  rg   r    c                     d S rd   r   re   s      r   r   zColumn.title2  rg   r    rh  c                     d S rd   r   re   s      r   r"   zColumn.type6  rp   r    c                 d     t          t          |           j        d|||||||||	|
|||d| d S N)r   rf   r   ro   rr   r  r   r  r   r  r  r   r"   r   )r2   r  rp  r   r   rf   r   ro   rr   r  r   r  r   r  r  r   r"   r   r   s                  r   rp  zColumn.__init__:  so     	%fd$ 	EyIUZ2>CPV^c,2wYa+0t	E 	E @D	E 	E 	E 	E 	Er    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  r   r   rf   r   r   rw  ro   rx  rr   r  r.   r   r  r	   r   r   rz  r  r  r   r"   rp  r;   r<   s   @r   r  r    s       Q Qd (-$N7  $b  c   px    X (     X (     Xw45 (    e      T h    X "9Y_hr{  FO  V_  fo  w@     X    X      s x    X $     X %)	_hu~  OX  en  zC  OX  hq  BK  ]f  s|  NW  en  }F  OX  aj  r{  HQ  _h  u~  NW  dm  yB	  R	[	  l	u	  G
P
  ]
f
  x
A  OX  gp     X    X d5k h    X d3i H    X d4j X    X d4=) h    X g78 X    X "y	     X    X 8     '  #P  Q   ^f    X '  #q  r   G    X '  #x	  y	   F
N
    X '  #O  P   ]e    X (yyi     X s x    X tCy X    X    XgNO \d     "+iy'YyPY!	9y yE E E E E E E E E Er    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd'd            Zee	fd'd	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d'd            Zededd fd            Zed(d            Zee	e	fd'd            Zee	e	e	fd'd            Zedeej                 dd fd            Zededd fd            Zee	fd'd            Zededd fd            Zededd fd            Zdedd fdZeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd'd             Zededd fd!            Zedee         dd fd"            Zed(d#            Zded$         dd fd%Ze	e	e	e	e	e	e	e	e	e	e	f fd&	Z xZS ))Descriptiona)  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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    format : anyOf(string, :class:`Dict`)
        When used with the default ``"number"`` and ``"time"`` format type, the text
        formatting pattern for labels of guides (axes, legends, headers) and text marks.


        * If the format type is ``"number"`` (e.g., for quantitative fields), this is D3's
          `number format pattern <https://github.com/d3/d3-format#locale_format>`__.
        * If the format type is ``"time"`` (e.g., for temporal fields), this is D3's `time
          format pattern <https://github.com/d3/d3-time-format#locale_format>`__.

        See the `format documentation <https://vega.github.io/vega-lite/docs/format.html>`__
        for more examples.

        When used with a `custom formatType
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__, this
        value will be passed as ``format`` alongside ``datum.value`` to the registered
        function.

        **Default value:**  Derived from `numberFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for number
        format and from `timeFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for time
        format.
    formatType : string
        The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom
        format type
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__.

        **Default value:**


        * ``"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:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zDescription.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zDescription.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zDescription.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zDescription.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   zDescription.bin  rg   r    c                     d S rd   r   rt   s               r   rr   zDescription.bin!  rg   r    c                     d S rd   r   re   s      r   rr   zDescription.bin%  rg   r    Nc                     d S rd   r   re   s      r   rr   zDescription.bin)  rg   r    c                     d S rd   r   r   s       r   r@   zDescription.condition-  rg   r    c                     d S rd   r   r   s        r   r@   zDescription.condition1  rg   r    c                     d S rd   r   re   s      r   r@   zDescription.condition5  rg   r    c                     d S rd   r   re   s      r   r   zDescription.field9  rg   r    c                     d S rd   r   r   s      r   r   zDescription.field=  rg   r    c                     d S rd   r   re   s      r   r&   zDescription.formatA  rg   r    c                     d S rd   r   re   s      r   r&   zDescription.formatE  rg   r    c                     d S rd   r   re   s      r   r   zDescription.formatTypeI  rp   r    r  c                     d S rd   r   re   s      r   r  zDescription.timeUnitL  rg   r    r  c                     d S rd   r   re   s      r   r  zDescription.timeUnitP  rg   r    r#  c                     d S rd   r   re   s      r   r  zDescription.timeUnitT  rg   r    rB  c                     d S rd   r   re   s      r   r  zDescription.timeUnitX  rg   r    c                     d S rd   r   rb  s         r   r  zDescription.timeUnit\  rg   r    c                     d S rd   r   re   s      r   r   zDescription.title`  rg   r    c                     d S rd   r   re   s      r   r   zDescription.titled  rg   r    c                     d S rd   r   re   s      r   r   zDescription.titleh  rg   r    rh  c                     d S rd   r   re   s      r   r"   zDescription.typel  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S N)r   rf   ro   rr   r@   r   r&   r   r  r   r"   r   )r2   r  rp  r   r   rf   ro   rr   r@   r   r&   r   r  r   r"   r   r   s                r   rp  zDescription.__init__p  si     	*k4  ) 	]I7CXa05fQ[3;5t	] 	] X\	] 	] 	] 	] 	]r    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r.   r@   r	   r    ConditionalValueDefstringExprRefr   r&   dictr   r  r   r"   rp  r;   r<   s   @r   r  r  D  s-       D DJ (-$"N7  $b  c   p}    X (     X (     Xe      T m    X "9Y_hr{  FO  V_  fo  w@     X S ]    X    X &i     X 'y	     X 4 EF S`    X s }    X $     X      X      XC M     '  #P  Q   ^k    X '  #q  r   L    X '  #x	  y	   F
S
    X '  #O  P   ]j    X (yyi     X s }    X tCy ]    X    XgNO \i     "+ii]f$IiT]#99] ] ] ] ] ] ] ] ] ]r    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )DescriptionValueay  DescriptionValue 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 <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zDescriptionValue.condition  rg   r    c                     d S rd   r   r  s	            r   r@   zDescriptionValue.condition  rg   r    c                     d S rd   r   r  s                 r   r@   zDescriptionValue.condition  rg   r    c	                     d S rd   r   r  s
             r   r@   zDescriptionValue.condition  rg   r    c                     d S rd   r   r   s       r   r@   zDescriptionValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zDescriptionValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zDescriptionValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r2  rp  r  s       r   rp  zDescriptionValue.__init__  5    .%%.XUiXXSWXXXXXr    )rb   r2  r'   r9   r:   rt  ru  rv  r   r   r@   r	   r   $ConditionalValueDefstringnullExprRefrp  r;   r<   s   @r   r2  r2  y  s4         (-$"N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 IJ Wi    X )2 Y Y Y Y Y Y Y Y Y Yr    r2  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd!d            Zee	fd!d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d!d            Zededd fd            Zed"d            Zededd fd            Zee	fd!d            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd!d            Zededd fd            Zedee         dd fd            Zed"d            Zded         dd fdZe	e	e	e	e	e	e	e	f fd 	Z xZS )#Detailau!  Detail schema wrapper

    Mapping(required=[shorthand])
    Definition object for a data field, its type and transformation of an encoding channel.

    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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FdetailrK   rL   rb   c                     d S rd   r   re   s      r   rf   zDetail.aggregateO  rg   r    c                     d S rd   r   ri   s      r   rf   zDetail.aggregateS  rg   r    c                     d S rd   r   rl   s      r   rf   zDetail.aggregateW  rg   r    c                     d S rd   r   re   s      r   ro   zDetail.bandPosition[  rp   r    c                     d S rd   r   re   s      r   rr   z
Detail.bin^  rg   r    c                     d S rd   r   rt   s               r   rr   z
Detail.binb  rg   r    c                     d S rd   r   re   s      r   rr   z
Detail.binf  rg   r    Nc                     d S rd   r   re   s      r   rr   z
Detail.binj  rg   r    c                     d S rd   r   re   s      r   r   zDetail.fieldn  rg   r    c                     d S rd   r   r   s      r   r   zDetail.fieldr  rg   r    r  c                     d S rd   r   re   s      r   r  zDetail.timeUnitv  rg   r    r  c                     d S rd   r   re   s      r   r  zDetail.timeUnitz  rg   r    r#  c                     d S rd   r   re   s      r   r  zDetail.timeUnit~  rg   r    rB  c                     d S rd   r   re   s      r   r  zDetail.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zDetail.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zDetail.title  rg   r    c                     d S rd   r   re   s      r   r   zDetail.title  rg   r    c                     d S rd   r   re   s      r   r   zDetail.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   zDetail.type  rp   r    c	                 Z     t          t          |           j        d||||||||d|	 d S N)r   rf   ro   rr   r   r  r   r"   r   )r2   r?  rp  r   r   rf   ro   rr   r   r  r   r"   r   r   s             r   rp  zDetail.__init__  s[    $fd$ 	EyI2>Cu_g+0t	E 	E?C	E 	E 	E 	E 	Er    )rb   r?  )rK   Nrb   r?  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r.   r   r  r   r	   r"   rp  r;   r<   s   @r   r?  r?    s       \ \z (-$N7  $b  c   px    X (     X (     Xe      T h    X "9Y_hr{  FO  V_  fo  w@     X S X    X    X s x    X $     X '  #P  Q   ^f    X '  #q  r   G    X '  #x	  y	   F
N
    X '  #O  P   ]e    X (yyi     X s x    X tCy X    X    XgNO \d     "+ii]f 9IIE E E E E E E E E Er    r?  c            !       4    e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zeded
         dd fd            Z
ee	e	fd4d            Z
dedd fdZededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zded         dd fdZededd fd            Zee	e	fd4d            Zdedd fdZededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	f d4d            Zed5d            Zedee         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd             Zee	e	e	fd4d!            Zed5d"            Zededd fd#            Zee	e	fd4d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Faceta3  Facet 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    align : anyOf(:class:`LayoutAlign`, :class:`RowColLayoutAlign`)
        The alignment to apply to grid rows and columns. The supported string values are
        ``"all"``, ``"each"``, and ``"none"``.


        * For ``"none"``, a flow layout will be used, in which adjacent subviews are simply
          placed one after the other.
        * For ``"each"``, subviews will be aligned into a clean grid structure, but each row
          or column may be of variable size.
        * For ``"all"``, subviews will be aligned and each row or column will be sized
          identically based on the maximum observed size. String values for this property
          will be applied to both grid rows and columns.

        Alternatively, an object value of the form ``{"row": string, "column": string}`` can
        be used to supply different alignments for rows and columns.

        **Default value:** ``"all"``.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    bounds : enum('full', 'flush')
        The bounds calculation method to use for determining the extent of a sub-plot. One
        of ``full`` (the default) or ``flush``.


        * If set to ``full``, the entire calculated bounds (including axes, title, and
          legend) will be used.
        * If set to ``flush``, only the specified width and height values for the sub-view
          will be used. The ``flush`` setting can be useful when attempting to place
          sub-plots without axes or legends into a uniform grid structure.

        **Default value:** ``"full"``
    center : anyOf(boolean, :class:`RowColboolean`)
        Boolean flag indicating if subviews should be centered relative to their respective
        rows or columns.

        An object value of the form ``{"row": boolean, "column": boolean}`` can be used to
        supply different centering values for rows and columns.

        **Default value:** ``false``
    columns : float
        The number of columns to include in the view composition layout.

        **Default value** : ``undefined`` -- An infinite number of columns (a single row)
        will be assumed. This is equivalent to ``hconcat`` (for ``concat`` ) and to using
        the ``column`` channel (for ``facet`` and ``repeat`` ).

        **Note** :

        1) This property is only for:


        * the general (wrappable) ``concat`` operator (not ``hconcat`` / ``vconcat`` )
        * the ``facet`` and ``repeat`` operator with one field/repetition definition
          (without row/column nesting)

        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`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    header : anyOf(:class:`Header`, None)
        An object defining properties of a facet's header.
    sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None)
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` is not supported for ``row`` and ``column``.
    spacing : anyOf(float, :class:`RowColnumber`)
        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.

        **Default value** : Depends on ``"spacing"`` property of `the view composition
        configuration <https://vega.github.io/vega-lite/docs/config.html#view-config>`__ (
        ``20`` by default)
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FfacetrK   rL   rb   c                     d S rd   r   re   s      r   rf   zFacet.aggregate	  rg   r    c                     d S rd   r   ri   s      r   rf   zFacet.aggregate	  rg   r    c                     d S rd   r   rl   s      r   rf   zFacet.aggregate	  rg   r    r  c                     d S rd   r   re   s      r   r   zFacet.align	  rg   r    c                     d S rd   r   r   r  rowr   s       r   r   zFacet.align	  rg   r    c                     d S rd   r   re   s      r   ro   zFacet.bandPosition	  rp   r    c                     d S rd   r   re   s      r   rr   z	Facet.bin	  rg   r    c                     d S rd   r   rt   s               r   rr   z	Facet.bin	  rg   r    Nc                     d S rd   r   re   s      r   rr   z	Facet.bin	  rg   r    )fullflushc                     d S rd   r   re   s      r   boundszFacet.bounds	  rp   r    c                     d S rd   r   re   s      r   r  zFacet.center	  rg   r    c                     d S rd   r   r`  s       r   r  zFacet.center	  rg   r    c                     d S rd   r   re   s      r   r   zFacet.columns	  rp   r    c                     d S rd   r   re   s      r   r   zFacet.field	  rg   r    c                     d S rd   r   r   s      r   r   zFacet.field	  rg   r    c!                     d S rd   r   r  s"                                     r   r  zFacet.header	  rg   r    c                     d S rd   r   re   s      r   r  zFacet.header	  rg   r    c                     d S rd   r   re   s      r   r   z
Facet.sort	  rg   r    c                     d S rd   r   re   s      r   r   z
Facet.sort	  rg   r    c                     d S rd   r   re   s      r   r   z
Facet.sort	  rg   r    c                     d S rd   r   re   s      r   r   z
Facet.sort	  rg   r    r   c                     d S rd   r   re   s      r   r   z
Facet.sort	  rg   r    c                     d S rd   r   r  s        r   r   z
Facet.sort	  rg   r    c                     d S rd   r   re   s      r   r   z
Facet.sort	  rg   r    c                     d S rd   r   re   s      r   r  zFacet.spacing	  rg   r    c                     d S rd   r   r`  s       r   r  zFacet.spacing	  rg   r    r  c                     d S rd   r   re   s      r   r  zFacet.timeUnit
  rg   r    r  c                     d S rd   r   re   s      r   r  zFacet.timeUnit
  rg   r    r#  c                     d S rd   r   re   s      r   r  zFacet.timeUnit
  rg   r    rB  c                     d S rd   r   re   s      r   r  zFacet.timeUnit
  rg   r    c                     d S rd   r   rb  s         r   r  zFacet.timeUnit
  rg   r    c                     d S rd   r   re   s      r   r   zFacet.title
  rg   r    c                     d S rd   r   re   s      r   r   zFacet.title
  rg   r    c                     d S rd   r   re   s      r   r   zFacet.title
  rg   r    rh  c                     d S rd   r   re   s      r   r"   z
Facet.type#
  rp   r    c                 h     t          t          |           j        d|||||||||	|
|||||d| d S )N)r   rf   r   ro   rr   ri  r  r   r   r  r   r  r  r   r"   r   )r2   rY  rp  )r   r   rf   r   ro   rr   ri  r  r   r   r  r   r  r  r   r"   r   r   s                    r   rp  zFacet.__init__'
  ss     	$eT# 	hi9TY1=3v^d,35VZ,3heZ^	h 	h cg	h 	h 	h 	h 	hr    )rb   rY  )rK   Nrb   rY  )r'   r9   r:   rt  ru  rv  r   r   rf   r   r   rw  ro   rx  rr   ri  r  r   r.   r   r  r	   r   r   rz  r  r  r   r"   rp  r;   r<   s   @r   rY  rY    s       w wp (-$N7  $b  c   pw    X (     X (     X w45 '    X $)     Xe      T g    X "9Y_hr{  FO  V_  fo  w@     X    X0 W          X %9     X 7     s w    X $     X %)	_hu~  OX  en  zC  OX  hq  BK  ]f  s|  NW  en  }F  OX  aj  r{  HQ  _h  u~  NW  dm  yB	  R	[	  l	u	  G
P
  ]
f
  x
A  OX  gp     X    X d5k g    X d3i G    X d4j W    X d4=) g    X g78 W    X "y	     X    X  7    X &I     X '  #P  Q   ^e    X '  #q  r   F    X '  #x	  y	   F
M
    X '  #O  P   ]d    X (yyi     X s w    X tCy W    X    XgNO \c     "+iy'YyQZ")II"Yiih h h h h h h h h hr    rY  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Filla/  Fill 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zFill.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zFill.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zFill.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zFill.bandPosition"  rp   r    c                     d S rd   r   re   s      r   rr   zFill.bin%  rg   r    c                     d S rd   r   rt   s               r   rr   zFill.bin)  rg   r    Nc                     d S rd   r   re   s      r   rr   zFill.bin-  rg   r    c                     d S rd   r   r   s       r   r@   zFill.condition1  rg   r    c                     d S rd   r   r   s        r   r@   zFill.condition5  rg   r    c                     d S rd   r   re   s      r   r@   zFill.condition9  rg   r    c                     d S rd   r   re   s      r   r   z
Fill.field=  rg   r    c                     d S rd   r   r   s      r   r   z
Fill.fieldA  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zFill.legendE  rg   r    c                     d S rd   r   re   s      r   r   zFill.legendI  rg   r    c                     d S rd   r   r   s                            r   r   z
Fill.scaleM  rg   r    c                     d S rd   r   re   s      r   r   z
Fill.scaleQ  rg   r    c                     d S rd   r   re   s      r   r   z	Fill.sortU  rg   r    c                     d S rd   r   re   s      r   r   z	Fill.sortY  rg   r    c                     d S rd   r   re   s      r   r   z	Fill.sort]  rg   r    c                     d S rd   r   re   s      r   r   z	Fill.sorta  rg   r    r   c                     d S rd   r   re   s      r   r   z	Fill.sorte  rg   r    r   c                     d S rd   r   re   s      r   r   z	Fill.sorti  rg   r    r   c                     d S rd   r   re   s      r   r   z	Fill.sortm  rg   r    c                     d S rd   r   r  s        r   r   z	Fill.sortq  rg   r    c                     d S rd   r   r  s       r   r   z	Fill.sortu  rg   r    c                     d S rd   r   re   s      r   r   z	Fill.sorty  rg   r    r  c                     d S rd   r   re   s      r   r  zFill.timeUnit}  rg   r    r  c                     d S rd   r   re   s      r   r  zFill.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zFill.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zFill.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zFill.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   z
Fill.title  rg   r    c                     d S rd   r   re   s      r   r   z
Fill.title  rg   r    c                     d S rd   r   re   s      r   r   z
Fill.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   z	Fill.type  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zFill.__init__  b     	#dD" 	+Y)Zf'*iuU[).THTY`d	+ 	+ &*	+ 	+ 	+ 	+ 	+r    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  1
  s3	       _ _@ (-$N7  $b  c   pv    X (     X (     Xe      T f    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 QR _e    X s v    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k f    X d3i F    X d4j V    X d4=) f    X g78 V    X g  U  V   ci    X g  a  b   ou    X "y	     X %Y     X    X '  #P  Q   ^d    X '  #q  r   E    X '  #x	  y	   F
L
    X '  #O  P   ]c    X (yyi     X s v    X tCy V    X    XgNO \b     "+ii]f$Iiy)99+ + + + + + + + + +r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )	FillDatuma~  FillDatum 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:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zFillDatum.bandPosition  rp   r    c                     d S rd   r   r   s       r   r@   zFillDatum.condition   rg   r    c                     d S rd   r   r   s        r   r@   zFillDatum.condition$  rg   r    c                     d S rd   r   re   s      r   r@   zFillDatum.condition(  rg   r    c                     d S rd   r   re   s      r   r   zFillDatum.title,  rg   r    c                     d S rd   r   re   s      r   r   zFillDatum.title0  rg   r    Nc                     d S rd   r   re   s      r   r   zFillDatum.title4  rg   r    r  c                     d S rd   r   re   s      r   r"   zFillDatum.type8  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zFillDatum.__init__<  T    'i' 	He,Zc.3$	H 	HBF	H 	H 	H 	H 	Hr    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r    s       m m\ (-$Ne      &i     X 'y	     X 4 QR _j    X s {    X tCy [    X    XgYZ gr     ,5	QZH H H H H H H H H Hr    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )	FillValuea  FillValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zFillValue.conditionU  rg   r    c                     d S rd   r   r  s	            r   r@   zFillValue.conditionY  rg   r    c                     d S rd   r   r  s                 r   r@   zFillValue.condition]  rg   r    c	                     d S rd   r   r  s
             r   r@   zFillValue.conditiona  rg   r    c                     d S rd   r   r   s       r   r@   zFillValue.conditione  rg   r    c                     d S rd   r   r   s        r   r@   zFillValue.conditioni  rg   r    rK   c                     d S rd   r   re   s      r   r@   zFillValue.conditionm  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zFillValue.__init__r  3    'i'QeyQQDQQQQQr    )rb   r  r  r<   s   @r   r  r  B  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 QR _j    X )2 R R R R R R R R R Rr    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6FillOpacitya/  FillOpacity 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zFillOpacity.aggregate[  rg   r    c                     d S rd   r   ri   s      r   rf   zFillOpacity.aggregate_  rg   r    c                     d S rd   r   rl   s      r   rf   zFillOpacity.aggregatec  rg   r    c                     d S rd   r   re   s      r   ro   zFillOpacity.bandPositiong  rp   r    c                     d S rd   r   re   s      r   rr   zFillOpacity.binj  rg   r    c                     d S rd   r   rt   s               r   rr   zFillOpacity.binn  rg   r    Nc                     d S rd   r   re   s      r   rr   zFillOpacity.binr  rg   r    c                     d S rd   r   r   s       r   r@   zFillOpacity.conditionv  rg   r    c                     d S rd   r   r   s        r   r@   zFillOpacity.conditionz  rg   r    c                     d S rd   r   re   s      r   r@   zFillOpacity.condition~  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.field  rg   r    c                     d S rd   r   r   s      r   r   zFillOpacity.field  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zFillOpacity.legend  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.legend  rg   r    c                     d S rd   r   r   s                            r   r   zFillOpacity.scale  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.scale  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    c                     d S rd   r   r  s        r   r   zFillOpacity.sort  rg   r    c                     d S rd   r   r  s       r   r   zFillOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.sort  rg   r    r  c                     d S rd   r   re   s      r   r  zFillOpacity.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zFillOpacity.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zFillOpacity.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zFillOpacity.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zFillOpacity.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.title  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.title  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacity.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   zFillOpacity.type  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zFillOpacity.__init__  k     	*k4  ) 	]I7CXa05fEX\3;5t	] 	] X\	] 	] 	] 	] 	]r    )rb   r  )rK   Nrb   r  rs  r<   s   @r   r  r  v  =	       _ _@ (-$"N7  $b  c   p}    X (     X (     Xe      T m    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 EF S`    X s }    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k m    X d3i M    X d4j ]    X d4=) m    X g78 ]    X g  U  V   cp    X g  a  b   o|    X "y	     X %Y     X    X '  #P  Q   ^k    X '  #q  r   L    X '  #x	  y	   F
S
    X '  #O  P   ]j    X (yyi     X s }    X tCy ]    X    XgNO \i     "+ii]f$Iiy)99] ] ] ] ] ] ] ] ] ]r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )FillOpacityDatumam  FillOpacityDatum 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:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zFillOpacityDatum.bandPositionb  rp   r    c                     d S rd   r   r   s       r   r@   zFillOpacityDatum.conditione  rg   r    c                     d S rd   r   r   s        r   r@   zFillOpacityDatum.conditioni  rg   r    c                     d S rd   r   re   s      r   r@   zFillOpacityDatum.conditionm  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacityDatum.titleq  rg   r    c                     d S rd   r   re   s      r   r   zFillOpacityDatum.titleu  rg   r    Nc                     d S rd   r   re   s      r   r   zFillOpacityDatum.titley  rg   r    r  c                     d S rd   r   re   s      r   r"   zFillOpacityDatum.type}  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zFillOpacityDatum.__init__  U    .%%. 	dU9B%VZ	d 	d^b	d 	d 	d 	d 	dr    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r           m m\ (-$"Ne 0B     &i     X 'y	     X 4 EF Se    X s '9    X tCy -?    X    XgYZ gy     ,5	QZd d d d d d d d d dr    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )FillOpacityValueaj  FillOpacityValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zFillOpacityValue.condition  rg   r    c                     d S rd   r   r  s	            r   r@   zFillOpacityValue.condition  rg   r    c                     d S rd   r   r  s                 r   r@   zFillOpacityValue.condition  rg   r    c	                     d S rd   r   r  s
             r   r@   zFillOpacityValue.condition  rg   r    c                     d S rd   r   r   s       r   r@   zFillOpacityValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zFillOpacityValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zFillOpacityValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zFillOpacityValue.__init__  r;  r    )rb   r  r  r<   s   @r   r  r    4         (-$"N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 EF Se    X )2 Y Y Y Y Y Y Y Y Y Yr    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd'd            Zee	fd'd	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d'd            Zededd fd            Zed(d            Zee	e	fd'd            Zee	e	e	fd'd            Zedeej                 dd fd            Zededd fd            Zee	fd'd            Zededd fd            Zededd fd            Zdedd fdZeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd'd             Zededd fd!            Zedee         dd fd"            Zed(d#            Zded$         dd fd%Ze	e	e	e	e	e	e	e	e	e	e	f fd&	Z xZS ))Hrefa)  Href 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    format : anyOf(string, :class:`Dict`)
        When used with the default ``"number"`` and ``"time"`` format type, the text
        formatting pattern for labels of guides (axes, legends, headers) and text marks.


        * If the format type is ``"number"`` (e.g., for quantitative fields), this is D3's
          `number format pattern <https://github.com/d3/d3-format#locale_format>`__.
        * If the format type is ``"time"`` (e.g., for temporal fields), this is D3's `time
          format pattern <https://github.com/d3/d3-time-format#locale_format>`__.

        See the `format documentation <https://vega.github.io/vega-lite/docs/format.html>`__
        for more examples.

        When used with a `custom formatType
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__, this
        value will be passed as ``format`` alongside ``datum.value`` to the registered
        function.

        **Default value:**  Derived from `numberFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for number
        format and from `timeFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for time
        format.
    formatType : string
        The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom
        format type
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__.

        **Default value:**


        * ``"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:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FhrefrK   rL   rb   c                     d S rd   r   re   s      r   rf   zHref.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zHref.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zHref.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zHref.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   zHref.bin  rg   r    c                     d S rd   r   rt   s               r   rr   zHref.bin  rg   r    c                     d S rd   r   re   s      r   rr   zHref.bin  rg   r    Nc                     d S rd   r   re   s      r   rr   zHref.bin  rg   r    c                     d S rd   r   r   s       r   r@   zHref.condition  rg   r    c                     d S rd   r   r   s        r   r@   zHref.condition  rg   r    c                     d S rd   r   re   s      r   r@   zHref.condition  rg   r    c                     d S rd   r   re   s      r   r   z
Href.field  rg   r    c                     d S rd   r   r   s      r   r   z
Href.field  rg   r    c                     d S rd   r   re   s      r   r&   zHref.format  rg   r    c                     d S rd   r   re   s      r   r&   zHref.format  rg   r    c                     d S rd   r   re   s      r   r   zHref.formatType  rp   r    r  c                     d S rd   r   re   s      r   r  zHref.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zHref.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zHref.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zHref.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zHref.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   z
Href.title  rg   r    c                     d S rd   r   re   s      r   r   z
Href.title  rg   r    c                     d S rd   r   re   s      r   r   z
Href.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   z	Href.type  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S r,  )r2   r  rp  r-  s                r   rp  zHref.__init__  `     	#dD" 	+Y)Zf'*iuU[.88SX_c	+ 	+ &*	+ 	+ 	+ 	+ 	+r    )rb   r  )rK   Nrb   r  r.  r<   s   @r   r  r    s#       D DJ (-$N7  $b  c   pv    X (     X (     Xe      T f    X "9Y_hr{  FO  V_  fo  w@     X S V    X    X &i     X 'y	     X 4 EF SY    X s v    X $     X      X      XC F     '  #P  Q   ^d    X '  #q  r   E    X '  #x	  y	   F
L
    X '  #O  P   ]c    X (yyi     X s v    X tCy V    X    XgNO \b     "+ii]f$IiT]#99+ + + + + + + + + +r    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )	HrefValuear  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 <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  rb   c                     d S rd   r   r  s                r   r@   zHrefValue.condition  rg   r    c                     d S rd   r   r  s	            r   r@   zHrefValue.condition  rg   r    c                     d S rd   r   r  s                 r   r@   zHrefValue.condition  rg   r    c	                     d S rd   r   r  s
             r   r@   zHrefValue.condition  rg   r    c                     d S rd   r   r   s       r   r@   zHrefValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zHrefValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zHrefValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r!  rp  r  s       r   rp  zHrefValue.__init__   r  r    )rb   r!  r<  r<   s   @r   r!  r!    s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 IJ Wb    X )2 R R R R R R R R R Rr    r!  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd!d            Zee	fd!d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d!d            Zededd fd            Zed"d            Zededd fd            Zee	fd!d            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd!d            Zededd fd            Zedee         dd fd            Zed"d            Zded         dd fdZe	e	e	e	e	e	e	e	f fd 	Z xZS )#Keyar!  Key schema wrapper

    Mapping(required=[shorthand])
    Definition object for a data field, its type and transformation of an encoding channel.

    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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FkeyrK   rL   rb   c                     d S rd   r   re   s      r   rf   zKey.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zKey.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zKey.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zKey.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   zKey.bin  rg   r    c                     d S rd   r   rt   s               r   rr   zKey.bin  rg   r    c                     d S rd   r   re   s      r   rr   zKey.bin  rg   r    Nc                     d S rd   r   re   s      r   rr   zKey.bin  rg   r    c                     d S rd   r   re   s      r   r   z	Key.field  rg   r    c                     d S rd   r   r   s      r   r   z	Key.field  rg   r    r  c                     d S rd   r   re   s      r   r  zKey.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zKey.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zKey.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zKey.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zKey.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   z	Key.title  rg   r    c                     d S rd   r   re   s      r   r   z	Key.title  rg   r    c                     d S rd   r   re   s      r   r   z	Key.title	  rg   r    rh  c                     d S rd   r   re   s      r   r"   zKey.type  rp   r    c	                 Z     t          t          |           j        d||||||||d|	 d S rU  )r2   r+  rp  rV  s             r   rp  zKey.__init__  sT    !c4! 	*IYe&)QV]a	* 	*$(	* 	* 	* 	* 	*r    )rb   r+  )rK   Nrb   r+  rW  r<   s   @r   r+  r+  $  s       \ \z (-$N7  $b  c   pu    X (     X (     Xe      T e    X "9Y_hr{  FO  V_  fo  w@     X S U    X    X s u    X $     X '  #P  Q   ^c    X '  #q  r   D    X '  #x	  y	   F
K
    X '  #O  P   ]b    X (yyi     X s u    X tCy U    X    XgNO \a     "+ii]f 9II* * * * * * * * * *r    r+  c                   :    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Zdedd fdZe	e	e	e	e	e	e	e	f fd	Z xZS )Latitudea   Latitude 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    type : string
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FlatituderK   rL   rb   c                     d S rd   r   re   s      r   rf   zLatitude.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zLatitude.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zLatitude.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zLatitude.bandPosition  rp   r    Nc                     d S rd   r   re   s      r   rr   zLatitude.bin  rp   r    c                     d S rd   r   re   s      r   r   zLatitude.field  rg   r    c                     d S rd   r   r   s      r   r   zLatitude.field  rg   r    r  c                     d S rd   r   re   s      r   r  zLatitude.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zLatitude.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zLatitude.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zLatitude.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zLatitude.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zLatitude.title  rg   r    c                     d S rd   r   re   s      r   r   zLatitude.title  rg   r    c                     d S rd   r   re   s      r   r   zLatitude.title  rg   r    c                     d S rd   r   re   s      r   r"   zLatitude.type  rp   r    c	                 Z     t          t          |           j        d||||||||d|	 d S rU  )r2   rB  rp  rV  s             r   rp  zLatitude.__init__  s[    &h& 	Zi4@cQV08D	Z 	ZTX	Z 	Z 	Z 	Z 	Zr    )rb   rB  )rK   Nrb   rB  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rr   r.   r   r  r   r	   r"   rp  r;   r<   s   @r   rB  rB    s[       [ [x (-$N7  $b  c   pz    X (     X (     Xe 
        s z    X $     X '  #P  Q   ^h    X '  #q  r   I    X '  #x	  y	   F
P
    X '  #O  P   ]g    X (yyi     X s z    X tCy Z    X    Xc j     "+ii]f 9IIZ Z Z Z Z Z Z Z Z Zr    rB  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )LatitudeDatuma\  LatitudeDatum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FrC  rK   rb   c                     d S rd   r   re   s      r   ro   zLatitudeDatum.bandPositionj  rp   r    c                     d S rd   r   re   s      r   r   zLatitudeDatum.titlem  rg   r    c                     d S rd   r   re   s      r   r   zLatitudeDatum.titleq  rg   r    Nc                     d S rd   r   re   s      r   r   zLatitudeDatum.titleu  rg   r    r  c                     d S rd   r   re   s      r   r"   zLatitudeDatum.typey  rp   r    c                 R     t          t          |           j        d||||d| d S N)rG   ro   r   r"   r   )r2   rW  rp  r   rG   ro   r   r"   r   r   s         r   rp  zLatitudeDatum.__init__}  sJ    +mT""+ 	?%lZ_15	? 	?9=	? 	? 	? 	? 	?r    )rK   Nrb   rW  r'   r9   r:   rt  ru  rv  rw  ro   r   r.   r   r	   r   r"   r   rp  r;   r<   s   @r   rW  rW    s+       f fN (-$Ne      s     X tCy _    X    XgYZ gv     ,5II ? ? ? ? ? ? ? ? ? ?r    rW  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )	Latitude2a  Latitude2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    F	latitude2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zLatitude2.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zLatitude2.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zLatitude2.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zLatitude2.bandPosition  rp   r    Nc                     d S rd   r   re   s      r   rr   zLatitude2.bin  rp   r    c                     d S rd   r   re   s      r   r   zLatitude2.field  rg   r    c                     d S rd   r   r   s      r   r   zLatitude2.field  rg   r    r  c                     d S rd   r   re   s      r   r  zLatitude2.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zLatitude2.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zLatitude2.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zLatitude2.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zLatitude2.timeUnit
  rg   r    c                     d S rd   r   re   s      r   r   zLatitude2.title  rg   r    c                     d S rd   r   re   s      r   r   zLatitude2.title  rg   r    c                     d S rd   r   re   s      r   r   zLatitude2.title  rg   r    c                 X     t          t          |           j        d|||||||d| d S N)r   rf   ro   rr   r   r  r   r   )r2   rb  rp  
r   r   rf   ro   rr   r   r  r   r   r   s
            r   rp  zLatitude2.__init__  sY    'i' 	P)y5AsRW19	P 	PJN	P 	P 	P 	P 	Pr    )rb   rb  )rK   Nrb   rb  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rr   r.   r   r  r   r	   rp  r;   r<   s   @r   rb  rb    s7       X Xr (-$ N7  $b  c   p{    X (     X (     Xe         s {    X $     X '  #P  Q   ^i    X '  #q  r   J    X '  #x	  y	   F
Q
    X '  #O  P   ]h    X (yyi     X s {    X tCy [    X    X "+ii]f 9IP P P P P P P P P Pr    rb  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )Latitude2Datuma]  Latitude2Datum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Frc  rK   rb   c                     d S rd   r   re   s      r   ro   zLatitude2Datum.bandPosition  rp   r    c                     d S rd   r   re   s      r   r   zLatitude2Datum.title  rg   r    c                     d S rd   r   re   s      r   r   zLatitude2Datum.title  rg   r    Nc                     d S rd   r   re   s      r   r   zLatitude2Datum.title  rg   r    r  c                     d S rd   r   re   s      r   r"   zLatitude2Datum.type  rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   rx  rp  r_  s         r   rp  zLatitude2Datum.__init__  R    ,nd##, 	@5|[`26	@ 	@:>	@ 	@ 	@ 	@ 	@r    )rK   Nrb   rx  r`  r<   s   @r   rx  rx  "  8       f fN (-$ Ne 0@     s '7    X tCy -=    X    XgYZ gw     ,5II @ @ @ @ @ @ @ @ @ @r    rx  c                   *     e Zd ZdZdZdZ fdZ xZS )Latitude2Valuea  Latitude2Value schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Frc  c                 L     t          t          |           j        dd|i| d S Nr   r   )r2   r  rp  r   r   r   r   s      r   rp  zLatitude2Value.__init__  s1    ,nd##,AA5ADAAAAAr    r'   r9   r:   rt  ru  rv  rp  r;   r<   s   @r   r  r    sX          (-$ NB B B B B B B B Br    r  c                   :    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Zdedd fdZe	e	e	e	e	e	e	e	f fd	Z xZS )	Longitudea   Longitude 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    type : string
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    F	longituderK   rL   rb   c                     d S rd   r   re   s      r   rf   zLongitude.aggregate`  rg   r    c                     d S rd   r   ri   s      r   rf   zLongitude.aggregated  rg   r    c                     d S rd   r   rl   s      r   rf   zLongitude.aggregateh  rg   r    c                     d S rd   r   re   s      r   ro   zLongitude.bandPositionl  rp   r    Nc                     d S rd   r   re   s      r   rr   zLongitude.bino  rp   r    c                     d S rd   r   re   s      r   r   zLongitude.fieldr  rg   r    c                     d S rd   r   r   s      r   r   zLongitude.fieldv  rg   r    r  c                     d S rd   r   re   s      r   r  zLongitude.timeUnitz  rg   r    r  c                     d S rd   r   re   s      r   r  zLongitude.timeUnit~  rg   r    r#  c                     d S rd   r   re   s      r   r  zLongitude.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zLongitude.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zLongitude.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zLongitude.title  rg   r    c                     d S rd   r   re   s      r   r   zLongitude.title  rg   r    c                     d S rd   r   re   s      r   r   zLongitude.title  rg   r    c                     d S rd   r   re   s      r   r"   zLongitude.type  rp   r    c	                 Z     t          t          |           j        d||||||||d|	 d S rU  )r2   r  rp  rV  s             r   rp  zLongitude.__init__  s[    'i' 	[)y5AsRW19T	[ 	[UY	[ 	[ 	[ 	[ 	[r    )rb   r  )rK   Nrb   r  rU  r<   s   @r   r  r    s[       [ [x (-$ N7  $b  c   p{    X (     X (     Xe         s {    X $     X '  #P  Q   ^i    X '  #q  r   J    X '  #x	  y	   F
Q
    X '  #O  P   ]h    X (yyi     X s {    X tCy [    X    Xc k     "+ii]f 9II[ [ [ [ [ [ [ [ [ [r    r  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )LongitudeDatuma]  LongitudeDatum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr  rK   rb   c                     d S rd   r   re   s      r   ro   zLongitudeDatum.bandPosition  rp   r    c                     d S rd   r   re   s      r   r   zLongitudeDatum.title  rg   r    c                     d S rd   r   re   s      r   r   zLongitudeDatum.title  rg   r    Nc                     d S rd   r   re   s      r   r   zLongitudeDatum.title  rg   r    r  c                     d S rd   r   re   s      r   r"   zLongitudeDatum.type   rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   r  rp  r_  s         r   rp  zLongitudeDatum.__init__$  r  r    )rK   Nrb   r  r`  r<   s   @r   r  r    r  r    r  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )
Longitude2a  Longitude2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    F
longitude2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zLongitude2.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zLongitude2.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zLongitude2.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zLongitude2.bandPosition  rp   r    Nc                     d S rd   r   re   s      r   rr   zLongitude2.bin  rp   r    c                     d S rd   r   re   s      r   r   zLongitude2.field  rg   r    c                     d S rd   r   r   s      r   r   zLongitude2.field  rg   r    r  c                     d S rd   r   re   s      r   r  zLongitude2.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zLongitude2.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zLongitude2.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zLongitude2.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zLongitude2.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zLongitude2.title  rg   r    c                     d S rd   r   re   s      r   r   zLongitude2.title  rg   r    c                     d S rd   r   re   s      r   r   zLongitude2.title  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   r  rp  ru  s
            r   rp  zLongitude2.__init__  sY    (j$( 	Q9	6BSX2:%	Q 	QKO	Q 	Q 	Q 	Q 	Qr    )rb   r  )rK   Nrb   r  rv  r<   s   @r   r  r  )  s7       X Xr (-$!N7  $b  c   p|    X (     X (     Xe         s |    X $     X '  #P  Q   ^j    X '  #q  r   K    X '  #x	  y	   F
R
    X '  #O  P   ]i    X (yyi     X s |    X tCy \    X    X "+ii]f 9IQ Q Q Q Q Q Q Q Q Qr    r  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )Longitude2Datuma^  Longitude2Datum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr  rK   rb   c                     d S rd   r   re   s      r   ro   zLongitude2Datum.bandPosition5  rp   r    c                     d S rd   r   re   s      r   r   zLongitude2Datum.title8  rg   r    c                     d S rd   r   re   s      r   r   zLongitude2Datum.title<  rg   r    Nc                     d S rd   r   re   s      r   r   zLongitude2Datum.title@  rg   r    r  c                     d S rd   r   re   s      r   r"   zLongitude2Datum.typeD  rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   r  rp  r_  s         r   rp  zLongitude2Datum.__init__H  sR    -ot$$- 	AE\a37	A 	A;?	A 	A 	A 	A 	Ar    )rK   Nrb   r  r`  r<   s   @r   r  r    s8       f fN (-$!Ne 0A     s '8    X tCy ->    X    XgYZ gx     ,5II A A A A A A A A A Ar    r  c                   *     e Zd ZdZdZdZ fdZ xZS )Longitude2Valuea  Longitude2Value schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zLongitude2Value.__init__b  s1    -ot$$-BBEBTBBBBBr    r  r<   s   @r   r  r  M  sX          (-$!NC C C C C C C C Cr    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Opacitya|/  Opacity 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zOpacity.aggregateK  rg   r    c                     d S rd   r   ri   s      r   rf   zOpacity.aggregateO  rg   r    c                     d S rd   r   rl   s      r   rf   zOpacity.aggregateS  rg   r    c                     d S rd   r   re   s      r   ro   zOpacity.bandPositionW  rp   r    c                     d S rd   r   re   s      r   rr   zOpacity.binZ  rg   r    c                     d S rd   r   rt   s               r   rr   zOpacity.bin^  rg   r    Nc                     d S rd   r   re   s      r   rr   zOpacity.binb  rg   r    c                     d S rd   r   r   s       r   r@   zOpacity.conditionf  rg   r    c                     d S rd   r   r   s        r   r@   zOpacity.conditionj  rg   r    c                     d S rd   r   re   s      r   r@   zOpacity.conditionn  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.fieldr  rg   r    c                     d S rd   r   r   s      r   r   zOpacity.fieldv  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zOpacity.legendz  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.legend~  rg   r    c                     d S rd   r   r   s                            r   r   zOpacity.scale  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.scale  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    c                     d S rd   r   r  s        r   r   zOpacity.sort  rg   r    c                     d S rd   r   r  s       r   r   zOpacity.sort  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.sort  rg   r    r  c                     d S rd   r   re   s      r   r  zOpacity.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zOpacity.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zOpacity.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zOpacity.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zOpacity.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.title  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.title  rg   r    c                     d S rd   r   re   s      r   r   zOpacity.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   zOpacity.type  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zOpacity.__init__  sk     	&gt% 	Y	Y3?ST],1&TX/7u4	Y 	Y TX	Y 	Y 	Y 	Y 	Yr    )rb   r  )rK   Nrb   r  rs  r<   s   @r   r  r  f  s=	       _ _@ (-$N7  $b  c   py    X (     X (     Xe 	     T i    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 EF S\    X s y    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k i    X d3i I    X d4j Y    X d4=) i    X g78 Y    X g  U  V   cl    X g  a  b   ox    X "y	     X %Y     X    X '  #P  Q   ^g    X '  #q  r   H    X '  #x	  y	   F
O
    X '  #O  P   ]f    X (yyi     X s y    X tCy Y    X    XgNO \e     "+ii]f$Iiy)99Y Y Y Y Y Y Y Y Y Yr    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )OpacityDatumai  OpacityDatum 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:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zOpacityDatum.bandPositionR  rp   r    c                     d S rd   r   r   s       r   r@   zOpacityDatum.conditionU  rg   r    c                     d S rd   r   r   s        r   r@   zOpacityDatum.conditionY  rg   r    c                     d S rd   r   re   s      r   r@   zOpacityDatum.condition]  rg   r    c                     d S rd   r   re   s      r   r   zOpacityDatum.titlea  rg   r    c                     d S rd   r   re   s      r   r   zOpacityDatum.titlee  rg   r    Nc                     d S rd   r   re   s      r   r   zOpacityDatum.titlei  rg   r    r  c                     d S rd   r   re   s      r   r"   zOpacityDatum.typem  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zOpacityDatum.__init__q  sT    *lD!!* 	K\]f16T	K 	KEI	K 	K 	K 	K 	Kr    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r    s       m m\ (-$Ne      &i     X 'y	     X 4 EF Sa    X s ~    X tCy ^    X    XgYZ gu     ,5	QZK K K K K K K K K Kr    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )OpacityValueaf  OpacityValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zOpacityValue.condition  rg   r    c                     d S rd   r   r  s	            r   r@   zOpacityValue.condition  rg   r    c                     d S rd   r   r  s                 r   r@   zOpacityValue.condition  rg   r    c	                     d S rd   r   r  s
             r   r@   zOpacityValue.condition  rg   r    c                     d S rd   r   r   s       r   r@   zOpacityValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zOpacityValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zOpacityValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zOpacityValue.__init__  3    *lD!!*T)TTtTTTTTr    )rb   r  r  r<   s   @r   r  r  w  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 EF Sa    X )2 U U U U U U U U U Ur    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd#d            Zee	fd#d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d#d            Zededd fd            Zed$d            Zededd fd            Zee	fd#d            Zded         dd fdZeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd#d            Zededd fd            Zedee         dd fd            Zed$d            Zded          dd fd!Ze	e	e	e	e	e	e	e	e	f	 fd"	Z xZS )%Ordera!  Order 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    sort : :class:`SortOrder`
        The sort order. One of ``"ascending"`` (default) or ``"descending"``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr  rK   rL   rb   c                     d S rd   r   re   s      r   rf   zOrder.aggregateN  rg   r    c                     d S rd   r   ri   s      r   rf   zOrder.aggregateR  rg   r    c                     d S rd   r   rl   s      r   rf   zOrder.aggregateV  rg   r    c                     d S rd   r   re   s      r   ro   zOrder.bandPositionZ  rp   r    c                     d S rd   r   re   s      r   rr   z	Order.bin]  rg   r    c                     d S rd   r   rt   s               r   rr   z	Order.bina  rg   r    c                     d S rd   r   re   s      r   rr   z	Order.bine  rg   r    Nc                     d S rd   r   re   s      r   rr   z	Order.bini  rg   r    c                     d S rd   r   re   s      r   r   zOrder.fieldm  rg   r    c                     d S rd   r   r   s      r   r   zOrder.fieldq  rg   r    r   c                     d S rd   r   re   s      r   r   z
Order.sortu  rp   r    r  c                     d S rd   r   re   s      r   r  zOrder.timeUnitx  rg   r    r  c                     d S rd   r   re   s      r   r  zOrder.timeUnit|  rg   r    r#  c                     d S rd   r   re   s      r   r  zOrder.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zOrder.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zOrder.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zOrder.title  rg   r    c                     d S rd   r   re   s      r   r   zOrder.title  rg   r    c                     d S rd   r   re   s      r   r   zOrder.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   z
Order.type  rp   r    c
                 \     t          t          |           j        d|||||||||	d	|
 d S )N)	r   rf   ro   rr   r   r   r  r   r"   r   )r2   r  rp  )r   r   rf   ro   rr   r   r   r  r   r"   r   r   s              r   rp  zOrder.__init__  sX     	$eT# 	7i9[g(+5th^c)-	7 	715	7 	7 	7 	7 	7r    )rb   r  )rK   Nrb   r  )r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r.   r   r   r  r   r	   r"   rp  r;   r<   s   @r   r  r    s;       ] ]| (-$N7  $b  c   pw    X (     X (     Xe      T g    X "9Y_hr{  FO  V_  fo  w@     X S W    X    X s w    X $     Xg78 W     '  #P  Q   ^e    X '  #q  r   F    X '  #x	  y	   F
M
    X '  #O  P   ]d    X (yyi     X s w    X tCy W    X    XgNO \c     "+ii]f y9I\e7 7 7 7 7 7 7 7 7 7r    r  c                        e Zd ZdZdZdZeeefd
d            Zeeeefd
d            Zede	e
j                 dd fd            Zef fd		Z xZS )
OrderValueap  OrderValue schema wrapper

    Mapping(required=[value])

    Parameters
    ----------

    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    condition : anyOf(:class:`ConditionalValueDefnumber`, List(:class:`ConditionalValueDefnumber`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    Fr  rb   c                     d S rd   r   r   s       r   r@   zOrderValue.condition  rg   r    c                     d S rd   r   r   s        r   r@   zOrderValue.condition  rg   r    rK   c                     d S rd   r   re   s      r   r@   zOrderValue.condition  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zOrderValue.__init__  r  r    )rb   r  )r'   r9   r:   rt  ru  rv  r   r   r@   r	   r   ConditionalValueDefnumberrp  r;   r<   s   @r   r  r    s         & (-$N&i     X 'y	     X 4 >? L    X )2 S S S S S S S S S Sr    r  c                   "    e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zededd fd            Zed5d            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	fd4d            Zee	e	fd4d            Zed5d             Zeded!         dd fd"            Zed5d#            Zededd fd$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Radiusa2  Radius 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FradiusrK   rL   rb   c                     d S rd   r   re   s      r   rf   zRadius.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zRadius.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zRadius.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zRadius.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   z
Radius.bin  rg   r    c                     d S rd   r   rt   s               r   rr   z
Radius.bin  rg   r    c                     d S rd   r   re   s      r   rr   z
Radius.bin  rg   r    Nc                     d S rd   r   re   s      r   rr   z
Radius.bin  rg   r    c                     d S rd   r   re   s      r   r   zRadius.field  rg   r    c                     d S rd   r   r   s      r   r   zRadius.field  rg   r    c                     d S rd   r   r   s                            r   r   zRadius.scale  rg   r    c                     d S rd   r   re   s      r   r   zRadius.scale  rg   r    c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zRadius.sort   rg   r    r   c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    c                     d S rd   r   r  s        r   r   zRadius.sort  rg   r    c                     d S rd   r   r  s       r   r   zRadius.sort  rg   r    c                     d S rd   r   re   s      r   r   zRadius.sort  rg   r    r   r  	normalizec                     d S rd   r   re   s      r   stackzRadius.stack  rg   r    c                     d S rd   r   re   s      r   r7  zRadius.stack  rg   r    c                     d S rd   r   re   s      r   r7  zRadius.stack   rg   r    r  c                     d S rd   r   re   s      r   r  zRadius.timeUnit$  rg   r    r  c                     d S rd   r   re   s      r   r  zRadius.timeUnit(  rg   r    r#  c                     d S rd   r   re   s      r   r  zRadius.timeUnit,  rg   r    rB  c                     d S rd   r   re   s      r   r  zRadius.timeUnit0  rg   r    c                     d S rd   r   rb  s         r   r  zRadius.timeUnit4  rg   r    c                     d S rd   r   re   s      r   r   zRadius.title8  rg   r    c                     d S rd   r   re   s      r   r   zRadius.title<  rg   r    c                     d S rd   r   re   s      r   r   zRadius.title@  rg   r    rh  c                     d S rd   r   re   s      r   r"   zRadius.typeD  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S N)r   rf   ro   rr   r   r   r   r7  r  r   r"   r   )r2   r  rp  r   r   rf   ro   rr   r   r   r   r7  r  r   r"   r   r   s                r   rp  zRadius.__init__H  s_     	%fd$ 	-yI2>Cu\a*.ehV[bf	- 	- (,	- 	- 	- 	- 	-r    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r.   r   r   r	   r   r   rz  r7  r  r   r"   rp  r;   r<   s   @r   r  r    sX       n n^ (-$N7  $b  c   px    X (     X (     Xe      T h    X "9Y_hr{  FO  V_  fo  w@     X S X    X    X s x    X $     X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k h    X d3i H    X d4j X    X d4=) h    X g78 X    X g  U  V   ck    X g  a  b   ow    X "y	     X %Y     X    X w<= (    X    X t     X '  #P  Q   ^f    X '  #q  r   G    X '  #x	  y	   F
N
    X '  #O  P   ]e    X (yyi     X s x    X tCy X    X    XgNO \d     "+ii]f 		]f y- - - - - - - - - -r    r  c                       e Zd ZdZdZdZdedd fdZee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fdd            Z
edd	            Z
eded
         dd fd            Zedd            Zededd fd            Zededd fd            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	e	f fd	Z xZS )RadiusDatuma<   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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr  rK   rb   c                     d S rd   r   re   s      r   ro   zRadiusDatum.bandPosition  rp   r    c                     d S rd   r   r   s                            r   r   zRadiusDatum.scale  rg   r    Nc                     d S rd   r   re   s      r   r   zRadiusDatum.scale  rg   r    r4  c                     d S rd   r   re   s      r   r7  zRadiusDatum.stack  rg   r    c                     d S rd   r   re   s      r   r7  zRadiusDatum.stack  rg   r    c                     d S rd   r   re   s      r   r7  zRadiusDatum.stack  rg   r    c                     d S rd   r   re   s      r   r   zRadiusDatum.title   rg   r    c                     d S rd   r   re   s      r   r   zRadiusDatum.title  rg   r    c                     d S rd   r   re   s      r   r   zRadiusDatum.title  rg   r    r  c                     d S rd   r   re   s      r   r"   zRadiusDatum.type  rp   r    c           
      V     t          t          |           j        d||||||d| d S N)rG   ro   r   r7  r   r"   r   )r2   rH  rp  	r   rG   ro   r   r7  r   r"   r   r   s	           r   rp  zRadiusDatum.__init__  sV    )k4  ) 	WLX]05U	W 	WQU	W 	W 	W 	W 	Wr    )rb   rH  )rK   Nrb   rH  r'   r9   r:   rt  ru  rv  rw  ro   r   r   r   r   r7  rx  r.   r   r	   r"   rp  r;   r<   s   @r   rH  rH  Q  s       R Rf (-$Ne      #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X w<= -    X    X t     X s }    X tCy ]    X    XgYZ gt     ,5IY^gW W W W W W W W W Wr    rH  c                   *     e Zd ZdZdZdZ fdZ xZS )RadiusValuea  RadiusValue schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  c                 L     t          t          |           j        dd|i| d S r  )r2   rX  rp  r  s      r   rp  zRadiusValue.__init__+  1    )k4  )>>>>>>>>r    r  r<   s   @r   rX  rX    O          (-$N? ? ? ? ? ? ? ? ?r    rX  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )Radius2a  Radius2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    Fradius2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zRadius2.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zRadius2.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zRadius2.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zRadius2.bandPosition  rp   r    Nc                     d S rd   r   re   s      r   rr   zRadius2.bin  rp   r    c                     d S rd   r   re   s      r   r   zRadius2.field  rg   r    c                     d S rd   r   r   s      r   r   zRadius2.field  rg   r    r  c                     d S rd   r   re   s      r   r  zRadius2.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zRadius2.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zRadius2.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zRadius2.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zRadius2.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   zRadius2.title  rg   r    c                     d S rd   r   re   s      r   r   zRadius2.title  rg   r    c                     d S rd   r   re   s      r   r   zRadius2.title  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   r]  rp  ru  s
            r   rp  zRadius2.__init__  Y    %gt% 	N	Y3?SPU/7u	N 	NHL	N 	N 	N 	N 	Nr    )rb   r]  )rK   Nrb   r]  rv  r<   s   @r   r]  r]  /  7       X Xr (-$N7  $b  c   py    X (     X (     Xe 	        s y    X $     X '  #P  Q   ^g    X '  #q  r   H    X '  #x	  y	   F
O
    X '  #O  P   ]f    X (yyi     X s y    X tCy Y    X    X "+ii]f 9IN N N N N N N N N Nr    r]  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )Radius2Datuma[  Radius2Datum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr^  rK   rb   c                     d S rd   r   re   s      r   ro   zRadius2Datum.bandPosition;  rp   r    c                     d S rd   r   re   s      r   r   zRadius2Datum.title>  rg   r    c                     d S rd   r   re   s      r   r   zRadius2Datum.titleB  rg   r    Nc                     d S rd   r   re   s      r   r   zRadius2Datum.titleF  rg   r    r  c                     d S rd   r   re   s      r   r"   zRadius2Datum.typeJ  rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   rr  rp  r_  s         r   rp  zRadius2Datum.__init__N  sJ    *lD!!* 	>\Y^04	> 	>8<	> 	> 	> 	> 	>r    )rK   Nrb   rr  r`  r<   s   @r   rr  rr    s+       f fN (-$Ne      s ~    X tCy ^    X    XgYZ gu     ,5II > > > > > > > > > >r    rr  c                   *     e Zd ZdZdZdZ fdZ xZS )Radius2Valuea  Radius2Value schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr^  c                 L     t          t          |           j        dd|i| d S r  )r2   rz  rp  r  s      r   rp  zRadius2Value.__init__h  1    *lD!!*???$?????r    r  r<   s   @r   rz  rz  S  X          (-$N@ @ @ @ @ @ @ @ @r    rz  c            !       z    e Zd ZdZdZdZeded         dd fd            Zee	fd.d            Zee	fd.d	            Zded
         dd fdZ
dedd fdZededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d.d            Zed/d            Zdedd fdZededd fd            Zee	fd.d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	f d.d            Zed/d            Zedee         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zee	e	e	fd.d            Zed/d            Zdedd fdZeded         dd fd             Zeded!         dd fd"            Zeded#         dd fd$            Zeded%         dd fd&            Zee	e	e	e	fd.d'            Zededd fd(            Zedee         dd fd)            Zed/d*            Zded+         dd fd,Ze	e	e	e	e	e	e	e	e	e	e	e	e	f fd-	Z xZS )0Rowa+  Row 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    align : :class:`LayoutAlign`
        The alignment to apply to row/column facet's subplot. The supported string values
        are ``"all"``, ``"each"``, and ``"none"``.


        * For ``"none"``, a flow layout will be used, in which adjacent subviews are simply
          placed one after the other.
        * For ``"each"``, subviews will be aligned into a clean grid structure, but each row
          or column may be of variable size.
        * For ``"all"``, subviews will be aligned and each row or column will be sized
          identically based on the maximum observed size. String values for this property
          will be applied to both grid rows and columns.

        **Default value:** ``"all"``.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    center : boolean
        Boolean flag indicating if facet's subviews should be centered relative to their
        respective rows or columns.

        **Default value:** ``false``
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    header : anyOf(:class:`Header`, None)
        An object defining properties of a facet's header.
    sort : anyOf(:class:`SortArray`, :class:`SortOrder`, :class:`EncodingSortField`, None)
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` is not supported for ``row`` and ``column``.
    spacing : float
        The spacing in pixels between facet's sub-views.

        **Default value** : Depends on ``"spacing"`` property of `the view composition
        configuration <https://vega.github.io/vega-lite/docs/config.html#view-config>`__ (
        ``20`` by default)
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fra  rK   rL   rb   c                     d S rd   r   re   s      r   rf   zRow.aggregateC  rg   r    c                     d S rd   r   ri   s      r   rf   zRow.aggregateG  rg   r    c                     d S rd   r   rl   s      r   rf   zRow.aggregateK  rg   r    r  c                     d S rd   r   re   s      r   r   z	Row.alignO  rp   r    c                     d S rd   r   re   s      r   ro   zRow.bandPositionR  rp   r    c                     d S rd   r   re   s      r   rr   zRow.binU  rg   r    c                     d S rd   r   rt   s               r   rr   zRow.binY  rg   r    Nc                     d S rd   r   re   s      r   rr   zRow.bin]  rg   r    c                     d S rd   r   re   s      r   r  z
Row.centera  rp   r    c                     d S rd   r   re   s      r   r   z	Row.fieldd  rg   r    c                     d S rd   r   r   s      r   r   z	Row.fieldh  rg   r    c!                     d S rd   r   r  s"                                     r   r  z
Row.headerl  rg   r    c                     d S rd   r   re   s      r   r  z
Row.headerp  rg   r    c                     d S rd   r   re   s      r   r   zRow.sortt  rg   r    c                     d S rd   r   re   s      r   r   zRow.sortx  rg   r    c                     d S rd   r   re   s      r   r   zRow.sort|  rg   r    c                     d S rd   r   re   s      r   r   zRow.sort  rg   r    r   c                     d S rd   r   re   s      r   r   zRow.sort  rg   r    c                     d S rd   r   r  s        r   r   zRow.sort  rg   r    c                     d S rd   r   re   s      r   r   zRow.sort  rg   r    c                     d S rd   r   re   s      r   r  zRow.spacing  rp   r    r  c                     d S rd   r   re   s      r   r  zRow.timeUnit  rg   r    r  c                     d S rd   r   re   s      r   r  zRow.timeUnit  rg   r    r#  c                     d S rd   r   re   s      r   r  zRow.timeUnit  rg   r    rB  c                     d S rd   r   re   s      r   r  zRow.timeUnit  rg   r    c                     d S rd   r   rb  s         r   r  zRow.timeUnit  rg   r    c                     d S rd   r   re   s      r   r   z	Row.title  rg   r    c                     d S rd   r   re   s      r   r   z	Row.title  rg   r    c                     d S rd   r   re   s      r   r   z	Row.title  rg   r    rh  c                     d S rd   r   re   s      r   r"   zRow.type  rp   r    c                 d     t          t          |           j        d|||||||||	|
|||d| d S r  )r2   r  rp  r  s                  r   rp  zRow.__init__  sm     	"c4! 	BIRW/;V[`)/dGV^(-D	B 	B =A	B 	B 	B 	B 	Br    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  l  s       Q Qd (-$N7  $b  c   pu    X (     X (     Xw45 %    e      T e    X "9Y_hr{  FO  V_  fo  w@     X    X      s u    X $     X %)	_hu~  OX  en  zC  OX  hq  BK  ]f  s|  NW  en  }F  OX  aj  r{  HQ  _h  u~  NW  dm  yB	  R	[	  l	u	  G
P
  ]
f
  x
A  OX  gp     X    X d5k e    X d3i E    X d4j U    X d4=) e    X g78 U    X "y	     X    X 5     '  #P  Q   ^c    X '  #q  r   D    X '  #x	  y	   F
K
    X '  #O  P   ]b    X (yyi     X s u    X tCy U    X    XgNO \a     "+iy'YyPY!	9y yB B B B B B B B B Br    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Shapea/  Shape 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefstringnullExprRef`, List(:class:`ConditionalValueDefstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zShape.aggregate  rg   r    c                     d S rd   r   ri   s      r   rf   zShape.aggregate  rg   r    c                     d S rd   r   rl   s      r   rf   zShape.aggregate  rg   r    c                     d S rd   r   re   s      r   ro   zShape.bandPosition  rp   r    c                     d S rd   r   re   s      r   rr   z	Shape.bin  rg   r    c                     d S rd   r   rt   s               r   rr   z	Shape.bin  rg   r    Nc                     d S rd   r   re   s      r   rr   z	Shape.bin  rg   r    c                     d S rd   r   r   s       r   r@   zShape.condition  rg   r    c                     d S rd   r   r   s        r   r@   zShape.condition  rg   r    c                     d S rd   r   re   s      r   r@   zShape.condition  rg   r    c                     d S rd   r   re   s      r   r   zShape.field  rg   r    c                     d S rd   r   r   s      r   r   zShape.field  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zShape.legend  rg   r    c                     d S rd   r   re   s      r   r   zShape.legend  rg   r    c                     d S rd   r   r   s                            r   r   zShape.scale  rg   r    c                     d S rd   r   re   s      r   r   zShape.scale  rg   r    c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    r   c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    r   c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    r   c                     d S rd   r   re   s      r   r   z
Shape.sort  rg   r    c                     d S rd   r   r  s        r   r   z
Shape.sort   rg   r    c                     d S rd   r   r  s       r   r   z
Shape.sort   rg   r    c                     d S rd   r   re   s      r   r   z
Shape.sort	   rg   r    r  c                     d S rd   r   re   s      r   r  zShape.timeUnit   rg   r    r  c                     d S rd   r   re   s      r   r  zShape.timeUnit   rg   r    r#  c                     d S rd   r   re   s      r   r  zShape.timeUnit   rg   r    rB  c                     d S rd   r   re   s      r   r  zShape.timeUnit   rg   r    c                     d S rd   r   rb  s         r   r  zShape.timeUnit   rg   r    c                     d S rd   r   re   s      r   r   zShape.title!   rg   r    c                     d S rd   r   re   s      r   r   zShape.title%   rg   r    c                     d S rd   r   re   s      r   r   zShape.title)   rg   r    )rl  rj  r  c                     d S rd   r   re   s      r   r"   z
Shape.type-   rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zShape.__init__1   rr  r    )rb   r  )rK   Nrb   r  )r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r@   r	   r   r=  r.   r   r   r   r   rz  r  r   r"   rp  r;   r<   s   @r   r  r    s2	       _ _@ (-$N7  $b  c   pw    X (     X (     Xe      T g    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 IJ W^    X s w    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k g    X d3i G    X d4j W    X d4=) g    X g78 W    X g  U  V   cj    X g  a  b   ov    X "y	     X %Y     X    X '  #P  Q   ^e    X '  #q  r   F    X '  #x	  y	   F
M
    X '  #O  P   ]d    X (yyi     X s w    X tCy W    X    Xg=> 7     "+ii]f$Iiy)99, , , , , , , , , ,r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )
ShapeDatumao  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
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zShapeDatum.bandPosition   rp   r    c                     d S rd   r   r   s       r   r@   zShapeDatum.condition   rg   r    c                     d S rd   r   r   s        r   r@   zShapeDatum.condition   rg   r    c                     d S rd   r   re   s      r   r@   zShapeDatum.condition   rg   r    c                     d S rd   r   re   s      r   r   zShapeDatum.title   rg   r    c                     d S rd   r   re   s      r   r   zShapeDatum.title   rg   r    Nc                     d S rd   r   re   s      r   r   zShapeDatum.title   rg   r    r  c                     d S rd   r   re   s      r   r"   zShapeDatum.type   rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zShapeDatum.__init__   r  r    )rb   r  )rK   Nrb   r  )r'   r9   r:   rt  ru  rv  rw  ro   r   r   r@   r	   r   r=  r.   r   r   r"   rp  r;   r<   s   @r   r  r  :   s       m m\ (-$Ne      &i     X 'y	     X 4 IJ Wc    X s |    X tCy \    X    XgYZ gs     ,5	QZI I I I I I I I I Ir    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )
ShapeValuea  ShapeValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDefTypeForShape`, :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 <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zShapeValue.condition   rg   r    c                     d S rd   r   r  s	            r   r@   zShapeValue.condition   rg   r    c                     d S rd   r   r  s                 r   r@   zShapeValue.condition   rg   r    c	                     d S rd   r   r  s
             r   r@   zShapeValue.condition   rg   r    c                     d S rd   r   r   s       r   r@   zShapeValue.condition   rg   r    c                     d S rd   r   r   s        r   r@   zShapeValue.condition   rg   r    rK   c                     d S rd   r   re   s      r   r@   zShapeValue.condition   rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zShapeValue.__init__!  r  r    )rb   r  r<  r<   s   @r   r  r     s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 IJ Wc    X )2 S S S S S S S S S Sr    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Sizeay/  Size 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zSize.aggregate!  rg   r    c                     d S rd   r   ri   s      r   rf   zSize.aggregate!  rg   r    c                     d S rd   r   rl   s      r   rf   zSize.aggregate!  rg   r    c                     d S rd   r   re   s      r   ro   zSize.bandPosition!  rp   r    c                     d S rd   r   re   s      r   rr   zSize.bin!  rg   r    c                     d S rd   r   rt   s               r   rr   zSize.bin!  rg   r    Nc                     d S rd   r   re   s      r   rr   zSize.bin"  rg   r    c                     d S rd   r   r   s       r   r@   zSize.condition"  rg   r    c                     d S rd   r   r   s        r   r@   zSize.condition
"  rg   r    c                     d S rd   r   re   s      r   r@   zSize.condition"  rg   r    c                     d S rd   r   re   s      r   r   z
Size.field"  rg   r    c                     d S rd   r   r   s      r   r   z
Size.field"  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zSize.legend"  rg   r    c                     d S rd   r   re   s      r   r   zSize.legend"  rg   r    c                     d S rd   r   r   s                            r   r   z
Size.scale""  rg   r    c                     d S rd   r   re   s      r   r   z
Size.scale&"  rg   r    c                     d S rd   r   re   s      r   r   z	Size.sort*"  rg   r    c                     d S rd   r   re   s      r   r   z	Size.sort."  rg   r    c                     d S rd   r   re   s      r   r   z	Size.sort2"  rg   r    c                     d S rd   r   re   s      r   r   z	Size.sort6"  rg   r    r   c                     d S rd   r   re   s      r   r   z	Size.sort:"  rg   r    r   c                     d S rd   r   re   s      r   r   z	Size.sort>"  rg   r    r   c                     d S rd   r   re   s      r   r   z	Size.sortB"  rg   r    c                     d S rd   r   r  s        r   r   z	Size.sortF"  rg   r    c                     d S rd   r   r  s       r   r   z	Size.sortJ"  rg   r    c                     d S rd   r   re   s      r   r   z	Size.sortN"  rg   r    r  c                     d S rd   r   re   s      r   r  zSize.timeUnitR"  rg   r    r  c                     d S rd   r   re   s      r   r  zSize.timeUnitV"  rg   r    r#  c                     d S rd   r   re   s      r   r  zSize.timeUnitZ"  rg   r    rB  c                     d S rd   r   re   s      r   r  zSize.timeUnit^"  rg   r    c                     d S rd   r   rb  s         r   r  zSize.timeUnitb"  rg   r    c                     d S rd   r   re   s      r   r   z
Size.titlef"  rg   r    c                     d S rd   r   re   s      r   r   z
Size.titlej"  rg   r    c                     d S rd   r   re   s      r   r   z
Size.titlen"  rg   r    rh  c                     d S rd   r   re   s      r   r"   z	Size.typer"  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zSize.__init__v"  r  r    )rb   r  )rK   Nrb   r  rs  r<   s   @r   r  r  !  s3	       _ _@ (-$N7  $b  c   pv    X (     X (     Xe      T f    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 EF SY    X s v    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k f    X d3i F    X d4j V    X d4=) f    X g78 V    X g  U  V   ci    X g  a  b   ou    X "y	     X %Y     X    X '  #P  Q   ^d    X '  #q  r   E    X '  #x	  y	   F
L
    X '  #O  P   ]c    X (yyi     X s v    X tCy V    X    XgNO \b     "+ii]f$Iiy)99+ + + + + + + + + +r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )	SizeDatumaf  SizeDatum 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:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zSizeDatum.bandPosition"  rp   r    c                     d S rd   r   r   s       r   r@   zSizeDatum.condition"  rg   r    c                     d S rd   r   r   s        r   r@   zSizeDatum.condition"  rg   r    c                     d S rd   r   re   s      r   r@   zSizeDatum.condition"  rg   r    c                     d S rd   r   re   s      r   r   zSizeDatum.title#  rg   r    c                     d S rd   r   re   s      r   r   zSizeDatum.title#  rg   r    Nc                     d S rd   r   re   s      r   r   zSizeDatum.title	#  rg   r    r  c                     d S rd   r   re   s      r   r"   zSizeDatum.type#  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zSizeDatum.__init__#  r  r    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  "  s       m m\ (-$Ne      &i     X 'y	     X 4 EF S^    X s {    X tCy [    X    XgYZ gr     ,5	QZH H H H H H H H H Hr    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )	SizeValueac  SizeValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zSizeValue.condition*#  rg   r    c                     d S rd   r   r  s	            r   r@   zSizeValue.condition.#  rg   r    c                     d S rd   r   r  s                 r   r@   zSizeValue.condition2#  rg   r    c	                     d S rd   r   r  s
             r   r@   zSizeValue.condition6#  rg   r    c                     d S rd   r   r   s       r   r@   zSizeValue.condition:#  rg   r    c                     d S rd   r   r   s        r   r@   zSizeValue.condition>#  rg   r    rK   c                     d S rd   r   re   s      r   r@   zSizeValue.conditionB#  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zSizeValue.__init__G#  r  r    )rb   r  r  r<   s   @r   r  r  #  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 EF S^    X )2 R R R R R R R R R Rr    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Strokea/  Stroke 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zStroke.aggregate0$  rg   r    c                     d S rd   r   ri   s      r   rf   zStroke.aggregate4$  rg   r    c                     d S rd   r   rl   s      r   rf   zStroke.aggregate8$  rg   r    c                     d S rd   r   re   s      r   ro   zStroke.bandPosition<$  rp   r    c                     d S rd   r   re   s      r   rr   z
Stroke.bin?$  rg   r    c                     d S rd   r   rt   s               r   rr   z
Stroke.binC$  rg   r    Nc                     d S rd   r   re   s      r   rr   z
Stroke.binG$  rg   r    c                     d S rd   r   r   s       r   r@   zStroke.conditionK$  rg   r    c                     d S rd   r   r   s        r   r@   zStroke.conditionO$  rg   r    c                     d S rd   r   re   s      r   r@   zStroke.conditionS$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.fieldW$  rg   r    c                     d S rd   r   r   s      r   r   zStroke.field[$  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zStroke.legend_$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.legendc$  rg   r    c                     d S rd   r   r   s                            r   r   zStroke.scaleg$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.scalek$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.sorto$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.sorts$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.sortw$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.sort{$  rg   r    r   c                     d S rd   r   re   s      r   r   zStroke.sort$  rg   r    r   c                     d S rd   r   re   s      r   r   zStroke.sort$  rg   r    r   c                     d S rd   r   re   s      r   r   zStroke.sort$  rg   r    c                     d S rd   r   r  s        r   r   zStroke.sort$  rg   r    c                     d S rd   r   r  s       r   r   zStroke.sort$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.sort$  rg   r    r  c                     d S rd   r   re   s      r   r  zStroke.timeUnit$  rg   r    r  c                     d S rd   r   re   s      r   r  zStroke.timeUnit$  rg   r    r#  c                     d S rd   r   re   s      r   r  zStroke.timeUnit$  rg   r    rB  c                     d S rd   r   re   s      r   r  zStroke.timeUnit$  rg   r    c                     d S rd   r   rb  s         r   r  zStroke.timeUnit$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.title$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.title$  rg   r    c                     d S rd   r   re   s      r   r   zStroke.title$  rg   r    rh  c                     d S rd   r   re   s      r   r"   zStroke.type$  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zStroke.__init__$  sk     	%fd$ 	XyI2>CS\+0uSW.6e$	X 	X SW	X 	X 	X 	X 	Xr    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  K#  s=	       _ _@ (-$N7  $b  c   px    X (     X (     Xe      T h    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 QR _g    X s x    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k h    X d3i H    X d4j X    X d4=) h    X g78 X    X g  U  V   ck    X g  a  b   ow    X "y	     X %Y     X    X '  #P  Q   ^f    X '  #q  r   G    X '  #x	  y	   F
N
    X '  #O  P   ]e    X (yyi     X s x    X tCy X    X    XgNO \d     "+ii]f$Iiy)99X X X X X X X X X Xr    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )StrokeDatuma  StrokeDatum 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:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zStrokeDatum.bandPosition7%  rp   r    c                     d S rd   r   r   s       r   r@   zStrokeDatum.condition:%  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeDatum.condition>%  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeDatum.conditionB%  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDatum.titleF%  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDatum.titleJ%  rg   r    Nc                     d S rd   r   re   s      r   r   zStrokeDatum.titleN%  rg   r    r  c                     d S rd   r   re   s      r   r"   zStrokeDatum.typeR%  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r<  rp  r  s          r   rp  zStrokeDatum.__init__V%  sT    )k4  ) 	JL\e05D	J 	JDH	J 	J 	J 	J 	Jr    )rb   r<  )rK   Nrb   r<  r  r<   s   @r   r<  r<  $  s       m m\ (-$Ne      &i     X 'y	     X 4 QR _l    X s }    X tCy ]    X    XgYZ gt     ,5	QZJ J J J J J J J J Jr    r<  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )StrokeValuea  StrokeValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefGradientstringnullExprRef`, List(:class:`ConditionalValueDefGradientstringnullExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(:class:`Gradient`, string, None, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zStrokeValue.conditiono%  rg   r    c                     d S rd   r   r  s	            r   r@   zStrokeValue.conditions%  rg   r    c                     d S rd   r   r  s                 r   r@   zStrokeValue.conditionw%  rg   r    c	                     d S rd   r   r  s
             r   r@   zStrokeValue.condition{%  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeValue.condition%  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeValue.condition%  rg   r    rK   c                     d S rd   r   re   s      r   r@   zStrokeValue.condition%  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   rG  rp  r  s       r   rp  zStrokeValue.__init__%  s3    )k4  )SSSdSSSSSr    )rb   rG  r  r<   s   @r   rG  rG  \%  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 QR _l    X )2 T T T T T T T T T Tr    rG  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6
StrokeDasha/  StrokeDash 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    F
strokeDashrK   rL   rb   c                     d S rd   r   re   s      r   rf   zStrokeDash.aggregateu&  rg   r    c                     d S rd   r   ri   s      r   rf   zStrokeDash.aggregatey&  rg   r    c                     d S rd   r   rl   s      r   rf   zStrokeDash.aggregate}&  rg   r    c                     d S rd   r   re   s      r   ro   zStrokeDash.bandPosition&  rp   r    c                     d S rd   r   re   s      r   rr   zStrokeDash.bin&  rg   r    c                     d S rd   r   rt   s               r   rr   zStrokeDash.bin&  rg   r    Nc                     d S rd   r   re   s      r   rr   zStrokeDash.bin&  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeDash.condition&  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeDash.condition&  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeDash.condition&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.field&  rg   r    c                     d S rd   r   r   s      r   r   zStrokeDash.field&  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zStrokeDash.legend&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.legend&  rg   r    c                     d S rd   r   r   s                            r   r   zStrokeDash.scale&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.scale&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    c                     d S rd   r   r  s        r   r   zStrokeDash.sort&  rg   r    c                     d S rd   r   r  s       r   r   zStrokeDash.sort&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.sort&  rg   r    r  c                     d S rd   r   re   s      r   r  zStrokeDash.timeUnit&  rg   r    r  c                     d S rd   r   re   s      r   r  zStrokeDash.timeUnit&  rg   r    r#  c                     d S rd   r   re   s      r   r  zStrokeDash.timeUnit&  rg   r    rB  c                     d S rd   r   re   s      r   r  zStrokeDash.timeUnit&  rg   r    c                     d S rd   r   rb  s         r   r  zStrokeDash.timeUnit&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.title&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.title&  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDash.title&  rg   r    rh  c                     d S rd   r   re   s      r   r"   zStrokeDash.type&  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   rQ  rp  rq  s                 r   rp  zStrokeDash.__init__ '  sk     	)j$( 	\9	6BW`/4V5W[2:%d	\ 	\ W[	\ 	\ 	\ 	\ 	\r    )rb   rQ  )rK   Nrb   rQ  )r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r@   r	   r   %ConditionalValueDefnumberArrayExprRefr.   r   r   r   r   rz  r  r   r"   rp  r;   r<   s   @r   rQ  rQ  %  s=	       _ _@ (-$!N7  $b  c   p|    X (     X (     Xe      T l    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 JK Xd    X s |    X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k l    X d3i L    X d4j \    X d4=) l    X g78 \    X g  U  V   co    X g  a  b   o{    X "y	     X %Y     X    X '  #P  Q   ^j    X '  #q  r   K    X '  #x	  y	   F
R
    X '  #O  P   ]i    X (yyi     X s |    X tCy \    X    XgNO \h     "+ii]f$Iiy)99\ \ \ \ \ \ \ \ \ \r    rQ  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )StrokeDashDatumav  StrokeDashDatum 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:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FrR  rK   rb   c                     d S rd   r   re   s      r   ro   zStrokeDashDatum.bandPosition|'  rp   r    c                     d S rd   r   r   s       r   r@   zStrokeDashDatum.condition'  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeDashDatum.condition'  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeDashDatum.condition'  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDashDatum.title'  rg   r    c                     d S rd   r   re   s      r   r   zStrokeDashDatum.title'  rg   r    Nc                     d S rd   r   re   s      r   r   zStrokeDashDatum.title'  rg   r    r  c                     d S rd   r   re   s      r   r"   zStrokeDashDatum.type'  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   ry  rp  r  s          r   rp  zStrokeDashDatum.__init__'  sT    -ot$$- 	cE8AUY	c 	c]a	c 	c 	c 	c 	cr    )rb   ry  )rK   Nrb   ry  )r'   r9   r:   rt  ru  rv  rw  ro   r   r   r@   r	   r   rw  r.   r   r   r"   rp  r;   r<   s   @r   ry  ry  	'  s       m m\ (-$!Ne 0A     &i     X 'y	     X 4 JK Xi    X s '8    X tCy ->    X    XgYZ gx     ,5	QZc c c c c c c c c cr    ry  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )StrokeDashValueay  StrokeDashValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberArrayExprRef`, List(:class:`ConditionalValueDefnumberArrayExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(List(float), :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    FrR  rb   c                     d S rd   r   r  s                r   r@   zStrokeDashValue.condition'  rg   r    c                     d S rd   r   r  s	            r   r@   zStrokeDashValue.condition'  rg   r    c                     d S rd   r   r  s                 r   r@   zStrokeDashValue.condition'  rg   r    c	                     d S rd   r   r  s
             r   r@   zStrokeDashValue.condition'  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeDashValue.condition'  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeDashValue.condition'  rg   r    rK   c                     d S rd   r   re   s      r   r@   zStrokeDashValue.condition'  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zStrokeDashValue.__init__'  s4    -ot$$-WEYWWRVWWWWWr    )rb   r  )r'   r9   r:   rt  ru  rv  r   r   r@   r	   r   rw  rp  r;   r<   s   @r   r  r  '  s4         (-$!N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 JK Xi    X )2 X X X X X X X X X Xr    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6StrokeOpacitya/  StrokeOpacity 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zStrokeOpacity.aggregate(  rg   r    c                     d S rd   r   ri   s      r   rf   zStrokeOpacity.aggregate(  rg   r    c                     d S rd   r   rl   s      r   rf   zStrokeOpacity.aggregate(  rg   r    c                     d S rd   r   re   s      r   ro   zStrokeOpacity.bandPosition(  rp   r    c                     d S rd   r   re   s      r   rr   zStrokeOpacity.bin(  rg   r    c                     d S rd   r   rt   s               r   rr   zStrokeOpacity.bin(  rg   r    Nc                     d S rd   r   re   s      r   rr   zStrokeOpacity.bin(  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeOpacity.condition(  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeOpacity.condition(  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeOpacity.condition(  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.field(  rg   r    c                     d S rd   r   r   s      r   r   zStrokeOpacity.field(  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zStrokeOpacity.legend(  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.legend(  rg   r    c                     d S rd   r   r   s                            r   r   zStrokeOpacity.scale(  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.scale(  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort(  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort(  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort)  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort	)  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort)  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort)  rg   r    c                     d S rd   r   r  s        r   r   zStrokeOpacity.sort)  rg   r    c                     d S rd   r   r  s       r   r   zStrokeOpacity.sort)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.sort)  rg   r    r  c                     d S rd   r   re   s      r   r  zStrokeOpacity.timeUnit!)  rg   r    r  c                     d S rd   r   re   s      r   r  zStrokeOpacity.timeUnit%)  rg   r    r#  c                     d S rd   r   re   s      r   r  zStrokeOpacity.timeUnit))  rg   r    rB  c                     d S rd   r   re   s      r   r  zStrokeOpacity.timeUnit-)  rg   r    c                     d S rd   r   rb  s         r   r  zStrokeOpacity.timeUnit1)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.title5)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.title9)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacity.title=)  rg   r    rh  c                     d S rd   r   re   s      r   r"   zStrokeOpacity.typeA)  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zStrokeOpacity.__init__E)  sl     	,mT""+ 	_i99E3Zc27eZ^5=UQU	_ 	_ Z^	_ 	_ 	_ 	_ 	_r    )rb   r  )rK   Nrb   r  rs  r<   s   @r   r  r  '  s=	       _ _@ (-$$N7  $b  c   p    X (     X (     Xe      T o    X "9Y_hr{  FO  V_  fo  w@     X    X &i     X 'y	     X 4 EF Sb    X s     X $     X #	\et}  LU  aj  v  HQ  ^g  xA  S\  r{  QZ  nw  CL  Yb  r{  HQ  ]f  r{  KT  en  @	I	  V	_	  m	v	  E
N
  ]
f
  u
~
  PY  cl  v  HQ  Zc  mv  CL  Zc  py  LU  gp  ~G  V_  ox  EN  bk  H  U^  js  AJ  R[  hq  H  Xa  nw  CL  \e  v  QZ  gp  BK  Zc  qz  IR  Yb  kt  }F     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k o    X d3i O    X d4j _    X d4=) o    X g78 _    X g  U  V   cr    X g  a  b   o~    X "y	     X %Y     X    X '  #P  Q   ^m    X '  #q  r   N    X '  #x	  y	   F
U
    X '  #O  P   ]l    X (yyi     X s     X tCy _    X    XgNO \k     "+ii]f$Iiy)99_ _ _ _ _ _ _ _ _ _r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )StrokeOpacityDatumao  StrokeOpacityDatum 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:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zStrokeOpacityDatum.bandPosition)  rp   r    c                     d S rd   r   r   s       r   r@   zStrokeOpacityDatum.condition)  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeOpacityDatum.condition)  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeOpacityDatum.condition)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacityDatum.title)  rg   r    c                     d S rd   r   re   s      r   r   zStrokeOpacityDatum.title)  rg   r    Nc                     d S rd   r   re   s      r   r   zStrokeOpacityDatum.title)  rg   r    r  c                     d S rd   r   re   s      r   r"   zStrokeOpacityDatum.type)  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zStrokeOpacityDatum.__init__)  sU    0 $''0 	fu<;DEX\	f 	f`d	f 	f 	f 	f 	fr    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  N)  s       m m\ (-$$Ne 0D     &i     X 'y	     X 4 EF Sg    X s ';    X tCy -A    X    XgYZ g{     ,5	QZf f f f f f f f f fr    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )StrokeOpacityValueal  StrokeOpacityValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zStrokeOpacityValue.condition)  rg   r    c                     d S rd   r   r  s	            r   r@   zStrokeOpacityValue.condition)  rg   r    c                     d S rd   r   r  s                 r   r@   zStrokeOpacityValue.condition*  rg   r    c	                     d S rd   r   r  s
             r   r@   zStrokeOpacityValue.condition*  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeOpacityValue.condition	*  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeOpacityValue.condition*  rg   r    rK   c                     d S rd   r   re   s      r   r@   zStrokeOpacityValue.condition*  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zStrokeOpacityValue.__init__*  s5    0 $''0Zu	ZZUYZZZZZr    )rb   r  r  r<   s   @r   r  r  )  s4         (-$$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 EF Sg    X )2 [ [ [ [ [ [ [ [ [ [r    r  c            C           e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zed5d            Zee	e	fd4d            Zee	e	e	fd4d            Zedeej                 dd fd            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fBd4d            Zed5d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd4d"            Zee	e	fd4d#            Zed5d$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6StrokeWidtha/  StrokeWidth 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    legend : anyOf(:class:`Legend`, None)
        An object defining properties of the legend. If ``null``, the legend for the
        encoding channel will be removed.

        **Default value:** If undefined, default `legend properties
        <https://vega.github.io/vega-lite/docs/legend.html>`__ are applied.

        **See also:** `legend <https://vega.github.io/vega-lite/docs/legend.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zStrokeWidth.aggregate*  rg   r    c                     d S rd   r   ri   s      r   rf   zStrokeWidth.aggregate+  rg   r    c                     d S rd   r   rl   s      r   rf   zStrokeWidth.aggregate+  rg   r    c                     d S rd   r   re   s      r   ro   zStrokeWidth.bandPosition+  rp   r    c                     d S rd   r   re   s      r   rr   zStrokeWidth.bin+  rg   r    c                     d S rd   r   rt   s               r   rr   zStrokeWidth.bin+  rg   r    Nc                     d S rd   r   re   s      r   rr   zStrokeWidth.bin+  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeWidth.condition+  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeWidth.condition+  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeWidth.condition"+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.field&+  rg   r    c                     d S rd   r   r   s      r   r   zStrokeWidth.field*+  rg   r    cC                     d S rd   r   r   sD                                                                       r   r   zStrokeWidth.legend.+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.legend2+  rg   r    c                     d S rd   r   r   s                            r   r   zStrokeWidth.scale6+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.scale:+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.sort>+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.sortB+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.sortF+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.sortJ+  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeWidth.sortN+  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeWidth.sortR+  rg   r    r   c                     d S rd   r   re   s      r   r   zStrokeWidth.sortV+  rg   r    c                     d S rd   r   r  s        r   r   zStrokeWidth.sortZ+  rg   r    c                     d S rd   r   r  s       r   r   zStrokeWidth.sort^+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.sortb+  rg   r    r  c                     d S rd   r   re   s      r   r  zStrokeWidth.timeUnitf+  rg   r    r  c                     d S rd   r   re   s      r   r  zStrokeWidth.timeUnitj+  rg   r    r#  c                     d S rd   r   re   s      r   r  zStrokeWidth.timeUnitn+  rg   r    rB  c                     d S rd   r   re   s      r   r  zStrokeWidth.timeUnitr+  rg   r    c                     d S rd   r   rb  s         r   r  zStrokeWidth.timeUnitv+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.titlez+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.title~+  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidth.title+  rg   r    rh  c                     d S rd   r   re   s      r   r"   zStrokeWidth.type+  rp   r    c                 b     t          t          |           j        d|||||||||	|
||d| d S ro  )r2   r  rp  rq  s                 r   rp  zStrokeWidth.__init__+  r  r    )rb   r  )rK   Nrb   r  rs  r<   s   @r   r  r  *  r  r    r  c                   8    e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )StrokeWidthDatumam  StrokeWidthDatum 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:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zStrokeWidthDatum.bandPosition,  rp   r    c                     d S rd   r   r   s       r   r@   zStrokeWidthDatum.condition	,  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeWidthDatum.condition,  rg   r    c                     d S rd   r   re   s      r   r@   zStrokeWidthDatum.condition,  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidthDatum.title,  rg   r    c                     d S rd   r   re   s      r   r   zStrokeWidthDatum.title,  rg   r    Nc                     d S rd   r   re   s      r   r   zStrokeWidthDatum.title,  rg   r    r  c                     d S rd   r   re   s      r   r"   zStrokeWidthDatum.type!,  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zStrokeWidthDatum.__init__%,  r  r    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  +  r  r    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )StrokeWidthValueaj  StrokeWidthValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalMarkPropFieldOrDatumDef`, :class:`ConditionalValueDefnumberExprRef`, List(:class:`ConditionalValueDefnumberExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(float, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   r  s                r   r@   zStrokeWidthValue.condition>,  rg   r    c                     d S rd   r   r  s	            r   r@   zStrokeWidthValue.conditionB,  rg   r    c                     d S rd   r   r  s                 r   r@   zStrokeWidthValue.conditionF,  rg   r    c	                     d S rd   r   r  s
             r   r@   zStrokeWidthValue.conditionJ,  rg   r    c                     d S rd   r   r   s       r   r@   zStrokeWidthValue.conditionN,  rg   r    c                     d S rd   r   r   s        r   r@   zStrokeWidthValue.conditionR,  rg   r    rK   c                     d S rd   r   re   s      r   r@   zStrokeWidthValue.conditionV,  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zStrokeWidthValue.__init__[,  r;  r    )rb   r  r  r<   s   @r   r  r  +,  r  r    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd'd            Zee	fd'd	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d'd            Zededd fd            Zed(d            Zee	e	fd'd            Zee	e	e	fd'd            Zedeej                 dd fd            Zededd fd            Zee	fd'd            Zededd fd            Zededd fd            Zdedd fdZeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd'd             Zededd fd!            Zedee         dd fd"            Zed(d#            Zded$         dd fd%Ze	e	e	e	e	e	e	e	e	e	e	f fd&	Z xZS ))Texta)  Text 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    format : anyOf(string, :class:`Dict`)
        When used with the default ``"number"`` and ``"time"`` format type, the text
        formatting pattern for labels of guides (axes, legends, headers) and text marks.


        * If the format type is ``"number"`` (e.g., for quantitative fields), this is D3's
          `number format pattern <https://github.com/d3/d3-format#locale_format>`__.
        * If the format type is ``"time"`` (e.g., for temporal fields), this is D3's `time
          format pattern <https://github.com/d3/d3-time-format#locale_format>`__.

        See the `format documentation <https://vega.github.io/vega-lite/docs/format.html>`__
        for more examples.

        When used with a `custom formatType
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__, this
        value will be passed as ``format`` alongside ``datum.value`` to the registered
        function.

        **Default value:**  Derived from `numberFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for number
        format and from `timeFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for time
        format.
    formatType : string
        The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom
        format type
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__.

        **Default value:**


        * ``"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:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zText.aggregate)-  rg   r    c                     d S rd   r   ri   s      r   rf   zText.aggregate--  rg   r    c                     d S rd   r   rl   s      r   rf   zText.aggregate1-  rg   r    c                     d S rd   r   re   s      r   ro   zText.bandPosition5-  rp   r    c                     d S rd   r   re   s      r   rr   zText.bin8-  rg   r    c                     d S rd   r   rt   s               r   rr   zText.bin<-  rg   r    c                     d S rd   r   re   s      r   rr   zText.bin@-  rg   r    Nc                     d S rd   r   re   s      r   rr   zText.binD-  rg   r    c                     d S rd   r   r   s       r   r@   zText.conditionH-  rg   r    c                     d S rd   r   r   s        r   r@   zText.conditionL-  rg   r    c                     d S rd   r   re   s      r   r@   zText.conditionP-  rg   r    c                     d S rd   r   re   s      r   r   z
Text.fieldT-  rg   r    c                     d S rd   r   r   s      r   r   z
Text.fieldX-  rg   r    c                     d S rd   r   re   s      r   r&   zText.format\-  rg   r    c                     d S rd   r   re   s      r   r&   zText.format`-  rg   r    c                     d S rd   r   re   s      r   r   zText.formatTyped-  rp   r    r  c                     d S rd   r   re   s      r   r  zText.timeUnitg-  rg   r    r  c                     d S rd   r   re   s      r   r  zText.timeUnitk-  rg   r    r#  c                     d S rd   r   re   s      r   r  zText.timeUnito-  rg   r    rB  c                     d S rd   r   re   s      r   r  zText.timeUnits-  rg   r    c                     d S rd   r   rb  s         r   r  zText.timeUnitw-  rg   r    c                     d S rd   r   re   s      r   r   z
Text.title{-  rg   r    c                     d S rd   r   re   s      r   r   z
Text.title-  rg   r    c                     d S rd   r   re   s      r   r   z
Text.title-  rg   r    rh  c                     d S rd   r   re   s      r   r"   z	Text.type-  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S r,  )r2   r  rp  r-  s                r   rp  zText.__init__-  r  r    )rb   r  )rK   Nrb   r  )r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r.   r@   r	   r   ConditionalValueDefTextExprRefr   r&   r0  r   r  r   r"   rp  r;   r<   s   @r   r  r  _,  s#       D DJ (-$N7  $b  c   pv    X (     X (     Xe      T f    X "9Y_hr{  FO  V_  fo  w@     X S V    X    X &i     X 'y	     X 4 CD QW    X s v    X $     X      X      XC F     '  #P  Q   ^d    X '  #q  r   E    X '  #x	  y	   F
L
    X '  #O  P   ]c    X (yyi     X s v    X tCy V    X    XgNO \b     "+ii]f$IiT]#99+ + + + + + + + + +r    r  c                       e Zd ZdZdZdZdedd fdZee	e	fdd            Z
ee	e	e	fdd            Z
edeej                 dd fd	            Z
ededd fd
            Zededd fd            Zdedd fdZededd fd            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	e	e	f fd	Z xZS )	TextDatuma  TextDatum 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:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        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.
    format : anyOf(string, :class:`Dict`)
        When used with the default ``"number"`` and ``"time"`` format type, the text
        formatting pattern for labels of guides (axes, legends, headers) and text marks.


        * If the format type is ``"number"`` (e.g., for quantitative fields), this is D3's
          `number format pattern <https://github.com/d3/d3-format#locale_format>`__.
        * If the format type is ``"time"`` (e.g., for temporal fields), this is D3's `time
          format pattern <https://github.com/d3/d3-time-format#locale_format>`__.

        See the `format documentation <https://vega.github.io/vega-lite/docs/format.html>`__
        for more examples.

        When used with a `custom formatType
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__, this
        value will be passed as ``format`` alongside ``datum.value`` to the registered
        function.

        **Default value:**  Derived from `numberFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for number
        format and from `timeFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for time
        format.
    formatType : string
        The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom
        format type
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__.

        **Default value:**


        * ``"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)
        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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rb   c                     d S rd   r   re   s      r   ro   zTextDatum.bandPosition).  rp   r    c                     d S rd   r   r   s       r   r@   zTextDatum.condition,.  rg   r    c                     d S rd   r   r   s        r   r@   zTextDatum.condition0.  rg   r    c                     d S rd   r   re   s      r   r@   zTextDatum.condition4.  rg   r    c                     d S rd   r   re   s      r   r&   zTextDatum.format8.  rg   r    c                     d S rd   r   re   s      r   r&   zTextDatum.format<.  rg   r    c                     d S rd   r   re   s      r   r   zTextDatum.formatType@.  rp   r    c                     d S rd   r   re   s      r   r   zTextDatum.titleC.  rg   r    c                     d S rd   r   re   s      r   r   zTextDatum.titleG.  rg   r    Nc                     d S rd   r   re   s      r   r   zTextDatum.titleK.  rg   r    r  c                     d S rd   r   re   s      r   r"   zTextDatum.typeO.  rp   r    c                 X     t          t          |           j        d|||||||d| d S )N)rG   ro   r@   r&   r   r   r"   r   )r2   r!  rp  )
r   rG   ro   r@   r&   r   r   r"   r   r   s
            r   rp  zTextDatum.__init__S.  sR    'i' 	0e,Zc/5*TY`d	0 	0*.	0 	0 	0 	0 	0r    )rb   r!  )rK   Nrb   r!  )r'   r9   r:   rt  ru  rv  rw  ro   r   r   r@   r	   r   r  r.   r&   r0  r   r   r   r"   rp  r;   r<   s   @r   r!  r!  -  s>       O O` (-$Ne      &i     X 'y	     X 4 CD Q\    X      X      XC K     s {    X tCy [    X    XgYZ gr     ,5	R[%YY0 0 0 0 0 0 0 0 0 0r    r!  c                        e Zd ZdZdZdZeeeeeeeeeeef
dd            Zeeeeeeeeeeeefdd            Zeeefdd            Zeeeefdd            Zed	e	e
j                 dd fd
            Zef fd	Z xZS )	TextValuea^  TextValue schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    condition : anyOf(:class:`ConditionalStringFieldDef`, :class:`ConditionalValueDefTextExprRef`, List(:class:`ConditionalValueDefTextExprRef`))
        A field definition or one or more value definition(s) with a parameter predicate.
    value : anyOf(:class:`Text`, :class:`ExprRef`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   rb   c                     d S rd   r   )r   rf   ro   rr   r   r&   r   r   r  r   r"   r   s               r   r@   zTextValue.conditionm.  rg   r    c                     d S rd   r   )r   rf   ro   rr   r   r   r&   r   r   r  r   r"   r   s                r   r@   zTextValue.conditionq.  rg   r    c                     d S rd   r   r   s       r   r@   zTextValue.conditionu.  rg   r    c                     d S rd   r   r   s        r   r@   zTextValue.conditiony.  rg   r    rK   c                     d S rd   r   re   s      r   r@   zTextValue.condition}.  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r/  rp  r  s       r   rp  zTextValue.__init__.  r  r    )rb   r/  )r'   r9   r:   rt  ru  rv  r   r   r@   r	   r   r  rp  r;   r<   s   @r   r/  r/  Z.  s         (-$N"+)Zclu  CL  S\  gp  xA  HQ     X "+)Zckt  ~G  T]  en  yB  JS  Zc     X &i     X 'y	     X 4 CD Q\    X )2 R R R R R R R R R Rr    r/  c                   "    e Zd ZdZdZdZeded         dd fd            Zee	fd4d            Zee	fd4d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d4d            Zededd fd            Zed5d            Zededd fd            Zee	fd4d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd4d            Zed5d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	fd4d            Zee	e	fd4d            Zed5d             Zeded!         dd fd"            Zed5d#            Zededd fd$            Zeded%         dd fd&            Zeded'         dd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zee	e	e	e	fd4d-            Zededd fd.            Zedee         dd fd/            Zed5d0            Zded1         dd fd2Ze	e	e	e	e	e	e	e	e	e	e	f fd3	Z xZS )6Thetaa2  Theta 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FthetarK   rL   rb   c                     d S rd   r   re   s      r   rf   zTheta.aggregatez/  rg   r    c                     d S rd   r   ri   s      r   rf   zTheta.aggregate~/  rg   r    c                     d S rd   r   rl   s      r   rf   zTheta.aggregate/  rg   r    c                     d S rd   r   re   s      r   ro   zTheta.bandPosition/  rp   r    c                     d S rd   r   re   s      r   rr   z	Theta.bin/  rg   r    c                     d S rd   r   rt   s               r   rr   z	Theta.bin/  rg   r    c                     d S rd   r   re   s      r   rr   z	Theta.bin/  rg   r    Nc                     d S rd   r   re   s      r   rr   z	Theta.bin/  rg   r    c                     d S rd   r   re   s      r   r   zTheta.field/  rg   r    c                     d S rd   r   r   s      r   r   zTheta.field/  rg   r    c                     d S rd   r   r   s                            r   r   zTheta.scale/  rg   r    c                     d S rd   r   re   s      r   r   zTheta.scale/  rg   r    c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    r   c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    r   c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    r   c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    c                     d S rd   r   r  s        r   r   z
Theta.sort/  rg   r    c                     d S rd   r   r  s       r   r   z
Theta.sort/  rg   r    c                     d S rd   r   re   s      r   r   z
Theta.sort/  rg   r    r4  c                     d S rd   r   re   s      r   r7  zTheta.stack/  rg   r    c                     d S rd   r   re   s      r   r7  zTheta.stack/  rg   r    c                     d S rd   r   re   s      r   r7  zTheta.stack/  rg   r    r  c                     d S rd   r   re   s      r   r  zTheta.timeUnit/  rg   r    r  c                     d S rd   r   re   s      r   r  zTheta.timeUnit/  rg   r    r#  c                     d S rd   r   re   s      r   r  zTheta.timeUnit/  rg   r    rB  c                     d S rd   r   re   s      r   r  zTheta.timeUnit/  rg   r    c                     d S rd   r   rb  s         r   r  zTheta.timeUnit/  rg   r    c                     d S rd   r   re   s      r   r   zTheta.title/  rg   r    c                     d S rd   r   re   s      r   r   zTheta.title/  rg   r    c                     d S rd   r   re   s      r   r   zTheta.title/  rg   r    rh  c                     d S rd   r   re   s      r   r"   z
Theta.type/  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S rD  )r2   r7  rp  rE  s                r   rp  zTheta.__init__0  sd     	$eT# 	Wi9[g(+5DX]-5U	W 	WQU	W 	W 	W 	W 	Wr    )rb   r7  )rK   Nrb   r7  rF  r<   s   @r   r7  r7  .  sb       n n^ (-$N7  $b  c   pw    X (     X (     Xe      T g    X "9Y_hr{  FO  V_  fo  w@     X S W    X    X s w    X $     X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k g    X d3i G    X d4j W    X d4=) g    X g78 W    X g  U  V   cj    X g  a  b   ov    X "y	     X %Y     X    X w<= '    X    X t     X '  #P  Q   ^e    X '  #q  r   F    X '  #x	  y	   F
M
    X '  #O  P   ]d    X (yyi     X s w    X tCy W    X    XgNO \c     "+ii]f 		]f yW W W W W W W W W Wr    r7  c                       e Zd ZdZdZdZdedd fdZee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fdd            Z
edd	            Z
eded
         dd fd            Zedd            Zededd fd            Zededd fd            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	e	f fd	Z xZS )
ThetaDatuma;   ThetaDatum 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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr8  rK   rb   c                     d S rd   r   re   s      r   ro   zThetaDatum.bandPosition0  rp   r    c                     d S rd   r   r   s                            r   r   zThetaDatum.scale0  rg   r    Nc                     d S rd   r   re   s      r   r   zThetaDatum.scale0  rg   r    r4  c                     d S rd   r   re   s      r   r7  zThetaDatum.stack0  rg   r    c                     d S rd   r   re   s      r   r7  zThetaDatum.stack0  rg   r    c                     d S rd   r   re   s      r   r7  zThetaDatum.stack0  rg   r    c                     d S rd   r   re   s      r   r   zThetaDatum.title0  rg   r    c                     d S rd   r   re   s      r   r   zThetaDatum.title0  rg   r    c                     d S rd   r   re   s      r   r   zThetaDatum.title0  rg   r    r  c                     d S rd   r   re   s      r   r"   zThetaDatum.type0  rp   r    c           
      V     t          t          |           j        d||||||d| d S rT  )r2   r]  rp  rU  s	           r   rp  zThetaDatum.__init__0  sV    (j$( 	Vu<W\/4E	V 	VPT	V 	V 	V 	V 	Vr    )rb   r]  )rK   Nrb   r]  rV  r<   s   @r   r]  r]  	0  s       R Rf (-$Ne      #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X w<= ,    X    X t     X s |    X tCy \    X    XgYZ gs     ,5IY^gV V V V V V V V V Vr    r]  c                   *     e Zd ZdZdZdZ fdZ xZS )
ThetaValuea  ThetaValue schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr8  c                 L     t          t          |           j        dd|i| d S r  )r2   rj  rp  r  s      r   rp  zThetaValue.__init__0  s1    (j$(==u======r    r  r<   s   @r   rj  rj  0  sO          (-$N> > > > > > > > >r    rj  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )Theta2a  Theta2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    Ftheta2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zTheta2.aggregateE1  rg   r    c                     d S rd   r   ri   s      r   rf   zTheta2.aggregateI1  rg   r    c                     d S rd   r   rl   s      r   rf   zTheta2.aggregateM1  rg   r    c                     d S rd   r   re   s      r   ro   zTheta2.bandPositionQ1  rp   r    Nc                     d S rd   r   re   s      r   rr   z
Theta2.binT1  rp   r    c                     d S rd   r   re   s      r   r   zTheta2.fieldW1  rg   r    c                     d S rd   r   r   s      r   r   zTheta2.field[1  rg   r    r  c                     d S rd   r   re   s      r   r  zTheta2.timeUnit_1  rg   r    r  c                     d S rd   r   re   s      r   r  zTheta2.timeUnitc1  rg   r    r#  c                     d S rd   r   re   s      r   r  zTheta2.timeUnitg1  rg   r    rB  c                     d S rd   r   re   s      r   r  zTheta2.timeUnitk1  rg   r    c                     d S rd   r   rb  s         r   r  zTheta2.timeUnito1  rg   r    c                     d S rd   r   re   s      r   r   zTheta2.titles1  rg   r    c                     d S rd   r   re   s      r   r   zTheta2.titlew1  rg   r    c                     d S rd   r   re   s      r   r   zTheta2.title{1  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   rm  rp  ru  s
            r   rp  zTheta2.__init__1  Q    $fd$ 	:yI2>Cu_g+0	: 	:48	: 	: 	: 	: 	:r    )rb   rm  )rK   Nrb   rm  rv  r<   s   @r   rm  rm  0  -       X Xr (-$N7  $b  c   px    X (     X (     Xe         s x    X $     X '  #P  Q   ^f    X '  #q  r   G    X '  #x	  y	   F
N
    X '  #O  P   ]e    X (yyi     X s x    X tCy X    X    X "+ii]f 9I: : : : : : : : : :r    rm  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )Theta2DatumaZ  Theta2Datum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Frn  rK   rb   c                     d S rd   r   re   s      r   ro   zTheta2Datum.bandPosition1  rp   r    c                     d S rd   r   re   s      r   r   zTheta2Datum.title1  rg   r    c                     d S rd   r   re   s      r   r   zTheta2Datum.title1  rg   r    Nc                     d S rd   r   re   s      r   r   zTheta2Datum.title1  rg   r    r  c                     d S rd   r   re   s      r   r"   zTheta2Datum.type2  rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   r  rp  r_  s         r   rp  zTheta2Datum.__init__2  sJ    )k4  ) 	=LX]/3	= 	=7;	= 	= 	= 	= 	=r    )rK   Nrb   r  r`  r<   s   @r   r  r  1  s+       f fN (-$Ne      s }    X tCy ]    X    XgYZ gt     ,5II = = = = = = = = = =r    r  c                   *     e Zd ZdZdZdZ fdZ xZS )Theta2Valuea  Theta2Value schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Frn  c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zTheta2Value.__init__ 2  rZ  r    r  r<   s   @r   r  r  2  r[  r    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd'd            Zee	fd'd	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d'd            Zededd fd            Zed(d            Zee	e	fd'd            Zee	e	e	fd'd            Zedeej                 dd fd            Zededd fd            Zee	fd'd            Zededd fd            Zededd fd            Zdedd fdZeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd'd             Zededd fd!            Zedee         dd fd"            Zed(d#            Zded$         dd fd%Ze	e	e	e	e	e	e	e	e	e	e	f fd&	Z xZS ))Tooltipa)  Tooltip 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    format : anyOf(string, :class:`Dict`)
        When used with the default ``"number"`` and ``"time"`` format type, the text
        formatting pattern for labels of guides (axes, legends, headers) and text marks.


        * If the format type is ``"number"`` (e.g., for quantitative fields), this is D3's
          `number format pattern <https://github.com/d3/d3-format#locale_format>`__.
        * If the format type is ``"time"`` (e.g., for temporal fields), this is D3's `time
          format pattern <https://github.com/d3/d3-time-format#locale_format>`__.

        See the `format documentation <https://vega.github.io/vega-lite/docs/format.html>`__
        for more examples.

        When used with a `custom formatType
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__, this
        value will be passed as ``format`` alongside ``datum.value`` to the registered
        function.

        **Default value:**  Derived from `numberFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for number
        format and from `timeFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for time
        format.
    formatType : string
        The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom
        format type
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__.

        **Default value:**


        * ``"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:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FtooltiprK   rL   rb   c                     d S rd   r   re   s      r   rf   zTooltip.aggregate2  rg   r    c                     d S rd   r   ri   s      r   rf   zTooltip.aggregate2  rg   r    c                     d S rd   r   rl   s      r   rf   zTooltip.aggregate2  rg   r    c                     d S rd   r   re   s      r   ro   zTooltip.bandPosition2  rp   r    c                     d S rd   r   re   s      r   rr   zTooltip.bin2  rg   r    c                     d S rd   r   rt   s               r   rr   zTooltip.bin3  rg   r    c                     d S rd   r   re   s      r   rr   zTooltip.bin3  rg   r    Nc                     d S rd   r   re   s      r   rr   zTooltip.bin	3  rg   r    c                     d S rd   r   r   s       r   r@   zTooltip.condition3  rg   r    c                     d S rd   r   r   s        r   r@   zTooltip.condition3  rg   r    c                     d S rd   r   re   s      r   r@   zTooltip.condition3  rg   r    c                     d S rd   r   re   s      r   r   zTooltip.field3  rg   r    c                     d S rd   r   r   s      r   r   zTooltip.field3  rg   r    c                     d S rd   r   re   s      r   r&   zTooltip.format!3  rg   r    c                     d S rd   r   re   s      r   r&   zTooltip.format%3  rg   r    c                     d S rd   r   re   s      r   r   zTooltip.formatType)3  rp   r    r  c                     d S rd   r   re   s      r   r  zTooltip.timeUnit,3  rg   r    r  c                     d S rd   r   re   s      r   r  zTooltip.timeUnit03  rg   r    r#  c                     d S rd   r   re   s      r   r  zTooltip.timeUnit43  rg   r    rB  c                     d S rd   r   re   s      r   r  zTooltip.timeUnit83  rg   r    c                     d S rd   r   rb  s         r   r  zTooltip.timeUnit<3  rg   r    c                     d S rd   r   re   s      r   r   zTooltip.title@3  rg   r    c                     d S rd   r   re   s      r   r   zTooltip.titleD3  rg   r    c                     d S rd   r   re   s      r   r   zTooltip.titleH3  rg   r    rh  c                     d S rd   r   re   s      r   r"   zTooltip.typeL3  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S r,  )r2   r  rp  r-  s                r   rp  zTooltip.__init__P3  sh     	&gt% 	Y	Y3?ST],1&Z/7u4	Y 	Y TX	Y 	Y 	Y 	Y 	Yr    )rb   r  )rK   Nrb   r  r.  r<   s   @r   r  r  $2  s-       D DJ (-$N7  $b  c   py    X (     X (     Xe 	     T i    X "9Y_hr{  FO  V_  fo  w@     X S Y    X    X &i     X 'y	     X 4 EF S\    X s y    X $     X  	    X      XC I     '  #P  Q   ^g    X '  #q  r   H    X '  #x	  y	   F
O
    X '  #O  P   ]f    X (yyi     X s y    X tCy Y    X    XgNO \e     "+ii]f$IiT]#99Y Y Y Y Y Y Y Y Y Yr    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )TooltipValueau  TooltipValue 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 <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  rb   c                     d S rd   r   r  s                r   r@   zTooltipValue.conditionl3  rg   r    c                     d S rd   r   r  s	            r   r@   zTooltipValue.conditionp3  rg   r    c                     d S rd   r   r  s                 r   r@   zTooltipValue.conditiont3  rg   r    c	                     d S rd   r   r  s
             r   r@   zTooltipValue.conditionx3  rg   r    c                     d S rd   r   r   s       r   r@   zTooltipValue.condition|3  rg   r    c                     d S rd   r   r   s        r   r@   zTooltipValue.condition3  rg   r    rK   c                     d S rd   r   re   s      r   r@   zTooltipValue.condition3  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zTooltipValue.__init__3  r  r    )rb   r  r<  r<   s   @r   r  r  Y3  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 IJ We    X )2 U U U U U U U U U Ur    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd'd            Zee	fd'd	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d'd            Zededd fd            Zed(d            Zee	e	fd'd            Zee	e	e	fd'd            Zedeej                 dd fd            Zededd fd            Zee	fd'd            Zededd fd            Zededd fd            Zdedd fdZeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fd'd             Zededd fd!            Zedee         dd fd"            Zed(d#            Zded$         dd fd%Ze	e	e	e	e	e	e	e	e	e	e	f fd&	Z xZS ))Urla)  Url 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    condition : anyOf(:class:`ConditionalValueDefstringExprRef`, List(:class:`ConditionalValueDefstringExprRef`))
        One or more value definition(s) with `a parameter or a test predicate
        <https://vega.github.io/vega-lite/docs/condition.html>`__.

        **Note:** A field definition's ``condition`` property can only contain `conditional
        value definitions <https://vega.github.io/vega-lite/docs/condition.html#value>`__
        since Vega-Lite only allows at most one encoded field per encoding channel.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    format : anyOf(string, :class:`Dict`)
        When used with the default ``"number"`` and ``"time"`` format type, the text
        formatting pattern for labels of guides (axes, legends, headers) and text marks.


        * If the format type is ``"number"`` (e.g., for quantitative fields), this is D3's
          `number format pattern <https://github.com/d3/d3-format#locale_format>`__.
        * If the format type is ``"time"`` (e.g., for temporal fields), this is D3's `time
          format pattern <https://github.com/d3/d3-time-format#locale_format>`__.

        See the `format documentation <https://vega.github.io/vega-lite/docs/format.html>`__
        for more examples.

        When used with a `custom formatType
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__, this
        value will be passed as ``format`` alongside ``datum.value`` to the registered
        function.

        **Default value:**  Derived from `numberFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for number
        format and from `timeFormat
        <https://vega.github.io/vega-lite/docs/config.html#format>`__ config for time
        format.
    formatType : string
        The format type for labels. One of ``"number"``, ``"time"``, or a `registered custom
        format type
        <https://vega.github.io/vega-lite/docs/config.html#custom-format-type>`__.

        **Default value:**


        * ``"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:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FurlrK   rL   rb   c                     d S rd   r   re   s      r   rf   zUrl.aggregateW4  rg   r    c                     d S rd   r   ri   s      r   rf   zUrl.aggregate[4  rg   r    c                     d S rd   r   rl   s      r   rf   zUrl.aggregate_4  rg   r    c                     d S rd   r   re   s      r   ro   zUrl.bandPositionc4  rp   r    c                     d S rd   r   re   s      r   rr   zUrl.binf4  rg   r    c                     d S rd   r   rt   s               r   rr   zUrl.binj4  rg   r    c                     d S rd   r   re   s      r   rr   zUrl.binn4  rg   r    Nc                     d S rd   r   re   s      r   rr   zUrl.binr4  rg   r    c                     d S rd   r   r   s       r   r@   zUrl.conditionv4  rg   r    c                     d S rd   r   r   s        r   r@   zUrl.conditionz4  rg   r    c                     d S rd   r   re   s      r   r@   zUrl.condition~4  rg   r    c                     d S rd   r   re   s      r   r   z	Url.field4  rg   r    c                     d S rd   r   r   s      r   r   z	Url.field4  rg   r    c                     d S rd   r   re   s      r   r&   z
Url.format4  rg   r    c                     d S rd   r   re   s      r   r&   z
Url.format4  rg   r    c                     d S rd   r   re   s      r   r   zUrl.formatType4  rp   r    r  c                     d S rd   r   re   s      r   r  zUrl.timeUnit4  rg   r    r  c                     d S rd   r   re   s      r   r  zUrl.timeUnit4  rg   r    r#  c                     d S rd   r   re   s      r   r  zUrl.timeUnit4  rg   r    rB  c                     d S rd   r   re   s      r   r  zUrl.timeUnit4  rg   r    c                     d S rd   r   rb  s         r   r  zUrl.timeUnit4  rg   r    c                     d S rd   r   re   s      r   r   z	Url.title4  rg   r    c                     d S rd   r   re   s      r   r   z	Url.title4  rg   r    c                     d S rd   r   re   s      r   r   z	Url.title4  rg   r    rh  c                     d S rd   r   re   s      r   r"   zUrl.type4  rp   r    c                 `     t          t          |           j        d|||||||||	|
|d| d S r,  )r2   r  rp  r-  s                r   rp  zUrl.__init__4  s`     	"c4! 	*IYe&)YeTZ-7(RW^b	* 	* %)	* 	* 	* 	* 	*r    )rb   r  )rK   Nrb   r  r.  r<   s   @r   r  r  3  s#       D DJ (-$N7  $b  c   pu    X (     X (     Xe      T e    X "9Y_hr{  FO  V_  fo  w@     X S U    X    X &i     X 'y	     X 4 EF SX    X s u    X $     X      X      XC E     '  #P  Q   ^c    X '  #q  r   D    X '  #x	  y	   F
K
    X '  #O  P   ]b    X (yyi     X s u    X tCy U    X    XgNO \a     "+ii]f$IiT]#99* * * * * * * * * *r    r  c                   V    e Zd ZdZdZdZeeeeeeeeeeeefdd            Zeeeeeeeefdd            Zeeeeeeeeeeeeefdd            Zeeeeeeeeefdd            Zeeefdd	            Zeeeefdd
            Zede	e
j                 dd fd            Zef fd	Z xZS )UrlValueaq  UrlValue 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 <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  rb   c                     d S rd   r   r  s                r   r@   zUrlValue.condition4  rg   r    c                     d S rd   r   r  s	            r   r@   zUrlValue.condition4  rg   r    c                     d S rd   r   r  s                 r   r@   zUrlValue.condition4  rg   r    c	                     d S rd   r   r  s
             r   r@   zUrlValue.condition4  rg   r    c                     d S rd   r   r   s       r   r@   zUrlValue.condition4  rg   r    c                     d S rd   r   r   s        r   r@   zUrlValue.condition4  rg   r    rK   c                     d S rd   r   re   s      r   r@   zUrlValue.condition4  rg   r    c                 N     t          t          |           j        d||d| d S r  )r2   r  rp  r  s       r   rp  zUrlValue.__init__4  s3    &h&PUiPP4PPPPPr    )rb   r  r<  r<   s   @r   r  r  4  s4         (-$N"+)Zclu  ~G  NW  ^g  r{  CL  S\     X %.i	Ybir  {D  KT     X "+)Zckt  ~G  OX  `i  py  DM  U^  en     X %.iyYbjs  |E  MV  ]f     X &i     X 'y	     X 4 IJ Wa    X )2 Q Q Q Q Q Q Q Q Q Qr    r  c            O       .    e Zd ZdZdZdZeded         dd fd            Zee	fd8d            Zee	fd8d	            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fNd8d
            Z
ed9d            Z
dedd fdZededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d8d            Zededd fd            Zed9d            Zededd fd            Zee	fd8d            Zee	e	e	e	fd8d            Zed9d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd8d            Zed9d            Zedee         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd8d"            Zee	e	fd8d#            Zed9d$            Zeded%         dd fd&            Zed9d'            Zededd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zeded-         dd fd.            Zeded/         dd fd0            Zee	e	e	e	fd8d1            Zededd fd2            Zedee         dd fd3            Zed9d4            Zded5         dd fd6Ze	e	e	e	e	e	e	e	e	e	e	e	e	f fd7	Z xZS ):Xap6  X 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    axis : anyOf(:class:`Axis`, None)
        An object defining properties of axis's gridlines, ticks and labels. If ``null``,
        the axis for the encoding channel will be removed.

        **Default value:** If undefined, default `axis properties
        <https://vega.github.io/vega-lite/docs/axis.html>`__ are applied.

        **See also:** `axis <https://vega.github.io/vega-lite/docs/axis.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    impute : anyOf(:class:`ImputeParams`, 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
        the ``Impute`` Operation.

        **See also:** `impute <https://vega.github.io/vega-lite/docs/impute.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zX.aggregate5  rg   r    c                     d S rd   r   ri   s      r   rf   zX.aggregate5  rg   r    c                     d S rd   r   rl   s      r   rf   zX.aggregate6  rg   r    cO                     d S rd   r   Pr   r   ro   r   r   	domainCapdomainColor
domainDashdomainDashOffsetdomainOpacitydomainWidthr&   r   gridgridCap	gridColorgridDashgridDashOffsetgridOpacity	gridWidthr   r  r   
labelBoundr   r   
labelFlushlabelFlushOffsetr   r   r   r   r   r  r   r   r   r   r   r  	maxExtent	minExtentr   r   positionstyletickBandtickCap	tickColorr   tickDashtickDashOffset	tickExtrar   
tickOffsettickOpacity	tickRoundtickSize	tickWidthticksr   r   r   r  r   r   r   r   r   r   r   r   r   r   titleXtitleY	translater_   r   r   sP                                                                                   r   axiszX.axis6  rg   r    Nc                     d S rd   r   re   s      r   r  zX.axis6  rg   r    c                     d S rd   r   re   s      r   ro   zX.bandPosition6  rp   r    c                     d S rd   r   re   s      r   rr   zX.bin6  rg   r    c                     d S rd   r   rt   s               r   rr   zX.bin6  rg   r    c                     d S rd   r   re   s      r   rr   zX.bin6  rg   r    c                     d S rd   r   re   s      r   rr   zX.bin6  rg   r    c                     d S rd   r   re   s      r   r   zX.field"6  rg   r    c                     d S rd   r   r   s      r   r   zX.field&6  rg   r    c                     d S rd   r   r   framekeyvalsmethodr   r   s         r   imputezX.impute*6  rg   r    c                     d S rd   r   re   s      r   r  zX.impute.6  rg   r    c                     d S rd   r   r   s                            r   r   zX.scale26  rg   r    c                     d S rd   r   re   s      r   r   zX.scale66  rg   r    c                     d S rd   r   re   s      r   r   zX.sort:6  rg   r    c                     d S rd   r   re   s      r   r   zX.sort>6  rg   r    c                     d S rd   r   re   s      r   r   zX.sortB6  rg   r    c                     d S rd   r   re   s      r   r   zX.sortF6  rg   r    r   c                     d S rd   r   re   s      r   r   zX.sortJ6  rg   r    r   c                     d S rd   r   re   s      r   r   zX.sortN6  rg   r    r   c                     d S rd   r   re   s      r   r   zX.sortR6  rg   r    c                     d S rd   r   r  s        r   r   zX.sortV6  rg   r    c                     d S rd   r   r  s       r   r   zX.sortZ6  rg   r    c                     d S rd   r   re   s      r   r   zX.sort^6  rg   r    r4  c                     d S rd   r   re   s      r   r7  zX.stackb6  rg   r    c                     d S rd   r   re   s      r   r7  zX.stackf6  rg   r    c                     d S rd   r   re   s      r   r7  zX.stackj6  rg   r    r  c                     d S rd   r   re   s      r   r  z
X.timeUnitn6  rg   r    r  c                     d S rd   r   re   s      r   r  z
X.timeUnitr6  rg   r    r#  c                     d S rd   r   re   s      r   r  z
X.timeUnitv6  rg   r    rB  c                     d S rd   r   re   s      r   r  z
X.timeUnitz6  rg   r    c                     d S rd   r   rb  s         r   r  z
X.timeUnit~6  rg   r    c                     d S rd   r   re   s      r   r   zX.title6  rg   r    c                     d S rd   r   re   s      r   r   zX.title6  rg   r    c                     d S rd   r   re   s      r   r   zX.title6  rg   r    rh  c                     d S rd   r   re   s      r   r"   zX.type6  rp   r    c                 d     t          t          |           j        d|||||||||	|
|||d| d S N)r   rf   r  ro   rr   r   r  r   r   r7  r  r   r"   r   )r2   r  rp  r   r   rf   r  ro   rr   r   r  r   r   r7  r  r   r"   r   r   s                  r   rp  z
X.__init__6  a     	 a 	3)yt-9s%X^&+$eh^c%)	3 	3 .2	3 	3 	3 	3 	3r    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  r   r   rf   r   r  rw  ro   rx  rr   r.   r   r  r   r	   r   r   rz  r7  r  r   r"   rp  r;   r<   s   @r   r  r  4  	        @ (-$N7  $b  c   ps    X (     X (     X !	yYbnw  FO  \e  xA  QZ  hq  zC  PY  `i  s|  HQ  \e  v  MV  bk  xA  NW  gp  }F  S\  hq  ~G	  Z	c	  o	x	  H
Q
  b
k
  }
F  S\  nw  EN  ]f  u~  MV  hq  zC  OX  dm  v  HQ  \e  mv  AJ  T]  ir  ~G  R[  lu  AJ  Xa  nw  EN  Zc  nw  CL  T]  en  {D  R[  hq  AJ  W`  lu  EN  _h  zC  PY  kt  CL  [d  mv  H  T]  fo  xA     X    Xe      T c    X "9Y_hr{  FO  V_  fo  w@     X S S    X    X s s    X $     X $i	QZ     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k c    X d3i C    X d4j S    X d4=) c    X g78 S    X g  U  V   cf    X g  a  b   or    X "y	     X %Y     X    X w<= #    X    X t     X '  #P  Q   ^a    X '  #q  r   B    X '  #x	  y	   F
I
    X '  #O  P   ]`    X (yyi     X s s    X tCy S    X    XgNO \_     "+ii^gi	Yb 9II3 3 3 3 3 3 3 3 3 3r    r  c            O           e Zd ZdZdZdZeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefNdd            Zedd            Zde	dd fd	Z
eeeeefdd
            Zedd            Zeeeeeeeeeeeeeeeeeeeeeeeefdd            Zedd            Zeded         dd fd            Zedd            Zededd fd            Zededd fd            Zedee         dd fd            Zedd            Zded         dd fdZeeeeeeef fd	Z xZS )XDatuma#  XDatum schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    axis : anyOf(:class:`Axis`, None)
        An object defining properties of axis's gridlines, ticks and labels. If ``null``,
        the axis for the encoding channel will be removed.

        **Default value:** If undefined, default `axis properties
        <https://vega.github.io/vega-lite/docs/axis.html>`__ are applied.

        **See also:** `axis <https://vega.github.io/vega-lite/docs/axis.html>`__
        documentation.
    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.
    impute : anyOf(:class:`ImputeParams`, 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
        the ``Impute`` Operation.

        **See also:** `impute <https://vega.github.io/vega-lite/docs/impute.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rb   cO                     d S rd   r   r  sP                                                                                   r   r  zXDatum.axisD7  rg   r    rK   Nc                     d S rd   r   re   s      r   r  zXDatum.axisH7  rg   r    c                     d S rd   r   re   s      r   ro   zXDatum.bandPositionL7  rp   r    c                     d S rd   r   r  s         r   r  zXDatum.imputeO7  rg   r    c                     d S rd   r   re   s      r   r  zXDatum.imputeS7  rg   r    c                     d S rd   r   r   s                            r   r   zXDatum.scaleW7  rg   r    c                     d S rd   r   re   s      r   r   zXDatum.scale[7  rg   r    r4  c                     d S rd   r   re   s      r   r7  zXDatum.stack_7  rg   r    c                     d S rd   r   re   s      r   r7  zXDatum.stackc7  rg   r    c                     d S rd   r   re   s      r   r7  zXDatum.stackg7  rg   r    c                     d S rd   r   re   s      r   r   zXDatum.titlek7  rg   r    c                     d S rd   r   re   s      r   r   zXDatum.titleo7  rg   r    c                     d S rd   r   re   s      r   r   zXDatum.titles7  rg   r    r  c                     d S rd   r   re   s      r   r"   zXDatum.typew7  rp   r    c	                 Z     t          t          |           j        d||||||||d|	 d S N)rG   r  ro   r  r   r7  r   r"   r   )r2   r3  rp  r   rG   r  ro   r  r   r7  r   r"   r   r   s             r   rp  zXDatum.__init__{7  [    $fd$ 	_5t,_e+0UQU	_ 	_Y]	_ 	_ 	_ 	_ 	_r    )rb   r3  )rK   Nrb   r3  r'   r9   r:   rt  ru  rv  r   r   r  rw  ro   r  r   r   r7  rx  r.   r   r	   r"   rp  r;   r<   s   @r   r3  r3  6  *       c cH (-$N!	yYbnw  FO  \e  xA  QZ  hq  zC  PY  `i  s|  HQ  \e  v  MV  bk  xA  NW  gp  }F  S\  hq  ~G	  Z	c	  o	x	  H
Q
  b
k
  }
F  S\  nw  EN  ]f  u~  MV  hq  zC  OX  dm  v  HQ  \e  mv  AJ  T]  ir  ~G  R[  lu  AJ  Xa  nw  EN  Zc  nw  CL  T]  en  {D  R[  hq  AJ  W`  lu  EN  _h  zC  PY  kt  CL  [d  mv  H  T]  fo  xA     X    Xe      $i	QZ     X    X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X w<= (    X    X t     X s x    X tCy X    X    XgYZ go     $-9Y^g 		_ _ _ _ _ _ _ _ _ _r    r3  c                   *     e Zd ZdZdZdZ fdZ xZS )XValuea  XValue schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   c                 L     t          t          |           j        dd|i| d S r  )r2   rI  rp  r  s      r   rp  zXValue.__init__7  1    $fd$9959D99999r    r  r<   s   @r   rI  rI  7  O          (-$N: : : : : : : : :r    rI  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )X2a  X2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    Fx2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zX2.aggregate7  rg   r    c                     d S rd   r   ri   s      r   rf   zX2.aggregate7  rg   r    c                     d S rd   r   rl   s      r   rf   zX2.aggregate 8  rg   r    c                     d S rd   r   re   s      r   ro   zX2.bandPosition8  rp   r    Nc                     d S rd   r   re   s      r   rr   zX2.bin8  rp   r    c                     d S rd   r   re   s      r   r   zX2.field
8  rg   r    c                     d S rd   r   r   s      r   r   zX2.field8  rg   r    r  c                     d S rd   r   re   s      r   r  zX2.timeUnit8  rg   r    r  c                     d S rd   r   re   s      r   r  zX2.timeUnit8  rg   r    r#  c                     d S rd   r   re   s      r   r  zX2.timeUnit8  rg   r    rB  c                     d S rd   r   re   s      r   r  zX2.timeUnit8  rg   r    c                     d S rd   r   rb  s         r   r  zX2.timeUnit"8  rg   r    c                     d S rd   r   re   s      r   r   zX2.title&8  rg   r    c                     d S rd   r   re   s      r   r   zX2.title*8  rg   r    c                     d S rd   r   re   s      r   r   zX2.title.8  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   rN  rp  ru  s
            r   rp  zX2.__init__38  W     b$  	_9	Xd%(PU	_ 	_Y]	_ 	_ 	_ 	_ 	_r    )rb   rN  )rK   Nrb   rN  rv  r<   s   @r   rN  rN  7  7       X Xr (-$N7  $b  c   pt    X (     X (     Xe         s t    X $     X '  #P  Q   ^b    X '  #q  r   C    X '  #x	  y	   F
J
    X '  #O  P   ]a    X (yyi     X s t    X tCy T    X    X "+ii]f 9I_ _ _ _ _ _ _ _ _ _r    rN  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )X2DatumaV  X2Datum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FrO  rK   rb   c                     d S rd   r   re   s      r   ro   zX2Datum.bandPosition8  rp   r    c                     d S rd   r   re   s      r   r   zX2Datum.title8  rg   r    c                     d S rd   r   re   s      r   r   zX2Datum.title8  rg   r    Nc                     d S rd   r   re   s      r   r   zX2Datum.title8  rg   r    r  c                     d S rd   r   re   s      r   r"   zX2Datum.type8  rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   rc  rp  r_  s         r   rp  zX2Datum.__init__8  J    %gt% 	.ETY`d 	. 	.(,	. 	. 	. 	. 	.r    )rK   Nrb   rc  r`  r<   s   @r   rc  rc  98  +       f fN (-$Ne 	     s y    X tCy Y    X    XgYZ gp     ,5II . . . . . . . . . .r    rc  c                   *     e Zd ZdZdZdZ fdZ xZS )X2Valuea  X2Value schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    FrO  c                 L     t          t          |           j        dd|i| d S r  )r2   rm  rp  r  s      r   rp  zX2Value.__init__8  1    %gt%::E:T:::::r    r  r<   s   @r   rm  rm  8  O          (-$N; ; ; ; ; ; ; ; ;r    rm  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )XErrora  XError schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    FxErrorrK   rL   rb   c                     d S rd   r   re   s      r   rf   zXError.aggregate49  rg   r    c                     d S rd   r   ri   s      r   rf   zXError.aggregate89  rg   r    c                     d S rd   r   rl   s      r   rf   zXError.aggregate<9  rg   r    c                     d S rd   r   re   s      r   ro   zXError.bandPosition@9  rp   r    Nc                     d S rd   r   re   s      r   rr   z
XError.binC9  rp   r    c                     d S rd   r   re   s      r   r   zXError.fieldF9  rg   r    c                     d S rd   r   r   s      r   r   zXError.fieldJ9  rg   r    r  c                     d S rd   r   re   s      r   r  zXError.timeUnitN9  rg   r    r  c                     d S rd   r   re   s      r   r  zXError.timeUnitR9  rg   r    r#  c                     d S rd   r   re   s      r   r  zXError.timeUnitV9  rg   r    rB  c                     d S rd   r   re   s      r   r  zXError.timeUnitZ9  rg   r    c                     d S rd   r   rb  s         r   r  zXError.timeUnit^9  rg   r    c                     d S rd   r   re   s      r   r   zXError.titleb9  rg   r    c                     d S rd   r   re   s      r   r   zXError.titlef9  rg   r    c                     d S rd   r   re   s      r   r   zXError.titlej9  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   rr  rp  ru  s
            r   rp  zXError.__init__o9  r  r    )rb   rr  )rK   Nrb   rr  rv  r<   s   @r   rr  rr  8  r  r    rr  c                   *     e Zd ZdZdZdZ fdZ xZS )XErrorValuea  XErrorValue schema wrapper

    Mapping(required=[value])
    Definition object for a constant value (primitive value or gradient definition) of an
    encoding channel.

    Parameters
    ----------

    value : float
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Frs  c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zXErrorValue.__init__9  rZ  r    r  r<   s   @r   r  r  v9  r[  r    r  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )XError2a  XError2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    FxError2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zXError2.aggregate9  rg   r    c                     d S rd   r   ri   s      r   rf   zXError2.aggregate9  rg   r    c                     d S rd   r   rl   s      r   rf   zXError2.aggregate9  rg   r    c                     d S rd   r   re   s      r   ro   zXError2.bandPosition9  rp   r    Nc                     d S rd   r   re   s      r   rr   zXError2.bin9  rp   r    c                     d S rd   r   re   s      r   r   zXError2.field9  rg   r    c                     d S rd   r   r   s      r   r   zXError2.field:  rg   r    r  c                     d S rd   r   re   s      r   r  zXError2.timeUnit:  rg   r    r  c                     d S rd   r   re   s      r   r  zXError2.timeUnit:  rg   r    r#  c                     d S rd   r   re   s      r   r  zXError2.timeUnit:  rg   r    rB  c                     d S rd   r   re   s      r   r  zXError2.timeUnit:  rg   r    c                     d S rd   r   rb  s         r   r  zXError2.timeUnit:  rg   r    c                     d S rd   r   re   s      r   r   zXError2.title:  rg   r    c                     d S rd   r   re   s      r   r   zXError2.title:  rg   r    c                     d S rd   r   re   s      r   r   zXError2.title#:  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   r  rp  ru  s
            r   rp  zXError2.__init__(:  ro  r    )rb   r  )rK   Nrb   r  rv  r<   s   @r   r  r  9  rp  r    r  c                   *     e Zd ZdZdZdZ fdZ xZS )XError2Valuea  XError2Value schema wrapper

    Mapping(required=[value])
    Definition object for a constant value (primitive value or gradient definition) of an
    encoding channel.

    Parameters
    ----------

    value : float
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zXError2Value.__init__D:  r|  r    r  r<   s   @r   r  r  /:  r}  r    r  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd/d            Zee	fd/d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d/d            Zed0d            Zededd fd            Zee	fd/d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd/d            Zed0d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	fd/d            Zee	e	fd/d            Zed0d            Zeded          dd fd!            Zeded"         dd fd#            Zeded$         dd fd%            Zeded&         dd fd'            Zee	e	e	e	fd/d(            Zededd fd)            Zedee         dd fd*            Zed0d+            Zded,         dd fd-Ze	e	e	e	e	e	e	e	e	e	f
 fd.	Z xZS )1XOffseta+  XOffset 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FxOffsetrK   rL   rb   c                     d S rd   r   re   s      r   rf   zXOffset.aggregate;  rg   r    c                     d S rd   r   ri   s      r   rf   zXOffset.aggregate!;  rg   r    c                     d S rd   r   rl   s      r   rf   zXOffset.aggregate%;  rg   r    c                     d S rd   r   re   s      r   ro   zXOffset.bandPosition);  rp   r    c                     d S rd   r   re   s      r   rr   zXOffset.bin,;  rg   r    c                     d S rd   r   rt   s               r   rr   zXOffset.bin0;  rg   r    Nc                     d S rd   r   re   s      r   rr   zXOffset.bin4;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.field8;  rg   r    c                     d S rd   r   r   s      r   r   zXOffset.field<;  rg   r    c                     d S rd   r   r   s                            r   r   zXOffset.scale@;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.scaleD;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.sortH;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.sortL;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.sortP;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.sortT;  rg   r    r   c                     d S rd   r   re   s      r   r   zXOffset.sortX;  rg   r    r   c                     d S rd   r   re   s      r   r   zXOffset.sort\;  rg   r    r   c                     d S rd   r   re   s      r   r   zXOffset.sort`;  rg   r    c                     d S rd   r   r  s        r   r   zXOffset.sortd;  rg   r    c                     d S rd   r   r  s       r   r   zXOffset.sorth;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.sortl;  rg   r    r  c                     d S rd   r   re   s      r   r  zXOffset.timeUnitp;  rg   r    r  c                     d S rd   r   re   s      r   r  zXOffset.timeUnitt;  rg   r    r#  c                     d S rd   r   re   s      r   r  zXOffset.timeUnitx;  rg   r    rB  c                     d S rd   r   re   s      r   r  zXOffset.timeUnit|;  rg   r    c                     d S rd   r   rb  s         r   r  zXOffset.timeUnit;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.title;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.title;  rg   r    c                     d S rd   r   re   s      r   r   zXOffset.title;  rg   r    rh  c                     d S rd   r   re   s      r   r"   zXOffset.type;  rp   r    c                 ^     t          t          |           j        d|||||||||	|
d
| d S N)
r   rf   ro   rr   r   r   r   r  r   r"   r   )r2   r  rp  r   r   rf   ro   rr   r   r   r   r  r   r"   r   r   s               r   rp  zXOffset.__init__;  c     	&gt% 	d	Y3?SPU]b+/(%VZ	d 	d^b	d 	d 	d 	d 	dr    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  r   r   rf   r   rw  ro   rx  rr   r.   r   r   r	   r   r   rz  r  r   r"   rp  r;   r<   s   @r   r  r  H:         O O` (-$N7  $b  c   py    X (     X (     Xe 	     T i    X "9Y_hr{  FO  V_  fo  w@     X    X s y    X $     X #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X d5k i    X d3i I    X d4j Y    X d4=) i    X g78 Y    X g  U  V   cl    X g  a  b   ox    X "y	     X %Y     X    X '  #P  Q   ^g    X '  #q  r   H    X '  #x	  y	   F
O
    X '  #O  P   ]f    X (yyi     X s y    X tCy Y    X    XgNO \e     "+ii]f 		I]fd d d d d d d d d dr    r  c                   $    e Zd ZdZdZdZdedd fdZee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fdd            Z
edd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )XOffsetDatuma  XOffsetDatum 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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr  rK   rb   c                     d S rd   r   re   s      r   ro   zXOffsetDatum.bandPosition<  rp   r    c                     d S rd   r   r   s                            r   r   zXOffsetDatum.scale<  rg   r    Nc                     d S rd   r   re   s      r   r   zXOffsetDatum.scale<  rg   r    c                     d S rd   r   re   s      r   r   zXOffsetDatum.title <  rg   r    c                     d S rd   r   re   s      r   r   zXOffsetDatum.title$<  rg   r    c                     d S rd   r   re   s      r   r   zXOffsetDatum.title(<  rg   r    r  c                     d S rd   r   re   s      r   r"   zXOffsetDatum.type,<  rp   r    c           	      T     t          t          |           j        d|||||d| d S N)rG   ro   r   r   r"   r   )r2   r  rp  r   rG   ro   r   r   r"   r   r   s          r   rp  zXOffsetDatum.__init__0<  T    *lD!!* 	K\Y^16T	K 	KEI	K 	K 	K 	K 	Kr    )rb   r  )rK   Nrb   r  r'   r9   r:   rt  ru  rv  rw  ro   r   r   r   r.   r   r	   r   r"   rp  r;   r<   s   @r   r  r  ;         s sh (-$Ne      #))9_hqz  GP  \e  qz  EN  \e  lu  H  W`  ox  @I  T]  hq  {D  LU  ^g  nw  ~G     X    X s ~    X tCy ^    X    XgYZ gu     ,5IY]f K K K K K K K K K Kr    r  c                   *     e Zd ZdZdZdZ fdZ xZS )XOffsetValuea  XOffsetValue schema wrapper

    Mapping(required=[value])
    Definition object for a constant value (primitive value or gradient definition) of an
    encoding channel.

    Parameters
    ----------

    value : float
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zXOffsetValue.__init__K<  r|  r    r  r<   s   @r   r  r  6<  r}  r    r  c            O       .    e Zd ZdZdZdZeded         dd fd            Zee	fd8d            Zee	fd8d	            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fNd8d
            Z
ed9d            Z
dedd fdZededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d8d            Zededd fd            Zed9d            Zededd fd            Zee	fd8d            Zee	e	e	e	fd8d            Zed9d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd8d            Zed9d            Zedee         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded          dd fd!            Zee	e	e	fd8d"            Zee	e	fd8d#            Zed9d$            Zeded%         dd fd&            Zed9d'            Zededd fd(            Zeded)         dd fd*            Zeded+         dd fd,            Zeded-         dd fd.            Zeded/         dd fd0            Zee	e	e	e	fd8d1            Zededd fd2            Zedee         dd fd3            Zed9d4            Zded5         dd fd6Ze	e	e	e	e	e	e	e	e	e	e	e	e	f fd7	Z xZS ):Yap6  Y 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    axis : anyOf(:class:`Axis`, None)
        An object defining properties of axis's gridlines, ticks and labels. If ``null``,
        the axis for the encoding channel will be removed.

        **Default value:** If undefined, default `axis properties
        <https://vega.github.io/vega-lite/docs/axis.html>`__ are applied.

        **See also:** `axis <https://vega.github.io/vega-lite/docs/axis.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, string, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    impute : anyOf(:class:`ImputeParams`, 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
        the ``Impute`` Operation.

        **See also:** `impute <https://vega.github.io/vega-lite/docs/impute.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rK   rL   rb   c                     d S rd   r   re   s      r   rf   zY.aggregateT=  rg   r    c                     d S rd   r   ri   s      r   rf   zY.aggregateX=  rg   r    c                     d S rd   r   rl   s      r   rf   zY.aggregate\=  rg   r    cO                     d S rd   r   r  sP                                                                                   r   r  zY.axis`=  rg   r    Nc                     d S rd   r   re   s      r   r  zY.axisd=  rg   r    c                     d S rd   r   re   s      r   ro   zY.bandPositionh=  rp   r    c                     d S rd   r   re   s      r   rr   zY.bink=  rg   r    c                     d S rd   r   rt   s               r   rr   zY.bino=  rg   r    c                     d S rd   r   re   s      r   rr   zY.bins=  rg   r    c                     d S rd   r   re   s      r   rr   zY.binw=  rg   r    c                     d S rd   r   re   s      r   r   zY.field{=  rg   r    c                     d S rd   r   r   s      r   r   zY.field=  rg   r    c                     d S rd   r   r  s         r   r  zY.impute=  rg   r    c                     d S rd   r   re   s      r   r  zY.impute=  rg   r    c                     d S rd   r   r   s                            r   r   zY.scale=  rg   r    c                     d S rd   r   re   s      r   r   zY.scale=  rg   r    c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    r   c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    r   c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    r   c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    c                     d S rd   r   r  s        r   r   zY.sort=  rg   r    c                     d S rd   r   r  s       r   r   zY.sort=  rg   r    c                     d S rd   r   re   s      r   r   zY.sort=  rg   r    r4  c                     d S rd   r   re   s      r   r7  zY.stack=  rg   r    c                     d S rd   r   re   s      r   r7  zY.stack=  rg   r    c                     d S rd   r   re   s      r   r7  zY.stack=  rg   r    r  c                     d S rd   r   re   s      r   r  z
Y.timeUnit=  rg   r    r  c                     d S rd   r   re   s      r   r  z
Y.timeUnit=  rg   r    r#  c                     d S rd   r   re   s      r   r  z
Y.timeUnit=  rg   r    rB  c                     d S rd   r   re   s      r   r  z
Y.timeUnit=  rg   r    c                     d S rd   r   rb  s         r   r  z
Y.timeUnit=  rg   r    c                     d S rd   r   re   s      r   r   zY.title=  rg   r    c                     d S rd   r   re   s      r   r   zY.title=  rg   r    c                     d S rd   r   re   s      r   r   zY.title=  rg   r    rh  c                     d S rd   r   re   s      r   r"   zY.type=  rp   r    c                 d     t          t          |           j        d|||||||||	|
|||d| d S r-  )r2   r  rp  r.  s                  r   rp  z
Y.__init__=  r/  r    )rb   r  )rK   Nrb   r  r0  r<   s   @r   r  r  O<  r1  r    r  c            O           e Zd ZdZdZdZeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefNdd            Zedd            Zde	dd fd	Z
eeeeefdd
            Zedd            Zeeeeeeeeeeeeeeeeeeeeeeeefdd            Zedd            Zeded         dd fd            Zedd            Zededd fd            Zededd fd            Zedee         dd fd            Zedd            Zded         dd fdZeeeeeeef fd	Z xZS )YDatuma#  YDatum schema wrapper

    Mapping(required=[])

    Parameters
    ----------

    axis : anyOf(:class:`Axis`, None)
        An object defining properties of axis's gridlines, ticks and labels. If ``null``,
        the axis for the encoding channel will be removed.

        **Default value:** If undefined, default `axis properties
        <https://vega.github.io/vega-lite/docs/axis.html>`__ are applied.

        **See also:** `axis <https://vega.github.io/vega-lite/docs/axis.html>`__
        documentation.
    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.
    impute : anyOf(:class:`ImputeParams`, 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
        the ``Impute`` Operation.

        **See also:** `impute <https://vega.github.io/vega-lite/docs/impute.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        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:


        * ``"zero"`` or `true`: stacking with baseline offset at zero value of the scale
          (for creating typical stacked
          [bar](https://vega.github.io/vega-lite/docs/stack.html#bar) and `area
          <https://vega.github.io/vega-lite/docs/stack.html#area>`__ chart).
        * ``"normalize"`` - stacking with normalized domain (for creating `normalized
          stacked bar and area charts
          <https://vega.github.io/vega-lite/docs/stack.html#normalized>`__ and pie charts
          `with percentage tooltip
          <https://vega.github.io/vega-lite/docs/arc.html#tooltip>`__ ). :raw-html:`<br/>`
        * ``"center"`` - stacking with center baseline (for `streamgraph
          <https://vega.github.io/vega-lite/docs/stack.html#streamgraph>`__ ).
        * ``null`` or ``false`` - No-stacking. This will produce layered `bar
          <https://vega.github.io/vega-lite/docs/stack.html#layered-bar-chart>`__ and area
          chart.

        **Default value:** ``zero`` for plots with all of the following conditions are true:
        (1) the mark is ``bar``, ``area``, or ``arc`` ; (2) the stacked measure channel (x
        or y) has a linear scale; (3) At least one of non-position channels mapped to an
        unaggregated field that is different from x and y. Otherwise, ``null`` by default.

        **See also:** `stack <https://vega.github.io/vega-lite/docs/stack.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr   rb   cO                     d S rd   r   r  sP                                                                                   r   r  zYDatum.axis>  rg   r    rK   Nc                     d S rd   r   re   s      r   r  zYDatum.axis>  rg   r    c                     d S rd   r   re   s      r   ro   zYDatum.bandPosition>  rp   r    c                     d S rd   r   r  s         r   r  zYDatum.impute>  rg   r    c                     d S rd   r   re   s      r   r  zYDatum.impute>  rg   r    c                     d S rd   r   r   s                            r   r   zYDatum.scale>  rg   r    c                     d S rd   r   re   s      r   r   zYDatum.scale>  rg   r    r4  c                     d S rd   r   re   s      r   r7  zYDatum.stack>  rg   r    c                     d S rd   r   re   s      r   r7  zYDatum.stack>  rg   r    c                     d S rd   r   re   s      r   r7  zYDatum.stack>  rg   r    c                     d S rd   r   re   s      r   r   zYDatum.title>  rg   r    c                     d S rd   r   re   s      r   r   zYDatum.title>  rg   r    c                     d S rd   r   re   s      r   r   zYDatum.title>  rg   r    r  c                     d S rd   r   re   s      r   r"   zYDatum.type>  rp   r    c	                 Z     t          t          |           j        d||||||||d|	 d S rC  )r2   r   rp  rD  s             r   rp  zYDatum.__init__>  rE  r    )rb   r   )rK   Nrb   r   rF  r<   s   @r   r   r   =  rG  r    r   c                   *     e Zd ZdZdZdZ fdZ xZS )YValuea  YValue schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr   c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zYValue.__init__>  rK  r    r  r<   s   @r   r  r  >  rL  r    r  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )Y2a  Y2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    Fy2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zY2.aggregateQ?  rg   r    c                     d S rd   r   ri   s      r   rf   zY2.aggregateU?  rg   r    c                     d S rd   r   rl   s      r   rf   zY2.aggregateY?  rg   r    c                     d S rd   r   re   s      r   ro   zY2.bandPosition]?  rp   r    Nc                     d S rd   r   re   s      r   rr   zY2.bin`?  rp   r    c                     d S rd   r   re   s      r   r   zY2.fieldc?  rg   r    c                     d S rd   r   r   s      r   r   zY2.fieldg?  rg   r    r  c                     d S rd   r   re   s      r   r  zY2.timeUnitk?  rg   r    r  c                     d S rd   r   re   s      r   r  zY2.timeUnito?  rg   r    r#  c                     d S rd   r   re   s      r   r  zY2.timeUnits?  rg   r    rB  c                     d S rd   r   re   s      r   r  zY2.timeUnitw?  rg   r    c                     d S rd   r   rb  s         r   r  zY2.timeUnit{?  rg   r    c                     d S rd   r   re   s      r   r   zY2.title?  rg   r    c                     d S rd   r   re   s      r   r   zY2.title?  rg   r    c                     d S rd   r   re   s      r   r   zY2.title?  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   r  rp  ru  s
            r   rp  zY2.__init__?  r`  r    )rb   r  )rK   Nrb   r  rv  r<   s   @r   r  r  >  ra  r    r  c                        e Zd ZdZdZdZdedd fdZede	dd fd            Z
edee	         dd fd            Z
edd
            Z
ded         dd fdZeeef fd	Z xZS )Y2DatumaV  Y2Datum 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.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr  rK   rb   c                     d S rd   r   re   s      r   ro   zY2Datum.bandPosition?  rp   r    c                     d S rd   r   re   s      r   r   zY2Datum.title@  rg   r    c                     d S rd   r   re   s      r   r   zY2Datum.title@  rg   r    Nc                     d S rd   r   re   s      r   r   zY2Datum.title	@  rg   r    r  c                     d S rd   r   re   s      r   r"   zY2Datum.type@  rp   r    c                 R     t          t          |           j        d||||d| d S r^  )r2   r'  rp  r_  s         r   rp  zY2Datum.__init__@  rj  r    )rK   Nrb   r'  r`  r<   s   @r   r'  r'  ?  rk  r    r'  c                   *     e Zd ZdZdZdZ fdZ xZS )Y2Valuea  Y2Value schema wrapper

    Mapping(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`)
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr  c                 L     t          t          |           j        dd|i| d S r  )r2   r/  rp  r  s      r   rp  zY2Value.__init__+@  ro  r    r  r<   s   @r   r/  r/  @  rp  r    r/  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )YErrora  YError schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    FyErrorrK   rL   rb   c                     d S rd   r   re   s      r   rf   zYError.aggregate@  rg   r    c                     d S rd   r   ri   s      r   rf   zYError.aggregate@  rg   r    c                     d S rd   r   rl   s      r   rf   zYError.aggregate@  rg   r    c                     d S rd   r   re   s      r   ro   zYError.bandPosition@  rp   r    Nc                     d S rd   r   re   s      r   rr   z
YError.bin@  rp   r    c                     d S rd   r   re   s      r   r   zYError.field@  rg   r    c                     d S rd   r   r   s      r   r   zYError.field@  rg   r    r  c                     d S rd   r   re   s      r   r  zYError.timeUnit@  rg   r    r  c                     d S rd   r   re   s      r   r  zYError.timeUnit@  rg   r    r#  c                     d S rd   r   re   s      r   r  zYError.timeUnit@  rg   r    rB  c                     d S rd   r   re   s      r   r  zYError.timeUnit@  rg   r    c                     d S rd   r   rb  s         r   r  zYError.timeUnit@  rg   r    c                     d S rd   r   re   s      r   r   zYError.title@  rg   r    c                     d S rd   r   re   s      r   r   zYError.title@  rg   r    c                     d S rd   r   re   s      r   r   zYError.title@  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   r2  rp  ru  s
            r   rp  zYError.__init__@  r  r    )rb   r2  )rK   Nrb   r2  rv  r<   s   @r   r2  r2  /@  r  r    r2  c                   *     e Zd ZdZdZdZ fdZ xZS )YErrorValuea  YErrorValue schema wrapper

    Mapping(required=[value])
    Definition object for a constant value (primitive value or gradient definition) of an
    encoding channel.

    Parameters
    ----------

    value : float
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr3  c                 L     t          t          |           j        dd|i| d S r  )r2   rE  rp  r  s      r   rp  zYErrorValue.__init__@  rZ  r    r  r<   s   @r   rE  rE  @  r[  r    rE  c                   (    e Zd ZdZdZdZeded         dd fd            Zee	fdd            Zee	fdd	            Zde
dd fd
ZddZededd fd            Zee	fdd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	e	fdd            Zededd fd            Zedee         dd fd            Zedd            Ze	e	e	e	e	e	e	f fd	Z xZS )YError2a  YError2 schema wrapper

    Mapping(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 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : None
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        2) If both field definition's ``title`` and axis, header, or legend ``title`` are
        defined, axis/header/legend title will be used.
    FyError2rK   rL   rb   c                     d S rd   r   re   s      r   rf   zYError2.aggregateFA  rg   r    c                     d S rd   r   ri   s      r   rf   zYError2.aggregateJA  rg   r    c                     d S rd   r   rl   s      r   rf   zYError2.aggregateNA  rg   r    c                     d S rd   r   re   s      r   ro   zYError2.bandPositionRA  rp   r    Nc                     d S rd   r   re   s      r   rr   zYError2.binUA  rp   r    c                     d S rd   r   re   s      r   r   zYError2.fieldXA  rg   r    c                     d S rd   r   r   s      r   r   zYError2.field\A  rg   r    r  c                     d S rd   r   re   s      r   r  zYError2.timeUnit`A  rg   r    r  c                     d S rd   r   re   s      r   r  zYError2.timeUnitdA  rg   r    r#  c                     d S rd   r   re   s      r   r  zYError2.timeUnithA  rg   r    rB  c                     d S rd   r   re   s      r   r  zYError2.timeUnitlA  rg   r    c                     d S rd   r   rb  s         r   r  zYError2.timeUnitpA  rg   r    c                     d S rd   r   re   s      r   r   zYError2.titletA  rg   r    c                     d S rd   r   re   s      r   r   zYError2.titlexA  rg   r    c                     d S rd   r   re   s      r   r   zYError2.title|A  rg   r    c                 X     t          t          |           j        d|||||||d| d S rt  )r2   rH  rp  ru  s
            r   rp  zYError2.__init__A  ro  r    )rb   rH  )rK   Nrb   rH  rv  r<   s   @r   rH  rH  @  rp  r    rH  c                   *     e Zd ZdZdZdZ fdZ xZS )YError2Valuea  YError2Value schema wrapper

    Mapping(required=[value])
    Definition object for a constant value (primitive value or gradient definition) of an
    encoding channel.

    Parameters
    ----------

    value : float
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    FrI  c                 L     t          t          |           j        dd|i| d S r  )r2   r[  rp  r  s      r   rp  zYError2Value.__init__A  r|  r    r  r<   s   @r   r[  r[  A  r}  r    r[  c                       e Zd ZdZdZdZeded         dd fd            Zee	fd/d            Zee	fd/d	            Zde
dd fd
Zededd fd            Zee	e	e	e	e	e	e	e	e	e	f
d/d            Zed0d            Zededd fd            Zee	fd/d            Zee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fd/d            Zed0d            Zedee
         dd fd            Zedee         dd fd            Zedee         dd fd            Zedeej                 dd fd            Zeded         dd fd            Zeded         dd fd            Zeded         dd fd            Zee	e	e	fd/d            Zee	e	fd/d            Zed0d            Zeded          dd fd!            Zeded"         dd fd#            Zeded$         dd fd%            Zeded&         dd fd'            Zee	e	e	e	fd/d(            Zededd fd)            Zedee         dd fd*            Zed0d+            Zded,         dd fd-Ze	e	e	e	e	e	e	e	e	e	f
 fd.	Z xZS )1YOffseta+  YOffset 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)

        **See also:** `aggregate <https://vega.github.io/vega-lite/docs/aggregate.html>`__
        documentation.
    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``.
    bin : anyOf(boolean, :class:`BinParams`, None)
        A flag for binning a ``quantitative`` field, `an object defining binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__, or indicating
        that the data for ``x`` or ``y`` channel are binned before they are imported into
        Vega-Lite ( ``"binned"`` ).


        If ``true``, default `binning parameters
        <https://vega.github.io/vega-lite/docs/bin.html#bin-parameters>`__ will be applied.

        If ``"binned"``, this indicates that the data for the ``x`` (or ``y`` ) channel are
        already binned. You can map the bin-start field to ``x`` (or ``y`` ) and the bin-end
        field to ``x2`` (or ``y2`` ). The scale and axis will be formatted similar to
        binning in Vega-Lite.  To adjust the axis ticks based on the bin step, you can also
        set the axis's `tickMinStep
        <https://vega.github.io/vega-lite/docs/axis.html#ticks>`__ property.

        **Default value:** ``false``

        **See also:** `bin <https://vega.github.io/vega-lite/docs/bin.html>`__
        documentation.
    field : :class:`Field`
        **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
        <https://vega.github.io/vega-lite/docs/repeat.html>`__ operator.

        **See also:** `field <https://vega.github.io/vega-lite/docs/field.html>`__
        documentation.

        **Notes:** 1)  Dots ( ``.`` ) and brackets ( ``[`` and ``]`` ) can be used to access
        nested objects (e.g., ``"field": "foo.bar"`` and ``"field": "foo['bar']"`` ). If
        field names contain dots or brackets but are not nested, you can use ``\`` to
        escape dots and brackets (e.g., ``"a\.b"`` and ``"a\[0\]"`` ). See more details
        about escaping in the `field documentation
        <https://vega.github.io/vega-lite/docs/field.html>`__. 2) ``field`` is not required
        if ``aggregate`` is ``count``.
    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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    sort : :class:`Sort`
        Sort order for the encoded field.

        For continuous fields (quantitative or temporal), ``sort`` can be either
        ``"ascending"`` or ``"descending"``.

        For discrete fields, ``sort`` can be one of the following:


        * ``"ascending"`` or ``"descending"`` -- for sorting by the values' natural order in
          JavaScript.
        * `A string indicating an encoding channel name to sort by
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__ (e.g.,
          ``"x"`` or ``"y"`` ) with an optional minus prefix for descending sort (e.g.,
          ``"-x"`` to sort by x-field, descending). This channel string is short-form of `a
          sort-by-encoding definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-by-encoding>`__. For
          example, ``"sort": "-x"`` is equivalent to ``"sort": {"encoding": "x", "order":
          "descending"}``.
        * `A sort field definition
          <https://vega.github.io/vega-lite/docs/sort.html#sort-field>`__ for sorting by
          another field.
        * `An array specifying the field values in preferred order
          <https://vega.github.io/vega-lite/docs/sort.html#sort-array>`__. In this case, the
          sort order will obey the values in the array, followed by any unspecified values
          in their original order. For discrete time field, values in the sort array can be
          `date-time definition objects
          <https://vega.github.io/vega-lite/docs/datetime.html>`__. In addition, for time
          units ``"month"`` and ``"day"``, the values can be the month or day names (case
          insensitive) or their 3-letter initials (e.g., ``"Mon"``, ``"Tue"`` ).
        * ``null`` indicating no sort.

        **Default value:** ``"ascending"``

        **Note:** ``null`` and sorting by another channel is not supported for ``row`` and
        ``column``.

        **See also:** `sort <https://vega.github.io/vega-lite/docs/sort.html>`__
        documentation.
    timeUnit : anyOf(:class:`TimeUnit`, :class:`TimeUnitParams`)
        Time unit (e.g., ``year``, ``yearmonth``, ``month``, ``hours`` ) for a temporal
        field. or `a temporal field that gets casted as ordinal
        <https://vega.github.io/vega-lite/docs/type.html#cast>`__.

        **Default value:** ``undefined`` (None)

        **See also:** `timeUnit <https://vega.github.io/vega-lite/docs/timeunit.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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`
        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    FyOffsetrK   rL   rb   c                     d S rd   r   re   s      r   rf   zYOffset.aggregatevB  rg   r    c                     d S rd   r   ri   s      r   rf   zYOffset.aggregatezB  rg   r    c                     d S rd   r   rl   s      r   rf   zYOffset.aggregate~B  rg   r    c                     d S rd   r   re   s      r   ro   zYOffset.bandPositionB  rp   r    c                     d S rd   r   re   s      r   rr   zYOffset.binB  rg   r    c                     d S rd   r   rt   s               r   rr   zYOffset.binB  rg   r    Nc                     d S rd   r   re   s      r   rr   zYOffset.binB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.fieldB  rg   r    c                     d S rd   r   r   s      r   r   zYOffset.fieldB  rg   r    c                     d S rd   r   r   s                            r   r   zYOffset.scaleB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.scaleB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    r   c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    r   c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    r   c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    c                     d S rd   r   r  s        r   r   zYOffset.sortB  rg   r    c                     d S rd   r   r  s       r   r   zYOffset.sortB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.sortB  rg   r    r  c                     d S rd   r   re   s      r   r  zYOffset.timeUnitB  rg   r    r  c                     d S rd   r   re   s      r   r  zYOffset.timeUnitB  rg   r    r#  c                     d S rd   r   re   s      r   r  zYOffset.timeUnitB  rg   r    rB  c                     d S rd   r   re   s      r   r  zYOffset.timeUnitB  rg   r    c                     d S rd   r   rb  s         r   r  zYOffset.timeUnitB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.titleB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.titleB  rg   r    c                     d S rd   r   re   s      r   r   zYOffset.titleB  rg   r    rh  c                     d S rd   r   re   s      r   r"   zYOffset.typeB  rp   r    c                 ^     t          t          |           j        d|||||||||	|
d
| d S r  )r2   r^  rp  r  s               r   rp  zYOffset.__init__B  r  r    )rb   r^  )rK   Nrb   r^  r  r<   s   @r   r^  r^  A  r  r    r^  c                   $    e Zd ZdZdZdZdedd fdZee	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	e	fdd            Z
edd	            Z
ededd fd
            Zedee         dd fd            Zedd            Zded         dd fdZe	e	e	e	f fd	Z xZS )YOffsetDatuma  YOffsetDatum 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
        <https://vega.github.io/vega-lite/docs/scale.html#disable>`__.

        **Default value:** If undefined, default `scale properties
        <https://vega.github.io/vega-lite/docs/scale.html>`__ are applied.

        **See also:** `scale <https://vega.github.io/vega-lite/docs/scale.html>`__
        documentation.
    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
        <https://vega.github.io/vega-lite/docs/config.html#top-level-config>`__ property in
        the `config <https://vega.github.io/vega-lite/docs/config.html>`__ or `fieldTitle
        function via the compile function's options
        <https://vega.github.io/vega-lite/usage/compile.html#field-title>`__.

        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'
        <https://vega.github.io/vega-lite/docs/geoshape.html>`__.

        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
        has no specified ``aggregate`` (except ``argmin`` and ``argmax`` ), ``bin``, scale
        type, custom ``sort`` order, nor ``timeUnit`` or (2) if you wish to use an ordinal
        scale for a field with ``bin`` or ``timeUnit``.

        **Default value:**

        1) For a data ``field``, ``"nominal"`` is the default data type unless the field
        encoding has ``aggregate``, ``channel``, ``bin``, scale type, ``sort``, or
        ``timeUnit`` that satisfies the following criteria:


        * ``"quantitative"`` is the default type if (1) the encoded field contains ``bin``
          or ``aggregate`` except ``"argmin"`` and ``"argmax"``, (2) the encoding channel is
          ``latitude`` or ``longitude`` channel or (3) if the specified scale type is `a
          quantitative scale <https://vega.github.io/vega-lite/docs/scale.html#type>`__.
        * ``"temporal"`` is the default type if (1) the encoded field contains ``timeUnit``
          or (2) the specified scale type is a time or utc scale
        * ``"ordinal"`` is the default type if (1) the encoded field contains a `custom sort
          order
          <https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order>`__,
          (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
          <https://vega.github.io/vega-lite/docs/datetime.html>`__

        **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 <https://vega.github.io/vega-lite/docs/bin.html>`__, the
          ``type`` property can be either ``"quantitative"`` (for using a linear bin scale)
          or `"ordinal" (for using an ordinal bin scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `timeUnit
          <https://vega.github.io/vega-lite/docs/timeunit.html>`__, the ``type`` property
          can be either ``"temporal"`` (default, for using a temporal scale) or `"ordinal"
          (for using an ordinal scale)
          <https://vega.github.io/vega-lite/docs/type.html#cast-bin>`__.
        * When using with `aggregate
          <https://vega.github.io/vega-lite/docs/aggregate.html>`__, 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 <https://vega.github.io/vega-lite/docs/type.html>`__
        documentation.
    Fr_  rK   rb   c                     d S rd   r   re   s      r   ro   zYOffsetDatum.bandPositionnC  rp   r    c                     d S rd   r   r   s                            r   r   zYOffsetDatum.scaleqC  rg   r    Nc                     d S rd   r   re   s      r   r   zYOffsetDatum.scaleuC  rg   r    c                     d S rd   r   re   s      r   r   zYOffsetDatum.titleyC  rg   r    c                     d S rd   r   re   s      r   r   zYOffsetDatum.title}C  rg   r    c                     d S rd   r   re   s      r   r   zYOffsetDatum.titleC  rg   r    r  c                     d S rd   r   re   s      r   r"   zYOffsetDatum.typeC  rp   r    c           	      T     t          t          |           j        d|||||d| d S r  )r2   r  rp  r  s          r   rp  zYOffsetDatum.__init__C  r  r    )rb   r  )rK   Nrb   r  r  r<   s   @r   r  r  B  r  r    r  c                   *     e Zd ZdZdZdZ fdZ xZS )YOffsetValuea  YOffsetValue schema wrapper

    Mapping(required=[value])
    Definition object for a constant value (primitive value or gradient definition) of an
    encoding channel.

    Parameters
    ----------

    value : float
        A constant value in visual domain (e.g., ``"red"`` / ``"#0099ff"`` / `gradient
        definition <https://vega.github.io/vega-lite/docs/types.html#gradient>`__ for color,
        values between ``0`` to ``1`` for opacity).
    Fr_  c                 L     t          t          |           j        dd|i| d S r  )r2   r  rp  r  s      r   rp  zYOffsetValue.__init__C  r|  r    r  r<   s   @r   r  r  C  r}  r    r  )sys r   pandasr0   altair.utils.schemapir   r   altair.utilsr   typingr   r	   version_infor   typing_extensionsr   r>   rE   2FieldOrDatumDefWithConditionMarkPropFieldDefnumberrI   *FieldOrDatumDefWithConditionDatumDefnumberr|  2ValueDefWithConditionMarkPropFieldOrDatumDefnumberr  >FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnullr  6FieldOrDatumDefWithConditionDatumDefGradientstringnullr  >ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnullr  RowColumnEncodingFieldDefr  StringFieldDefWithConditionr  StringValueDefWithConditionr2  FieldDefWithoutScaler?  FacetEncodingFieldDefrY  r  r  r  r  r  r  r  r!  r+  LatLongFieldDefrB  DatumDefrW  SecondaryFieldDefrb  rx  PositionValueDefr  r  r  r  r  r  r  r  r  OrderFieldDefr  OrderValueDefr  PositionFieldDefBaser  PositionDatumDefBaserH  rX  r]  rr  rz  r  BFieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnullr  .FieldOrDatumDefWithConditionDatumDefstringnullr  BValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnullr  r  r  r  r  r<  rG  7FieldOrDatumDefWithConditionMarkPropFieldDefnumberArrayrQ  /FieldOrDatumDefWithConditionDatumDefnumberArrayry  7ValueDefWithConditionMarkPropFieldOrDatumDefnumberArrayr  r  r  r  r  r  r  .FieldOrDatumDefWithConditionStringFieldDefTextr  .FieldOrDatumDefWithConditionStringDatumDefTextr!  'ValueDefWithConditionStringFieldDefTextr/  r7  r]  rj  rm  r  r  r  r  r  r  PositionFieldDefr  PositionDatumDefr3  rI  rN  rc  rm  rr  ValueDefnumberr  r  r  ScaleFieldDefr  ScaleDatumDefr  r  r  r   r  r  r'  r/  r2  rE  rH  r[  r^  r  r  r   r    r   <module>r     sL   


           B B B B B B B B ( ( ( ( ( ( ! ! ! ! ! ! ! !v))))))3
 3
 3
 3
 3
 3
 3
 3
lG G G G G G G G"
G 
G 
G 
G 
G 
G 
G 
G u, u, u, u, u,tV u, u, u,p TI TI TI TI TI"D$S TI TI TIn 0S 0S 0S 0S 0S"D$[ 0S 0S 0Sf u, u, u, u, u,tb u, u, u,p TI TI TI TI TI"D$_ TI TI TIn 0S 0S 0S 0S 0S"D$g 0S 0S 0Sf QE QE QE QE QE > QE QE QEh
 q] q] q] q] q]#T%E q] q] q]h	 0Y 0Y 0Y 0Y 0Y($*J 0Y 0Y 0Yf pE pE pE pE pE 9 pE pE pEf Lh Lh Lh Lh Lht9 Lh Lh Lh^ u+ u+ u+ u+ u+da u+ u+ u+p TH TH TH TH TH!4#^ TH TH THn 0R 0R 0R 0R 0R!4#f 0R 0R 0Rf u] u] u] u] u]#T%\ u] u] u]p Td Td Td Td Td($*Y Td Td Tdn 0Y 0Y 0Y 0Y 0Y($*a 0Y 0Y 0Yf q+ q+ q+ q+ q+d> q+ q+ q+h	 0R 0R 0R 0R 0R!4#C 0R 0R 0Rf p* p* p* p* p*
T6 p* p* p*f bZ bZ bZ bZ bZ $"6 bZ bZ bZJ @? @? @? @? @?%t} @? @? @?F \P \P \P \P \P!4#9 \P \P \P~ @@ @@ @@ @@ @@& @@ @@ @@F B B B B B&(= B B B0 b[ b[ b[ b[ b[!4#7 b[ b[ b[J @@ @@ @@ @@ @@& @@ @@ @@F \Q \Q \Q \Q \Q"D$: \Q \Q \Q~ @A @A @A @A @A' @A @A @AF C C C C C')> C C C0 uY uY uY uY uY!X uY uY uYp TK TK TK TK TK$d&U TK TK TKn 0U 0U 0U 0U 0U$d&] 0U 0U 0Uf u7 u7 u7 u7 u7t1 u7 u7 u7p %S %S %S %S %S"D$6 %S %S %SP @- @- @- @- @- 9 @- @- @-F AW AW AW AW AW#T%> AW AW AWH ? ? ? ? ?#T%: ? ? ?0 \N \N \N \N \N!7 \N \N \N~ @> @> @> @> @>$dm @> @> @>F @ @ @ @ @$d&; @ @ @0 QB QB QB QB QB
T; QB QB QBh
 u, u, u, u, u,tf u, u, u,p TI TI TI TI TI"D$W TI TI TIn 0S 0S 0S 0S 0S"D$k 0S 0S 0Sf u+ u+ u+ u+ u+dU u+ u+ u+p TH TH TH TH TH!4#R TH TH THn 0R 0R 0R 0R 0R!4#Z 0R 0R 0Rf uX uX uX uX uX c uX uX uXp TJ TJ TJ TJ TJ#T%` TJ TJ TJn 0T 0T 0T 0T 0T#T%h 0T 0T 0Tf u\ u\ u\ u\ u\"D$` u\ u\ u\p Tc Tc Tc Tc Tc')] Tc Tc Tcn 0X 0X 0X 0X 0X')e 0X 0X 0Xf u_ u_ u_ u_ u_%t'^ u_ u_ u_p Tf Tf Tf Tf Tf*D,[ Tf Tf Tfn 0[ 0[ 0[ 0[ 0[*D,c 0[ 0[ 0[f u] u] u] u] u]#T%\ u] u] u]p Td Td Td Td Td($*Y Td Td Tdn 0Y 0Y 0Y 0Y 0Y($*a 0Y 0Y 0Yf q+ q+ q+ q+ q+dQ q+ q+ q+h	 B0 B0 B0 B0 B0!4#V B0 B0 B0J (R (R (R (R (R!4#O (R (R (RV W W W W Wt8 W W WD AV AV AV AV AV"D$= AV AV AVH > > > > >"D$9 > > >0 \: \: \: \: \: 6 \: \: \:~ @= @= @= @= @=#T] @= @= @=F ? ? ? ? ?#T%: ? ? ?0 qY qY qY qY qY!A qY qY qYh	 0U 0U 0U 0U 0U$d&F 0U 0U 0Uf q* q* q* q* q*
T= q* q* q*h	 0Q 0Q 0Q 0Q 0Q $"B 0Q 0Q 0Qf a3 a3 a3 a3 a340 a3 a3 a3H b_ b_ b_ b_ b_ 5 b_ b_ b_J : : : : : 5 : : :0 [_ [_ [_ [_ [_	D2 [_ [_ [_| @. @. @. @. @. @. @. @.F ; ; ; ; ;!6 ; ; ;0 \: \: \: \: \: 6 \: \: \:~ ? ? ? ? ?#T%8 ? ? ?0 \N \N \N \N \N!7 \N \N \N~ @ @ @ @ @$d&9 @ @ @0 Pd Pd Pd Pd Pd!3 Pd Pd Pdf
 VK VK VK VK VK$d&8 VK VK VKr @ @ @ @ @$d&9 @ @ @0 a3 a3 a3 a3 a340 a3 a3 a3H b_ b_ b_ b_ b_ 5 b_ b_ b_J : : : : : 5 : : :0 [_ [_ [_ [_ [_	D2 [_ [_ [_| @. @. @. @. @. @. @. @.F ; ; ; ; ;!6 ; ; ;0 \: \: \: \: \: 6 \: \: \:~ ? ? ? ? ?#T%8 ? ? ?0 \N \N \N \N \N!7 \N \N \N~ @ @ @ @ @$d&9 @ @ @0 Pd Pd Pd Pd Pd!3 Pd Pd Pdf
 VK VK VK VK VK$d&8 VK VK VKr @ @ @ @ @$d&9 @ @ @ @ @r    