Chart.BarFunnel.js icon indicating copy to clipboard operation
Chart.BarFunnel.js copied to clipboard

Update to chart.js 2.6?

Open Yobmod opened this issue 8 years ago • 3 comments

I've just tried out the example graph, and it works with chart.js 2.5, but not with 2.6 (no other changes).

Initial console error:

Chart.BarFunnel.js:88 Uncaught TypeError: this.calculateBarX is not a function at n.updateElement (Chart.BarFunnel.js:88)

Yobmod avatar Aug 01 '17 18:08 Yobmod

I just experienced the same thing trying to get this project up & running for a PoC.

It seems to be related to https://github.com/chartjs/Chart.js/pull/4044. Will dig a bit.

Edit: I decided to go another path, but the PR above seems to be where it broke as the internals used by this plugin totally changed. That's the risk of using internal stuff for a plugin I guess.

jipiboily avatar Jan 21 '19 17:01 jipiboily

Does anyone know how to fix it? Are there any plans to update the plugin?

I'm trying to use this and another plugin, but the other one requires the latest version of Chart.js so I can't use both at the same time...

leonardoad avatar Aug 09 '19 00:08 leonardoad

As said in the commit, this was a huge change in the refactoring of version 2.6.0 of ChartJS. https://github.com/The-Actual-Damien/https-github.com-chartjs-Chart.js/commit/50a80da1e95ebbd684efa9d1daf43c5e96eebb5f I think this plugin will definitely never work anymore.

ElManouche avatar Sep 07 '21 14:09 ElManouche