{"action":"created","issue":{"url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/issues/9","labels_url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/issues/9/comments","events_url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/issues/9/events","html_url":"https://github.com/johnmyleswhite/Vega.jl/issues/9","id":95830382,"number":9,"title":"ENH: center titles","user":{"login":"spencerlyon2","id":1001948,"avatar_url":"https://avatars.githubusercontent.com/u/1001948?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerlyon2","html_url":"https://github.com/spencerlyon2","followers_url":"https://api.github.com/users/spencerlyon2/followers","following_url":"https://api.github.com/users/spencerlyon2/following{/other_user}","gists_url":"https://api.github.com/users/spencerlyon2/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerlyon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerlyon2/subscriptions","organizations_url":"https://api.github.com/users/spencerlyon2/orgs","repos_url":"https://api.github.com/users/spencerlyon2/repos","events_url":"https://api.github.com/users/spencerlyon2/events{/privacy}","received_events_url":"https://api.github.com/users/spencerlyon2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-18T14:47:24Z","updated_at":"2015-07-18T18:14:10Z","closed_at":null,"body":"We should change [this line](https://github.com/johnmyleswhite/Vega.jl/blob/575a6274abad6309cc69c59e648f01fa83f02743/src/intermediates/modifiers.jl#L31) so that instead of just setting x equal to the middle of the figure, we choose something further to the left based on the length of the title string. "},"comment":{"url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/issues/comments/122573793","html_url":"https://github.com/johnmyleswhite/Vega.jl/issues/9#issuecomment-122573793","issue_url":"https://api.github.com/repos/johnmyleswhite/Vega.jl/issues/9","id":122573793,"user":{"login":"spencerlyon2","id":1001948,"avatar_url":"https://avatars.githubusercontent.com/u/1001948?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerlyon2","html_url":"https://github.com/spencerlyon2","followers_url":"https://api.github.com/users/spencerlyon2/followers","following_url":"https://api.github.com/users/spencerlyon2/following{/other_user}","gists_url":"https://api.github.com/users/spencerlyon2/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerlyon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerlyon2/subscriptions","organizations_url":"https://api.github.com/users/spencerlyon2/orgs","repos_url":"https://api.github.com/users/spencerlyon2/repos","events_url":"https://api.github.com/users/spencerlyon2/events{/privacy}","received_events_url":"https://api.github.com/users/spencerlyon2/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T18:14:10Z","updated_at":"2015-07-18T18:14:10Z","body":"An alternative is to add another axis at the top that is not visible, but has a text label. \r\n\r\nI kinda like this approach because it would take care of centering the title for us and it would also allow us to change the title later. Right now we can change the title, we just add a whole separate mark so it just adds the new text without removing what was already there. If it were an axis that we could identify after creation, subsequent calls to title! could just use the existing axis and alter the text. \r\n\r\nThoughts from the  experts?"}}