def __init__(self, spec=None, data=None, url=None, filename=None, metadata=None):
"""Create a VegaLite display object given raw data.
Parameters
----------
spec : dict
VegaLite spec. Not an already-serialized JSON string.
data : dict or list
VegaLite data. Not an already-serialized JSON string.
Scalar types (None, number, string) are not allowed, only dict
or list containers.
url : unicode
A URL to download the data from.
filename : unicode
Path to a local file to load the data from.
metadata: dict
Specify extra metadata to attach to the json display object.
"""
super(VegaLite, self).__init__(spec=spec, data=data, url=url, filename=filename)
评论列表
文章目录