altair.Step#
- class altair.Step(step=Undefined, **kwds)#
Step schema wrapper。
- 参数:
- stepfloat
每个离散步骤的大小(宽度/高度)。
- for
StepFor
, Literal['position', 'offset'] 当同时存在
x
和xOffset
或同时存在y
和yOffset
编码时,是否将步骤应用于位置比例尺或偏移比例尺。
- __init__(step=Undefined, **kwds)#
方法
__init__
([step])copy
([deep, ignore])返回对象的副本。
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])在根模式的上下文中,根据类模式验证实例。
validate_property
(name, value[, schema])在根模式的上下文中,根据属性模式验证属性。