{"action":"created","issue":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/241","labels_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/241/comments","events_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/241/events","html_url":"https://github.com/gionkunz/chartist-js/issues/241","id":63169514,"number":241,"title":"Pie Chart loading issue","user":{"login":"joshiashish23","id":11557468,"avatar_url":"https://avatars.githubusercontent.com/u/11557468?v=3","gravatar_id":"","url":"https://api.github.com/users/joshiashish23","html_url":"https://github.com/joshiashish23","followers_url":"https://api.github.com/users/joshiashish23/followers","following_url":"https://api.github.com/users/joshiashish23/following{/other_user}","gists_url":"https://api.github.com/users/joshiashish23/gists{/gist_id}","starred_url":"https://api.github.com/users/joshiashish23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshiashish23/subscriptions","organizations_url":"https://api.github.com/users/joshiashish23/orgs","repos_url":"https://api.github.com/users/joshiashish23/repos","events_url":"https://api.github.com/users/joshiashish23/events{/privacy}","received_events_url":"https://api.github.com/users/joshiashish23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-20T05:46:58Z","updated_at":"2015-03-20T07:40:17Z","closed_at":null,"body":"I can not generate pie chart in Chartist.js 0.7.3 version but it works in Chartist.js 0.5.0. I want to generate horizontal bar chart and pie chart which is support in newer version not in older version. Can any one help me out in this? Bar chart is working fine with following data but pie chart is not working.\r\n\r\nvar CategoryValueTitleArray = [];\r\nvar CategoryValuePointsArray = [];\r\n@foreach (var item in Model.LeadScoringExplicitValues)\r\n{\r\n\r\n    <text>\r\n    CategoryValueTitleArray.push('@item.Value');\r\n    CategoryValuePointsArray.push('@item.Point');\r\n    </text>        \r\n    }\r\nvar data = {\r\nlabels: CategoryValueTitleArray,\r\nseries: CategoryValuePointsArray\r\n};\r\n\r\n    var options = {\r\n        labelInterpolationFnc: function (value) {\r\n            return value[0]\r\n        }\r\n    };\r\n\r\n    var responsiveOptions = [\r\n      ['screen and (min-width: 640px)', {\r\n          chartPadding: 30,\r\n          labelOffset: 50,\r\n          labelDirection: 'explode',\r\n          labelInterpolationFnc: function (value) {\r\n              return value;\r\n          }\r\n      }],\r\n      ['screen and (min-width: 1024px)', {\r\n          labelOffset: 40,\r\n          chartPadding: 20\r\n      }]\r\n    ];\r\n\r\n    new Chartist.Pie('#explicit-value-piecanvas', data, options, responsiveOptions);\r\n\r\nPassing static data like below it's working but with above code(dynamic data) it's not working\r\n\r\n labels: ['Bananas', 'Apples', 'Grapes'],\r\n  series: [20, 15, 40]"},"comment":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/comments/83943827","html_url":"https://github.com/gionkunz/chartist-js/issues/241#issuecomment-83943827","issue_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/241","id":83943827,"user":{"login":"gionkunz","id":2203704,"avatar_url":"https://avatars.githubusercontent.com/u/2203704?v=3","gravatar_id":"","url":"https://api.github.com/users/gionkunz","html_url":"https://github.com/gionkunz","followers_url":"https://api.github.com/users/gionkunz/followers","following_url":"https://api.github.com/users/gionkunz/following{/other_user}","gists_url":"https://api.github.com/users/gionkunz/gists{/gist_id}","starred_url":"https://api.github.com/users/gionkunz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gionkunz/subscriptions","organizations_url":"https://api.github.com/users/gionkunz/orgs","repos_url":"https://api.github.com/users/gionkunz/repos","events_url":"https://api.github.com/users/gionkunz/events{/privacy}","received_events_url":"https://api.github.com/users/gionkunz/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T07:40:17Z","updated_at":"2015-03-20T07:40:17Z","body":"Can you show the output when you do:\r\n```javascript\r\nchart.on('data', function(data) {\r\n  console.log(data);\r\n});\r\n```"}}