IS
Size: a a a
IS
AD
import altair as alt
from vega_datasets import data
source = data.cars.url
alt_chart_dict = alt.Chart(data.cars.url).mark_point().encode(
x="Horsepower:Q",
y="Miles_per_Gallon:Q",
color="Origin:N"
).to_dict(validate=True)
alt_chart_obj = alt.Parse.from_dict(alt_chart_dict)
jsonschema.exceptions.ValidationError: {'color': {'type': 'nominal', 'field': 'Origin'}, 'x': {'type': 'quantitative', 'field': 'Horsepower'}, 'y': {'type': 'quantitative', 'field': 'Miles_per_Gallon'}} is not of type 'null'
Failed validating 'type' in schema[0]:
{'type': 'null'}
AD
ES
IS
ES
ES
D
ES
МБ
IS
AO
ES
WP
С
KG
A
КД
s
VM