altair.ConditionalPredicateValueDefnumber#
- class altair.ConditionalPredicateValueDefnumber(test=Undefined, value=Undefined, **kwds)#
ConditionalPredicateValueDefnumber schema 的封装器。
- 参数:
- teststr, dict,
Predicate
,FieldGTPredicate
,FieldLTPredicate
,FieldGTEPredicate
,FieldLTEPredicate
,LogicalOrPredicate
,ParameterPredicate
,FieldEqualPredicate
,FieldOneOfPredicate
,FieldRangePredicate
,FieldValidPredicate
,LogicalAndPredicate
,LogicalNotPredicate
,PredicateComposition
用于触发条件的断言 (Predicate)
- valuefloat
可视域中的一个常量值(例如,颜色的值可以是
"red"
/"#0099ff"
/ 渐变定义,不透明度 (opacity) 的值在0
到1
之间)。
- teststr, dict,
- __init__(test=Undefined, value=Undefined, **kwds)#
方法
__init__
([test, value])返回对象的副本。
copy
([deep, ignore])从字典表示构造类。
from_dict
(dct[, validate])从有效的 JSON 字符串实例化对象。
from_json
(json_string[, validate])在此对象的 schema 或根 schema 的上下文中解析引用。
resolve_references
([schema])返回对象的字典表示。
to_dict
([validate, ignore, context])将此对象的 JSON 表示作为字符串发出。
to_json
([validate, indent, sort_keys, ...])在 rootschema 的上下文中根据类 schema 验证实例。
validate
(instance[, schema])在 rootschema 的上下文中根据属性 schema 验证属性。
validate_property
(name, value[, schema])