c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.33k stars 1.39k forks source link

Uncaught TypeError: $$.d3.set is not a function #2821

Open TheWitness opened 3 years ago

TheWitness commented 3 years ago

C3 version: v0.7.20 D3 version: v6.2.0 Browser: FF Latest OS: Win10 Frontend/CentOS7 Backend

It looks like d3 deprecated/removed the d3.set function in v6.x. I reverted to 5.16.0 and everything is working again. Been doing this for a while. Not sure what fix you want to do. It's out there though. Thanks for making c3.js!

From the console

"Uncaught TypeError: $$.d3.set is not a function" on c3.js:6720:12
"Uncaught TypeError: this.d3.set is not a function" on c3.min.js:2:128160
GDFaber commented 3 years ago

Hi @TheWitness, thank you for your analysis, I'll look into it.

GDFaber commented 3 years ago

The D3.js migration guide states that d3.collection has been removed, it should be possible to apply the changes to C3. https://observablehq.com/@d3/d3v6-migration-guide