Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

302
Views
Uncaught (in promise) ReferenceError: topojson is not defined

I'm new at d3. I can't render a US map, could you have a look?

https://codepen.io/DeanWinchester88/pen/BaZYewv

d3.json(COUNTIES)
  .then( data =>  {
   let  states = topojson.feature(data, data.objects.states);
 
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

TopoJSON was never part of any D3 bundle. Therefore, you have to reference it, like:

<script src="https://unpkg.com/topojson@3"></script>

In the CodePen, "Add Package" will create:

import * as topojson from "https://cdn.skypack.dev/topojson@3.0.2"; 

(and now you'll have brand new errors...)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!