{"action":"opened","issue":{"url":"https://api.github.com/repos/vega/vega-embed/issues/13","repository_url":"https://api.github.com/repos/vega/vega-embed","labels_url":"https://api.github.com/repos/vega/vega-embed/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-embed/issues/13/comments","events_url":"https://api.github.com/repos/vega/vega-embed/issues/13/events","html_url":"https://github.com/vega/vega-embed/issues/13","id":179543016,"number":13,"title":"optionally view compiled Vega source for vega-lite specs","user":{"login":"Georgeouz","id":12123506,"avatar_url":"https://avatars.githubusercontent.com/u/12123506?v=3","gravatar_id":"","url":"https://api.github.com/users/Georgeouz","html_url":"https://github.com/Georgeouz","followers_url":"https://api.github.com/users/Georgeouz/followers","following_url":"https://api.github.com/users/Georgeouz/following{/other_user}","gists_url":"https://api.github.com/users/Georgeouz/gists{/gist_id}","starred_url":"https://api.github.com/users/Georgeouz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Georgeouz/subscriptions","organizations_url":"https://api.github.com/users/Georgeouz/orgs","repos_url":"https://api.github.com/users/Georgeouz/repos","events_url":"https://api.github.com/users/Georgeouz/events{/privacy}","received_events_url":"https://api.github.com/users/Georgeouz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T16:24:15Z","updated_at":"2016-09-27T16:24:15Z","closed_at":null,"body":"It would be nice if the viewSource action button could also be set to view the **compiled Vega source** for displays generated with vega-lite. I sometimes use vega-lite to build a rough design and then continue with Vega for the fine-tuning.\r\n\r\nCurrently, I work around this with the following code, which allows me to put the Vega compiled source underneath the display:\r\n\r\n```\r\n// show compiled vega source for vl specifications\r\nvar mycode = d3.select('#source');\r\nmycode.append('pre')\r\n             .append('code')\r\n             .attr('class', 'json')\r\n             .text(JSON.stringify(result.spec, null, 2));\r\n```"}}
{"actor":{"display_login":"Georgeouz"}}