GC.to_spec()
Return the chart spec, as JSON values.
The sequence columns translation and sequence are left out of the data unless an option names them (e.g. a tooltip "{translation}").
Usage
python
chart.to_spec(validate=True)chart is a GC chart.
Arguments
| Argument | Type | Description |
|---|---|---|
validate | bool | Whether to check the spec against the JSON Schema of spec v1. Default True. |
Value
dict: The spec: dicts, lists, strings, numbers, booleans and None, ready for json.dumps(). Data frames are dicts of columns.
