showSpecInTab() - abudaan/vega-multi-view GitHub Wiki

// @flow
showSpecInTab(SpecType)

You can also import a utility function that prints the spec in JSON format to a new tab:

import { showSpecInTab } from 'vega-multi-view';
import spec from '../specs/my-spec';

button.addEventListener('click', () => {
    showSpecInTab(spec);
});