{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega-lite/issues/897","labels_url":"https://api.github.com/repos/vega/vega-lite/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-lite/issues/897/comments","events_url":"https://api.github.com/repos/vega/vega-lite/issues/897/events","html_url":"https://github.com/vega/vega-lite/pull/897","id":123934441,"number":897,"title":"[WIP] Bar Label","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-26T15:19:54Z","updated_at":"2015-12-27T18:07:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vega/vega-lite/pulls/897","html_url":"https://github.com/vega/vega-lite/pull/897","diff_url":"https://github.com/vega/vega-lite/pull/897.diff","patch_url":"https://github.com/vega/vega-lite/pull/897.patch"},"body":"@willium let’s create a feature branch “1.x-label” so that we can merge label related stuff into this branch since we’re not sure if all labels will be done by the 1.0 release.  "},"comment":{"url":"https://api.github.com/repos/vega/vega-lite/issues/comments/167431950","html_url":"https://github.com/vega/vega-lite/pull/897#issuecomment-167431950","issue_url":"https://api.github.com/repos/vega/vega-lite/issues/897","id":167431950,"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-12-27T18:07:09Z","updated_at":"2015-12-27T18:07:09Z","body":"> Because the axis color is set by Vega, how should we handle the coloring of the label?\r\n\r\nThis is marks label, so we shouldn't worry too much about axis label.   That said, I think having label in black by default is a reasonable option.  We can then provide a set of label configs ( `config.label.<property>` for customizing marks property of the label marks and other label options).  \r\nAnd maybe add a special `config.label.sameColorAsMark` to make the label use the same color as mark (no matter it's from `encoding.color.value` or `encoding.color.field`)\r\n\r\nI just send a PR to provide scaffolding for `config.label`.  \r\n\r\n> I hardcoded in offsets of 6\r\nEventually we might add `config.label.offset` as part of `config.label`.  \r\nwe might try to add label for other mark type first -- just to see if they can share same set of config properties? \r\n\r\n> I hardcoded in offsets of 6 because its the same as the grid offset, but wasn't sure if I should directly pull from that or not.\r\n\r\nI'm changing gridOffset to 0 and they are different things -- so definitely not! \r\n\r\n>  l.dy's mult and band parameters don't seem to do anything\r\nMaybe @arvind  will know better about this.  "}}