{"action":"created","issue":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/882","repository_url":"https://api.github.com/repos/plotly/plotly.js","labels_url":"https://api.github.com/repos/plotly/plotly.js/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/882/comments","events_url":"https://api.github.com/repos/plotly/plotly.js/issues/882/events","html_url":"https://github.com/plotly/plotly.js/issues/882","id":173267067,"number":882,"title":"Chart Title Alignment","user":{"login":"CalvinFernandez","id":2644420,"avatar_url":"https://avatars3.githubusercontent.com/u/2644420?v=4","gravatar_id":"","url":"https://api.github.com/users/CalvinFernandez","html_url":"https://github.com/CalvinFernandez","followers_url":"https://api.github.com/users/CalvinFernandez/followers","following_url":"https://api.github.com/users/CalvinFernandez/following{/other_user}","gists_url":"https://api.github.com/users/CalvinFernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/CalvinFernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalvinFernandez/subscriptions","organizations_url":"https://api.github.com/users/CalvinFernandez/orgs","repos_url":"https://api.github.com/users/CalvinFernandez/repos","events_url":"https://api.github.com/users/CalvinFernandez/events{/privacy}","received_events_url":"https://api.github.com/users/CalvinFernandez/received_events","type":"User","site_admin":false},"labels":[{"id":282886925,"url":"https://api.github.com/repos/plotly/plotly.js/labels/type:%20feature","name":"type: feature","color":"1f78b4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-25T17:45:57Z","updated_at":"2017-12-08T15:23:58Z","closed_at":null,"author_association":"NONE","body":"Would it be possible to provide alignment API for chart title, \"left\", \"center\" \"right\" ? \n"},"comment":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/comments/350289945","html_url":"https://github.com/plotly/plotly.js/issues/882#issuecomment-350289945","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/882","id":350289945,"user":{"login":"alexcjohnson","id":2678795,"avatar_url":"https://avatars3.githubusercontent.com/u/2678795?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcjohnson","html_url":"https://github.com/alexcjohnson","followers_url":"https://api.github.com/users/alexcjohnson/followers","following_url":"https://api.github.com/users/alexcjohnson/following{/other_user}","gists_url":"https://api.github.com/users/alexcjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcjohnson/subscriptions","organizations_url":"https://api.github.com/users/alexcjohnson/orgs","repos_url":"https://api.github.com/users/alexcjohnson/repos","events_url":"https://api.github.com/users/alexcjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/alexcjohnson/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T15:23:58Z","updated_at":"2017-12-08T15:23:58Z","author_association":"CONTRIBUTOR","body":"See below: Red is `'container'`, it's the entire area of the plot `<div>` including margins. Black is `'paper'`, it's the coordinate system used to lay out subplots, the legend, and paper-referenced components (shapes, annotations, images), and is basically red minus margins. Be careful because occasionally the margins are increased beyond what was originally specified - use `fullLayout._size`, it already knows about this.\r\n\r\nYou're right, it would be weird to put the title in the middle, though maybe there would be uses for it - like if you make a donut chart and want the title in the hole? The main use for `'paper'` in title positioning would be sitting on the subplots like the \"Paper-referenced title\" below. This would look like:\r\n```js\r\ntitle: {\r\n  text: 'Paper-referenced title',\r\n  xanchor: 'left', // or 'auto', which matches 'left' in this case\r\n  yanchor: 'bottom',\r\n  x: 0,\r\n  y: 1,\r\n  xref: 'paper',\r\n  yref: 'paper'\r\n}\r\n```\r\n\r\n<img width=\"709\" alt=\"screen shot 2017-12-08 at 10 05 36 am\" src=\"https://user-images.githubusercontent.com/2678795/33771976-182b799a-dc01-11e7-9d00-75fb32063754.png\">\r\n\r\n\r\n"}}
{"actor":{"display_login":"alexcjohnson"}}