Chart.Funnel.js
Chart.Funnel.js copied to clipboard
TypeError: element.getCenterPoint is not a function
Hi, thank you for this great extension.
I can't run the demo example in my angular 4 application. Getting the following error on chart hover: "ERROR TypeError: element.getCenterPoint is not a function"
The issue arises when I'm NOT using bundled js. So I import the following files: "../node_modules/chart.js/dist/Chart.js", "../node_modules/chartjs-funnel/dist/chart.funnel.js"
What am I doing wrong?
Dirty hack: add the following code at the bottom of chart.funnel.js file before tooltipPosition function:
getCenterPoint: function () { var vm = this._view; return { x: vm.x, y: vm.y }; },