c3js/c3

2023: Uncaught TypeError: d3.mouse is not a function

alundiak opened this issue · 0 comments

2023 and this is still not fixed?
I use D3 v7.8.3 and 0.7.20.


  <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.3/d3.js"
    integrity="sha512-3+z8kjFkfZsDUaZ/GM0hNFvH7UXYqAwCN+KHbpE3YUvOdQLKRELYb63J+o7Dg/cus1cy181mHr1Je+c8k/Xv8Q=="
    crossorigin="anonymous" referrerpolicy="no-referrer"></script>

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.20/c3.css"
    integrity="sha512-GQSxWe9Cj4o4EduO7zO9HjULmD4olIjiQqZ7VJuwBxZlkWaUFGCxRkn39jYnD2xZBtEilm0m4WBG7YEmQuMs5Q=="
    crossorigin="anonymous" referrerpolicy="no-referrer" />

  <script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.20/c3.js"
    integrity="sha512-11Z4MD9csmC3vH8Vd0eIPJBQu3uEHEqeznWEt3sLBCdQx3zm9mJbBcJH8WTcyGY9EXDE81BNpjE2vLosPK8cFQ=="
    crossorigin="anonymous" referrerpolicy="no-referrer"></script>

What is going on? :)

As soon as i move by mouse over the chatter chart it throws an error:

Screenshot 2023-03-25 at 18 50 11

PS. In this example https://c3js.org/samples/chart_scatter.html D3 is v5.8.2 and C3 is v0.7.20. And it WORKS OK (no d3.mouse() error).

And I test it via basic HTML code (based on example BUT replacing LATEST versions of D3 and C3 from CDN) on Chrome v111.0.5563.110 (Official Build) (arm64) on Mac OS Ventura v13.2.1 on iMac w M1 CPU.

So why latest C3 is not synchronised with latest D3 v7.x?