All Questions
394
questions
1
vote
1
answer
51
views
Why doesn't d3 like this GeoJSON file?
Does anyone have any idea why D3 is failing to render the following GeoJSON?
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<svg width="960" height="720"></svg>
&...
0
votes
0
answers
68
views
GeoJSON MultiPolygon Inversion Works for All Federal Districts of Russia Except Siberia in D3.js Map
I'm working on a map visualization using D3.js and GeoJSON data for Russian federal districts. The goal is to display each district as a filled polygon fill to highlight certain areas.
I followed the ...
0
votes
0
answers
19
views
d3-geo: Is there a way to not show the division between territories spanning 180/-180 degrees of longitude?
The question from the title. I'm running a code with D3-geo, Miller projection with .rotate([-10, 0]);, so The US would be on the left side of the map, and Russia entirely on the right side. However, ...
0
votes
0
answers
15
views
d3 geojson only displaying first feature
I am trying to display the contents of a geojson file in an svg element.
For some reason, my code only renders the first feature.
When I inspect the svg element, I can see that it has created multiple ...
0
votes
2
answers
334
views
How to correct the winding order of shapes coming out of d3-contour?
I created contour lines from gridded data using d3-contour. Unfortunately I'm having trouble rendering shapes with holes properly on a mapbox map. Holes appear as an additional layer on top of the ...
0
votes
1
answer
144
views
Extracting to center a GEOJSON object with D3js
It is showing the whole world projection boundaries, but is not showing the map of vietnam at the center. I will be creating multiple maps from humdata.org that and need each specified country maps at ...
2
votes
0
answers
63
views
d3-geo coordinate in feature always returning true
I have a geojson file defined, and I am checking to see whether a coordinate is in the given feature inside that geojson file. No matter what coordinate I plug in to the d3.geocontains() function, ...
0
votes
0
answers
29
views
Problem with Virginia when generating geoJson
So i am trying to make a USA map and when you hover over the state that it changes colours
But for some reason when my program generates the map the path for Virginia is the whole svg element not just ...
0
votes
1
answer
196
views
d3: <div> tooltip is displaying the same data on mouseover for all elements
I'm doing the freecodecamp choropleth map project: https://www.freecodecamp.org/learn/data-visualization/data-visualization-projects/visualize-data-with-a-choropleth-map
It's a US county map with ...
0
votes
0
answers
45
views
D3 Map not rendering on DOM (topojson file)
I think I've hit a wall here. Not sure why my map isn't displaying at all.
I've converted the topojson file to geojson with the topojson client (https://github.com/topojson/topojson-client/blob/master/...
2
votes
1
answer
225
views
D3 Projection function returns NaN when given a latitude and longitude (Mapping csv data on a geoJSON map)
I am currently working on a project where I want to visualize airport locations in the USA on a geoJSON map and where the state is encoded by color.
So far I have managed to import my geoJSON file of ...
1
vote
1
answer
107
views
Splitting "latitude, longitude" string for circle geolocation
pretty new to d3 & js here. I'm trying to geolocate d3 circles from a csv file which has a combined lat/long string column (e.g. "44.999572, -93.351774". I'm able to do achieve this when ...
1
vote
1
answer
182
views
Load json map into aframe by aframe-geo-projection-component created by earthlinginteractive
I am trying to load a country map into A-Frame and have difficulty.
My code is below, it is based on "https://earthlinginteractive.github.io/aframe-geo-projection-component/examples/basic/...
1
vote
1
answer
1k
views
Create a choropleth map of all cities in world in react js
I am trying to make a choropleth map of the world but with city level detail where a region of world or country explored by a user gets a color.
So far I am able to find solutions to create a world ...
0
votes
0
answers
241
views
d3.js geo projection renders a black box
I am trying to make a US map using d3.js.
I use the following code to draw my map:
const EDUCATION =
'https://raw.githubusercontent.com/no-stack-dub-sack/testable-projects-fcc/master/src/data/...