Skip to content

can't use d3-hexgrid with d3.select() #33

Description

@Yviflex

Hello i am having trouble using d3-hexgrid because i get a message "d3.select is not a function" when i try to use it. I am using this version of d3:

<script src="https://d3js.org/d3.v7.min.js"></script>

and when i put it like this:

<script src="https://d3js.org/d3.v7.min.js"></script> <script src="https://unpkg.com/d3-hexgrid"></script>

i get this error:

Uncaught TypeError: d3.select is not a function
at index_a.html:40:24

because of this line:
const svg = d3.select("#map");

Can you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions