Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alundiak opened this issue Mar 25, 2023 · 0 comments
Open

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

alundiak opened this issue Mar 25, 2023 · 0 comments

Comments

@alundiak
Copy link
Contributor

alundiak commented Mar 25, 2023

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?

@alundiak alundiak changed the title 2023: Uncaught TypeError: c.mouse is not a function 2023: Uncaught TypeError: d3.mouse is not a function Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant