{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega/issues/332","labels_url":"https://api.github.com/repos/vega/vega/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega/issues/332/comments","events_url":"https://api.github.com/repos/vega/vega/issues/332/events","html_url":"https://github.com/vega/vega/issues/332","id":101771214,"number":332,"title":"Custom axis labels don't work in Vega 2","user":{"login":"floribon","id":2934743,"avatar_url":"https://avatars.githubusercontent.com/u/2934743?v=3","gravatar_id":"","url":"https://api.github.com/users/floribon","html_url":"https://github.com/floribon","followers_url":"https://api.github.com/users/floribon/followers","following_url":"https://api.github.com/users/floribon/following{/other_user}","gists_url":"https://api.github.com/users/floribon/gists{/gist_id}","starred_url":"https://api.github.com/users/floribon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floribon/subscriptions","organizations_url":"https://api.github.com/users/floribon/orgs","repos_url":"https://api.github.com/users/floribon/repos","events_url":"https://api.github.com/users/floribon/events{/privacy}","received_events_url":"https://api.github.com/users/floribon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vega/vega/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"arvind","id":42262,"avatar_url":"https://avatars.githubusercontent.com/u/42262?v=3","gravatar_id":"","url":"https://api.github.com/users/arvind","html_url":"https://github.com/arvind","followers_url":"https://api.github.com/users/arvind/followers","following_url":"https://api.github.com/users/arvind/following{/other_user}","gists_url":"https://api.github.com/users/arvind/gists{/gist_id}","starred_url":"https://api.github.com/users/arvind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvind/subscriptions","organizations_url":"https://api.github.com/users/arvind/orgs","repos_url":"https://api.github.com/users/arvind/repos","events_url":"https://api.github.com/users/arvind/events{/privacy}","received_events_url":"https://api.github.com/users/arvind/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-08-18T23:19:15Z","updated_at":"2015-08-19T00:11:43Z","closed_at":null,"body":"I found this discussion on Google groups: https://groups.google.com/forum/#!topic/vega-js/gJ2eitYj6lk\r\n\r\nI've updated the spec to vega 2, but instead of custom labels we see raw js code.\r\n\r\nIf that is not a bug, could you provide an example of labels lookup? Thanks\r\n\r\n![screen shot 2015-08-18 at 4 18 02 pm](https://cloud.githubusercontent.com/assets/2934743/9345356/d9599cee-45c4-11e5-87e0-25fbf28f2f13.png)\r\n\r\n\r\n```\r\n{ \r\n  \"width\": 400, \r\n  \"height\": 200, \r\n  \"padding\": {\"top\": 10, \"left\": 30, \"bottom\": 100, \"right\": 10}, \r\n  \"data\": [ \r\n    { \r\n      \"name\": \"table\", \r\n      \"values\": [ \r\n        {\"x\": 1,  \"y\": 28}, {\"x\": 2,  \"y\": 55}, \r\n        {\"x\": 3,  \"y\": 43}, {\"x\": 4,  \"y\": 91}, \r\n        {\"x\": 5,  \"y\": 81}, {\"x\": 6,  \"y\": 53}, \r\n        {\"x\": 7,  \"y\": 19}, {\"x\": 8,  \"y\": 87}, \r\n        {\"x\": 9,  \"y\": 52}, {\"x\": 10, \"y\": 48}, \r\n        {\"x\": 11, \"y\": 24}, {\"x\": 12, \"y\": 49}, \r\n        {\"x\": 13, \"y\": 87}, {\"x\": 14, \"y\": 66}, \r\n        {\"x\": 15, \"y\": 17}, {\"x\": 16, \"y\": 27}, \r\n        {\"x\": 17, \"y\": 68}, {\"x\": 18, \"y\": 16}, \r\n        {\"x\": 19, \"y\": 49}, {\"x\": 20, \"y\": 15} \r\n      ] \r\n    } \r\n  ], \r\n  \"scales\": [ \r\n    { \r\n      \"name\": \"x\", \r\n      \"type\": \"ordinal\", \r\n      \"range\": \"width\", \r\n      \"domain\": {\"data\": \"table\", \"field\": \"x\"} \r\n    }, \r\n    { \r\n      \"name\": \"xlabels\", \r\n      \"type\": \"ordinal\", \r\n      \"domain\": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20], \r\n      \"range\": [\"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"seven\", \"eight\", \"nine\", \"ten\", \"eleven\", \"twelve\", \"thirteen\", \"fourteen\", \"fifteen\", \"sixteen\", \"seventeen\", \"eighteen\", \"nineteen\", \"twenty\"] \r\n    }, \r\n    { \r\n      \"name\": \"y\", \r\n      \"range\": \"height\", \r\n      \"nice\": true, \r\n      \"domain\": {\"data\": \"table\", \"field\": \"y\"} \r\n    } \r\n  ], \r\n  \"axes\": [ \r\n    { \r\n        \"type\": \"x\", \r\n        \"scale\": \"x\", \r\n        \"properties\": { \r\n          \"ticks\": { \r\n            \"stroke\": {\"value\": \"steelblue\"} \r\n          }, \r\n          \"majorTicks\": { \r\n            \"strokeWidth\": {\"value\": 2} \r\n          }, \r\n          \"labels\": { \r\n            \"text\": {\"scale\": \"xlabels\"}, \r\n            \"fill\": {\"value\": \"steelblue\"}, \r\n            \"angle\": {\"value\": 50}, \r\n            \"fontSize\": {\"value\": 14}, \r\n            \"align\": {\"value\": \"left\"}, \r\n            \"baseline\": {\"value\": \"middle\"}, \r\n            \"dx\": {\"value\": 3} \r\n          }, \r\n          \"axis\": { \r\n            \"stroke\": {\"value\": \"#333\"}, \r\n            \"strokeWidth\": {\"value\": 1.5} \r\n          } \r\n        } \r\n    }, \r\n    {\"type\": \"y\", \"scale\": \"y\"} \r\n  ], \r\n  \"marks\": [ \r\n    { \r\n      \"type\": \"rect\", \r\n      \"from\": {\"data\": \"table\"}, \r\n      \"properties\": { \r\n        \"enter\": { \r\n          \"x\": {\"scale\": \"x\", \"field\": \"x\"}, \r\n          \"width\": {\"scale\": \"x\", \"band\": true, \"offset\": -1}, \r\n          \"y\": {\"scale\": \"y\", \"field\": \"y\"}, \r\n          \"y2\": {\"scale\": \"y\", \"value\": 0} \r\n        }, \r\n        \"update\": { \r\n          \"fill\": {\"value\": \"steelblue\"} \r\n        }, \r\n        \"hover\": { \r\n          \"fill\": {\"value\": \"red\"} \r\n        } \r\n      } \r\n    } \r\n  ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/vega/vega/issues/comments/132398360","html_url":"https://github.com/vega/vega/issues/332#issuecomment-132398360","issue_url":"https://api.github.com/repos/vega/vega/issues/332","id":132398360,"user":{"login":"floribon","id":2934743,"avatar_url":"https://avatars.githubusercontent.com/u/2934743?v=3","gravatar_id":"","url":"https://api.github.com/users/floribon","html_url":"https://github.com/floribon","followers_url":"https://api.github.com/users/floribon/followers","following_url":"https://api.github.com/users/floribon/following{/other_user}","gists_url":"https://api.github.com/users/floribon/gists{/gist_id}","starred_url":"https://api.github.com/users/floribon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floribon/subscriptions","organizations_url":"https://api.github.com/users/floribon/orgs","repos_url":"https://api.github.com/users/floribon/repos","events_url":"https://api.github.com/users/floribon/events{/privacy}","received_events_url":"https://api.github.com/users/floribon/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T00:11:43Z","updated_at":"2015-08-19T00:11:43Z","body":"Awesome, that works for me too."}}