.vg.json, .vl.json, .vg, or .vl.
Switch view modes
Use the toolbar toggle to show the chart (Preview), the JSON beside the chart (Split), or the JSON alone (Source). Save with Cmd+S (Mac) or Ctrl+S (Windows/Linux). To make a chart resize with the pane, set"width": "container" or "height": "container" in its spec.
Edit with a live preview
In Split view, the chart redraws as you edit. If the JSON is invalid, the last valid chart stays on screen with the error beneath it. Tooltips, selections, and other signals defined in the spec work in the preview.Load data files
A spec can load data by URL. A relative URL, such as"data": {"url": "data.csv"}, points to a file in the chart file’s own folder. Keep a spec and its data files together so the chart still loads after you move the folder.

