{"action":"opened","issue":{"url":"https://api.github.com/repos/vega/vega-expression/issues/18","repository_url":"https://api.github.com/repos/vega/vega-expression","labels_url":"https://api.github.com/repos/vega/vega-expression/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-expression/issues/18/comments","events_url":"https://api.github.com/repos/vega/vega-expression/issues/18/events","html_url":"https://github.com/vega/vega-expression/issues/18","id":256854171,"number":18,"title":"Add methods ","user":{"login":"kanitw","id":111269,"avatar_url":"https://avatars1.githubusercontent.com/u/111269?v=4","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-11T21:54:32Z","updated_at":"2017-09-11T21:54:32Z","closed_at":null,"author_association":"OWNER","body":"A number of methods augmented in [Vega-parser's codegen](https://github.com/vega/vega-parser/blob/master/src/parsers/expression/codegen.js#L35) do not need Vega context.\r\n\r\nSome of them could be generally useful (e.g., `inrange`, all the formatting + quarter functions). \r\n\r\nThus, we may want to move some of them to Vega expression. \r\n\r\nFor example, I wanna use `vega-expression` with the [expression that Vega-Lite generates for timeUnit](https://github.com/vega/vega-lite/blob/master/src/timeunit.ts#L340) to format text for filter in Voyager.  \r\n\r\n(The output expression combines traditional format string with `quarter()` function, thus I cannot just use `d3-format`.) "}}
{"actor":{"display_login":"kanitw"}}