{"action":"created","issue":{"url":"https://api.github.com/repos/uwdata/vega-lite/issues/540","labels_url":"https://api.github.com/repos/uwdata/vega-lite/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/uwdata/vega-lite/issues/540/comments","events_url":"https://api.github.com/repos/uwdata/vega-lite/issues/540/events","html_url":"https://github.com/uwdata/vega-lite/issues/540","id":99368564,"number":540,"title":"De-compiling vg spec to vl spec","user":{"login":"vinodpahuja","id":541875,"avatar_url":"https://avatars.githubusercontent.com/u/541875?v=3","gravatar_id":"","url":"https://api.github.com/users/vinodpahuja","html_url":"https://github.com/vinodpahuja","followers_url":"https://api.github.com/users/vinodpahuja/followers","following_url":"https://api.github.com/users/vinodpahuja/following{/other_user}","gists_url":"https://api.github.com/users/vinodpahuja/gists{/gist_id}","starred_url":"https://api.github.com/users/vinodpahuja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinodpahuja/subscriptions","organizations_url":"https://api.github.com/users/vinodpahuja/orgs","repos_url":"https://api.github.com/users/vinodpahuja/repos","events_url":"https://api.github.com/users/vinodpahuja/events{/privacy}","received_events_url":"https://api.github.com/users/vinodpahuja/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T06:37:00Z","updated_at":"2015-08-06T14:32:48Z","closed_at":"2015-08-06T14:32:48Z","body":"Hi,\r\n\r\nI was playing around with some use case to convert few basic encoding to vega spec. Later I need to modify those vega spec. But I didn't find any way to convert it back to vl spec. I am stuck with manually modify the vega spec.\r\n\r\nIs there any way that can de-compile vega spec to vl spec.?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/uwdata/vega-lite/issues/comments/128393204","html_url":"https://github.com/uwdata/vega-lite/issues/540#issuecomment-128393204","issue_url":"https://api.github.com/repos/uwdata/vega-lite/issues/540","id":128393204,"user":{"login":"kanitw","id":111269,"avatar_url":"https://avatars.githubusercontent.com/u/111269?v=3","gravatar_id":"","url":"https://api.github.com/users/kanitw","html_url":"https://github.com/kanitw","followers_url":"https://api.github.com/users/kanitw/followers","following_url":"https://api.github.com/users/kanitw/following{/other_user}","gists_url":"https://api.github.com/users/kanitw/gists{/gist_id}","starred_url":"https://api.github.com/users/kanitw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanitw/subscriptions","organizations_url":"https://api.github.com/users/kanitw/orgs","repos_url":"https://api.github.com/users/kanitw/repos","events_url":"https://api.github.com/users/kanitw/events{/privacy}","received_events_url":"https://api.github.com/users/kanitw/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T14:32:48Z","updated_at":"2015-08-06T14:32:48Z","body":"By design, Vega is more expressive than Vega-lite.  Therefore, one can't write a function that decompiles  Vega to Vega-lite function that works with any Vega specification.  \r\n\r\nIf you only modify config values without modifying the Vega spec structure.  In theory, it should map back to Vega-lite nicely.  But if you're doing these minor fiddles anyway, I suggest that you modify those properties directly from Vega-lite.   We haven't written a documentation for Vega-lite spec but if you want to dig into code to see what properties are available, take a look at [Vega-lite JSON schema in schema.js starting from line 727](https://github.com/uwdata/vega-lite/blob/master/src/schema/schema.js#L727).   That should give you a list of all available properties.  \r\n\r\n"}}