{"action":"closed","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/1659","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1659/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1659/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1659/events","html_url":"https://github.com/nnnick/Chart.js/issues/1659","id":117243624,"number":1659,"title":"Original usage of pie failed","user":{"login":"FeiTeng-Alfred","id":7874885,"avatar_url":"https://avatars.githubusercontent.com/u/7874885?v=3","gravatar_id":"","url":"https://api.github.com/users/FeiTeng-Alfred","html_url":"https://github.com/FeiTeng-Alfred","followers_url":"https://api.github.com/users/FeiTeng-Alfred/followers","following_url":"https://api.github.com/users/FeiTeng-Alfred/following{/other_user}","gists_url":"https://api.github.com/users/FeiTeng-Alfred/gists{/gist_id}","starred_url":"https://api.github.com/users/FeiTeng-Alfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FeiTeng-Alfred/subscriptions","organizations_url":"https://api.github.com/users/FeiTeng-Alfred/orgs","repos_url":"https://api.github.com/users/FeiTeng-Alfred/repos","events_url":"https://api.github.com/users/FeiTeng-Alfred/events{/privacy}","received_events_url":"https://api.github.com/users/FeiTeng-Alfred/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T23:27:42Z","updated_at":"2015-11-17T18:16:41Z","closed_at":"2015-11-17T18:16:41Z","body":"I update my Chart.js script from 1.0.2 to 2.0 beta, the original usage failed. I got following error:\r\nUncaught TypeError: (intermediate value).Pie is not a function(…)\r\nHere is how I use:\r\npieChartHolder = $placeHolder.find('#pie-chart-area')[0].getContext('2d');\r\n myPie = new Chart(pieChartHolder).Pie(pieData, {\r\n            showTooltips: true,\r\n            responsive: true,\r\n            animationEasing: 'easeOutQuart',\r\n            segmentStrokeColor: '#f9f9f9',\r\n            customTooltips: function (tooltip) {\r\n                if (!tooltip) {\r\n                    return;\r\n                }\r\n                $tooltipEl = $placeHolder.find('.pie-tooltip');\r\n                $tooltipEl.removeClass('above below hide');\r\n                $tooltipEl.addClass(tooltip.yAlign);\r\n                // split out the label and value and make your own tooltip here\r\n                partsOfToolTipText = tooltip.text.split(':');\r\n                $tooltipEl.html('<span>%s</span><br><span class=\"label-value\">%s</span>'.format(partsOfToolTipText[0], partsOfToolTipText[1] + '%'));\r\n                $tooltipEl.css({\r\n                    opacity: 1,\r\n                    left: tooltip.chart.canvas.offsetLeft + tooltip.x + 'px',\r\n                    top: tooltip.chart.canvas.offsetTop + tooltip.y + 'px',\r\n                    fontFamily: tooltip.fontFamily,\r\n                    fontSize: tooltip.fontSize,\r\n                    fontStyle: tooltip.fontStyle\r\n                });\r\n            }\r\n        });\r\n\r\nAny ideas?"}}