{"action":"created","issue":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/384","labels_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/384/comments","events_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/384/events","html_url":"https://github.com/pablojim/highcharts-ng/issues/384","id":108597343,"number":384,"title":"Where to put the chart config in a directive?","user":{"login":"riyunoa","id":7495299,"avatar_url":"https://avatars.githubusercontent.com/u/7495299?v=3","gravatar_id":"","url":"https://api.github.com/users/riyunoa","html_url":"https://github.com/riyunoa","followers_url":"https://api.github.com/users/riyunoa/followers","following_url":"https://api.github.com/users/riyunoa/following{/other_user}","gists_url":"https://api.github.com/users/riyunoa/gists{/gist_id}","starred_url":"https://api.github.com/users/riyunoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riyunoa/subscriptions","organizations_url":"https://api.github.com/users/riyunoa/orgs","repos_url":"https://api.github.com/users/riyunoa/repos","events_url":"https://api.github.com/users/riyunoa/events{/privacy}","received_events_url":"https://api.github.com/users/riyunoa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T06:37:50Z","updated_at":"2015-09-29T16:24:34Z","closed_at":null,"body":"I've tried putting the config in the \"link\" function of the directive but it doesn't work. When I put it in \"controller\", it works. Why is this? Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/comments/144110895","html_url":"https://github.com/pablojim/highcharts-ng/issues/384#issuecomment-144110895","issue_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/384","id":144110895,"user":{"login":"mluisbrown","id":4175766,"avatar_url":"https://avatars.githubusercontent.com/u/4175766?v=3","gravatar_id":"","url":"https://api.github.com/users/mluisbrown","html_url":"https://github.com/mluisbrown","followers_url":"https://api.github.com/users/mluisbrown/followers","following_url":"https://api.github.com/users/mluisbrown/following{/other_user}","gists_url":"https://api.github.com/users/mluisbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/mluisbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mluisbrown/subscriptions","organizations_url":"https://api.github.com/users/mluisbrown/orgs","repos_url":"https://api.github.com/users/mluisbrown/repos","events_url":"https://api.github.com/users/mluisbrown/events{/privacy}","received_events_url":"https://api.github.com/users/mluisbrown/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T16:24:34Z","updated_at":"2015-09-29T16:24:34Z","body":"There are a number of things that just don't work if you put the config in the `link` function of a directive.  Issue #326 demonstrates this. `datetime` x-axis formatting doesn't work, neither do axis titles (x or y). JSFiddle: https://jsfiddle.net/w657bcdp/\r\nIf you have the config in a controller there's no issue. Spent hours scratching my head before realising this."}}