{"action":"created","issue":{"url":"https://api.github.com/repos/TechToThePeople/civisualize/issues/63","labels_url":"https://api.github.com/repos/TechToThePeople/civisualize/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/TechToThePeople/civisualize/issues/63/comments","events_url":"https://api.github.com/repos/TechToThePeople/civisualize/issues/63/events","html_url":"https://github.com/TechToThePeople/civisualize/issues/63","id":56388117,"number":63,"title":"Dynamically get labels from option groups","user":{"login":"RandyTobias","id":451397,"avatar_url":"https://avatars.githubusercontent.com/u/451397?v=3","gravatar_id":"","url":"https://api.github.com/users/RandyTobias","html_url":"https://github.com/RandyTobias","followers_url":"https://api.github.com/users/RandyTobias/followers","following_url":"https://api.github.com/users/RandyTobias/following{/other_user}","gists_url":"https://api.github.com/users/RandyTobias/gists{/gist_id}","starred_url":"https://api.github.com/users/RandyTobias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandyTobias/subscriptions","organizations_url":"https://api.github.com/users/RandyTobias/orgs","repos_url":"https://api.github.com/users/RandyTobias/repos","events_url":"https://api.github.com/users/RandyTobias/events{/privacy}","received_events_url":"https://api.github.com/users/RandyTobias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T14:58:23Z","updated_at":"2015-02-03T15:00:35Z","closed_at":null,"body":"I think it would make sense to dynamically get labels from option groups. For example, I was trying out the contribution trends sample and found that genderLabel was set to {1:\"Male\", 2:\"Female\"}. I ended up changing it to {1:\"Female\",2:\"Male\",3:\"Transgender\"} to match my civicrm option group. \r\n\r\nI'm aware that this was just a sample. That said, it would be nice if there was built in functionality for this kind of thing. Another example would be to make date formats match the setting specified in Civicrm. I feel that changes like these would really help to integrate the data visualizations with Civicrm and make the extension much more robust.\r\n\r\nIt is an excellent extension as it is. "},"comment":{"url":"https://api.github.com/repos/TechToThePeople/civisualize/issues/comments/72664803","html_url":"https://github.com/TechToThePeople/civisualize/issues/63#issuecomment-72664803","issue_url":"https://api.github.com/repos/TechToThePeople/civisualize/issues/63","id":72664803,"user":{"login":"tttp","id":128426,"avatar_url":"https://avatars.githubusercontent.com/u/128426?v=3","gravatar_id":"","url":"https://api.github.com/users/tttp","html_url":"https://github.com/tttp","followers_url":"https://api.github.com/users/tttp/followers","following_url":"https://api.github.com/users/tttp/following{/other_user}","gists_url":"https://api.github.com/users/tttp/gists{/gist_id}","starred_url":"https://api.github.com/users/tttp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tttp/subscriptions","organizations_url":"https://api.github.com/users/tttp/orgs","repos_url":"https://api.github.com/users/tttp/repos","events_url":"https://api.github.com/users/tttp/events{/privacy}","received_events_url":"https://api.github.com/users/tttp/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T15:00:35Z","updated_at":"2015-02-03T15:00:35Z","body":"Hi, @siddharthg has worked to get the options from the db already (for the next version, coming soon)"}}