altair.OrderOnlyDef#

class altair.OrderOnlyDef(sort=Undefined, **kwds)#

OrderOnlyDef Schema 封装器。

参数:
sortSortOrder, Literal['ascending', 'descending']

排序顺序。可选值为 "ascending"(默认)或 "descending"

__init__(sort=Undefined, **kwds)#

方法

__init__([sort])

copy([deep, ignore])

返回对象的副本。

from_dict(dct[, validate])

从字典表示构建类实例。

from_json(json_string[, validate])

从有效的 JSON 字符串实例化对象。

resolve_references([schema])

在此对象的 Schema 或根 Schema 的上下文中解析引用。

to_dict([validate, ignore, context])

返回对象的字典表示。

to_json([validate, indent, sort_keys, ...])

将此对象的 JSON 表示形式作为字符串输出。

validate(instance[, schema])

在根 Schema 的上下文中,根据类 Schema 验证实例。

validate_property(name, value[, schema])

在根 Schema 的上下文中,根据属性 Schema 验证属性。