{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/chartkick/issues/224","repository_url":"https://api.github.com/repos/ankane/chartkick","labels_url":"https://api.github.com/repos/ankane/chartkick/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/ankane/chartkick/issues/224/comments","events_url":"https://api.github.com/repos/ankane/chartkick/issues/224/events","html_url":"https://github.com/ankane/chartkick/issues/224","id":120316735,"number":224,"title":"group_by_month(:date) returns number of entries under that month instead of month_name","user":{"login":"acp15ak","id":16144644,"avatar_url":"https://avatars.githubusercontent.com/u/16144644?v=3","gravatar_id":"","url":"https://api.github.com/users/acp15ak","html_url":"https://github.com/acp15ak","followers_url":"https://api.github.com/users/acp15ak/followers","following_url":"https://api.github.com/users/acp15ak/following{/other_user}","gists_url":"https://api.github.com/users/acp15ak/gists{/gist_id}","starred_url":"https://api.github.com/users/acp15ak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acp15ak/subscriptions","organizations_url":"https://api.github.com/users/acp15ak/orgs","repos_url":"https://api.github.com/users/acp15ak/repos","events_url":"https://api.github.com/users/acp15ak/events{/privacy}","received_events_url":"https://api.github.com/users/acp15ak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-12-04T02:14:21Z","updated_at":"2016-12-05T03:17:43Z","closed_at":"2016-12-05T03:17:43Z","body":"I have an application under which I have purchase_date, quantity and price.\n\nWhen I use column_chart (uing haml):\n'=column_chart PurchaseHistory.group_by_month(:purchase_date).sum(\"price \\* quantity\")'\nit returns number of items under that month instead of the name of the month.\n\nIs there any way to achieve this?\n![report_screenshot](https://cloud.githubusercontent.com/assets/16144644/11580152/537f971a-9a2c-11e5-8758-2862b81c1770.png)\n\nNote: i used Dateslices (https://rubygems.org/gems/dateslices); without it group_by_month gives SQLLite error\n"},"comment":{"url":"https://api.github.com/repos/ankane/chartkick/issues/comments/264759342","html_url":"https://github.com/ankane/chartkick/issues/224#issuecomment-264759342","issue_url":"https://api.github.com/repos/ankane/chartkick/issues/224","id":264759342,"user":{"login":"ankane","id":220358,"avatar_url":"https://avatars.githubusercontent.com/u/220358?v=3","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T03:17:43Z","updated_at":"2016-12-05T03:17:43Z","body":"Cleaning up issues"}}
{"actor":{"display_login":"ankane"}}