altair.SelectionConfig#

class altair.SelectionConfig(interval=Undefined, point=Undefined, **kwds)#

SelectionConfig 模式包装器。

Parameters:
intervaldict, IntervalSelectionConfigWithoutType

默认的区间选择定义。所有区间选择定义的属性和变换(除了type)可以在这里指定。

例如,将 interval 设置为 {"translate": false} 将默认禁用移动区间选择的功能。

pointdict, PointSelectionConfigWithoutType

一个选择的默认定义。所有点选择定义的属性和变换(除了type)可以在这里指定。

例如,将 point 设置为 {"on": "dblclick"} 默认情况下通过双击填充点选项。

__init__(interval=Undefined, point=Undefined, **kwds)#

方法

__init__([interval, point])

copy([深度, 忽略])

返回对象的副本。

from_dict(dct[, validate])

从字典表示构造类。

from_json(json_string[, validate])

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

resolve_references([schema])

解析此对象的架构或根架构中的引用。

to_dict([validate, ignore, context])

返回对象的字典表示。

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

以字符串形式输出该对象的 JSON 表示。

validate(instance[, schema])

在rootschema的上下文中验证实例是否符合类模式。

validate_property(name, value[, schema])

在根架构的上下文中,根据属性架构验证一个属性。