{"action":"created","issue":{"url":"https://api.github.com/repos/Sibilino/yii2-dygraphswidget/issues/1","labels_url":"https://api.github.com/repos/Sibilino/yii2-dygraphswidget/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Sibilino/yii2-dygraphswidget/issues/1/comments","events_url":"https://api.github.com/repos/Sibilino/yii2-dygraphswidget/issues/1/events","html_url":"https://github.com/Sibilino/yii2-dygraphswidget/issues/1","id":93554750,"number":1,"title":"Missing doc: how to use ActiveRecords as data source","user":{"login":"butterflyx","id":5388631,"avatar_url":"https://avatars.githubusercontent.com/u/5388631?v=3","gravatar_id":"","url":"https://api.github.com/users/butterflyx","html_url":"https://github.com/butterflyx","followers_url":"https://api.github.com/users/butterflyx/followers","following_url":"https://api.github.com/users/butterflyx/following{/other_user}","gists_url":"https://api.github.com/users/butterflyx/gists{/gist_id}","starred_url":"https://api.github.com/users/butterflyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/butterflyx/subscriptions","organizations_url":"https://api.github.com/users/butterflyx/orgs","repos_url":"https://api.github.com/users/butterflyx/repos","events_url":"https://api.github.com/users/butterflyx/events{/privacy}","received_events_url":"https://api.github.com/users/butterflyx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-07T15:13:49Z","updated_at":"2015-07-08T16:01:47Z","closed_at":null,"body":"Thank you for this widget.\r\n\r\nIt would be very helpfull, if the documentation would contain an example where the data source is an ActiveDataProvider e.g. to visualize table data in a typical CRUD index-view."},"comment":{"url":"https://api.github.com/repos/Sibilino/yii2-dygraphswidget/issues/comments/119635665","html_url":"https://github.com/Sibilino/yii2-dygraphswidget/issues/1#issuecomment-119635665","issue_url":"https://api.github.com/repos/Sibilino/yii2-dygraphswidget/issues/1","id":119635665,"user":{"login":"Sibilino","id":3646583,"avatar_url":"https://avatars.githubusercontent.com/u/3646583?v=3","gravatar_id":"","url":"https://api.github.com/users/Sibilino","html_url":"https://github.com/Sibilino","followers_url":"https://api.github.com/users/Sibilino/followers","following_url":"https://api.github.com/users/Sibilino/following{/other_user}","gists_url":"https://api.github.com/users/Sibilino/gists{/gist_id}","starred_url":"https://api.github.com/users/Sibilino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sibilino/subscriptions","organizations_url":"https://api.github.com/users/Sibilino/orgs","repos_url":"https://api.github.com/users/Sibilino/repos","events_url":"https://api.github.com/users/Sibilino/events{/privacy}","received_events_url":"https://api.github.com/users/Sibilino/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T16:01:47Z","updated_at":"2015-07-08T16:01:47Z","body":"Those do sound like necessary features, I'll try to add them soon.\r\n\r\nIn the meantime, can you try leaving `$date` as string (i. e., `$date = $day` in your code) and adding `'xIsDate' => true` in the widget's config array? That way the date strings will automatically be parsed by the widget."}}