{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/49","labels_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/49/comments","events_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/49/events","html_url":"https://github.com/danielgindi/ios-charts/issues/49","id":70632296,"number":49,"title":"Charts won't draw unless initialized with a frame","user":{"login":"westerlund","id":359712,"avatar_url":"https://avatars.githubusercontent.com/u/359712?v=3","gravatar_id":"","url":"https://api.github.com/users/westerlund","html_url":"https://github.com/westerlund","followers_url":"https://api.github.com/users/westerlund/followers","following_url":"https://api.github.com/users/westerlund/following{/other_user}","gists_url":"https://api.github.com/users/westerlund/gists{/gist_id}","starred_url":"https://api.github.com/users/westerlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westerlund/subscriptions","organizations_url":"https://api.github.com/users/westerlund/orgs","repos_url":"https://api.github.com/users/westerlund/repos","events_url":"https://api.github.com/users/westerlund/events{/privacy}","received_events_url":"https://api.github.com/users/westerlund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-24T09:03:56Z","updated_at":"2015-04-29T15:42:01Z","closed_at":null,"body":"It took me a while to figure this out, but I couldn't get the charts to draw unless the chart view was initialized with a frame.\r\n\r\nThere would be two solutions to this, either support changing the frame of the view or do something drastically like putting a fatalError() in the init() method, to prevent using that.\r\n\r\n```Swift\r\nvar lineChart = LineChartView() // won't draw any chart\r\nvar lineChart = LineChartView(frame: view.bounds) // will draw charts with the specified frame\r\n```\r\n\r\nI might write a pull request with a fix, but at least it is reported now.\r\n\r\nBest,\r\nSimon"},"comment":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/comments/97474770","html_url":"https://github.com/danielgindi/ios-charts/issues/49#issuecomment-97474770","issue_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/49","id":97474770,"user":{"login":"danielgindi","id":366926,"avatar_url":"https://avatars.githubusercontent.com/u/366926?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgindi","html_url":"https://github.com/danielgindi","followers_url":"https://api.github.com/users/danielgindi/followers","following_url":"https://api.github.com/users/danielgindi/following{/other_user}","gists_url":"https://api.github.com/users/danielgindi/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgindi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgindi/subscriptions","organizations_url":"https://api.github.com/users/danielgindi/orgs","repos_url":"https://api.github.com/users/danielgindi/repos","events_url":"https://api.github.com/users/danielgindi/events{/privacy}","received_events_url":"https://api.github.com/users/danielgindi/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T15:42:01Z","updated_at":"2015-04-29T15:42:01Z","body":"Maybe println?\nOr just a breakpoint to make sure it reaches there after resizing?\nI know there are still some bugs when debugging Swift...\n\nOn Wed, Apr 29, 2015 at 6:40 PM, AlBirdie <notifications@github.com> wrote:\n\n> Sorry, just read your comment now. Is there a way to debug this from an\n> Objective-C project? I can't look into the variables when I set a\n> breakpoint in the code you've mentioned.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/danielgindi/ios-charts/issues/49#issuecomment-97474436>\n> .\n>\n"}}