score:0
tl;dr : d3 in meteor on windows doesn't work for now, so run in ubuntu or mac
the d3 package is bad, do 'meteor add d3js:d3' instead
the meteor d3 is older, so use 'topojson.features', not 'topojson.objects'
Let me share with you how I solved this. I was running meteor on windows, which is a problem because it doesn't seem like there is a d3 (or maybe topojson) package that works on windows (d3.json doesn't seem to be able to parse the json file, gives error of 'unexpected symbol at line 1 row 1 of json file').
It also seems like the d3 package isn't great, but the d3js:d3 package works. Finally, it seems like the meteor d3js:d3 package is an older version of d3, for which you have to use 'topojson.features' instead of 'topojson.objects'.
So, after deploying in in ubuntu with those fixes, it worked.
score:0
The json files are fetched by url to /data/geo/countries.topo.json
. Meteor matches the /
path to the /public
directory.
This means the json files are available in the /public/data/geo
directory, or more specifically here: https://github.com/ArroyoLabs/meetups/tree/master/d3demo/public/data/geo
Source: stackoverflow.com
Related Query
- Using d3 in meteor on windows 8.1, how can I display a world map, zoomed in on the US, with country borders and US state borders?
- Using d3.js, how can I display data faster on my chart?
- How can I connect coordinate points on a map using d3js?
- Using D3, how can I update circles on a map after panning?
- How to display each state name in d3 india map using GeoJSON
- How Can I display dates on the x-axis using nvd3 line charts
- How can I move a d3 map using zoom behavior and transforms?
- How can I position rotated x-axis labels on column chart using nvd3?
- How can I generate as many colors as I want using d3?
- How to create a choropleth of the world using d3?
- How can I show a graph using d3 force layout with initial positions set and no movement at all?
- How can I construct a tree using d3 and its force layout?
- How can I display a placeholder image in my SVG until the real image is loaded?
- How to divide a map into zipcodes using d3, javascript, and a json file?
- Using Javascript D3 library, how can I determine mouse position in data set of an area element on mousemove event?
- How can I achieve the R kernel density estimate plot using D3.js?
- How to create a responsive map using d3
- How can I remove a line from the 110m TopoJson world map?
- How to draw circles with radii given in kilometers accurately on world map
- How can I sum binned time series using d3.js?
- How can i get the startAngle and endAngle of each arc in the sunburst example using d3.js?
- For some reason, my D3 Map is displaying upside down - how can I flip it?
- How to label cities in a Geographical Map using D3.js?
- How to map data such that I can use it to generate pie chart?
- Can I display a dot or xdot layout file generated by GraphViz using d3.js?
- How can I make static Wordcloud using d3.js?
- How to display property text on mouseover in d3 map
- how to display bottom data for row chart using dc.js
- d3js - how to rotate a map using d3js
- How can I display two trees with a central root?
More Query from same tag
- D3 append data to div when region on map is clicked
- Bold the text partially in a text box which popos up on mouseover-D3
- D3 Map - Marks Zooming
- Selecting all elements in one group of a categorical variable
- Using D3 with websharper
- "Live" graph d3.js with simulated data
- D3js Tooltip not generating correctly
- Adding class to root node in d3js tree layout
- d3.js create objects on top of each other
- d3js: Concatenating "d.y" + year
- D3, Multidimensional data and enter()
- Json file for Canada's province
- bootstrap dropdown in svg with d3
- How to get the index of the data element in a histogram on mouseover?
- Change json into tree data by javascript
- What does the syntax d._children = d.children; stand for in d3.js?
- d3: Brush with an input field
- How to structure nested nodes that need updating in d3 v4 force layout?
- mpld3 plugin to set xtics
- D3.. trying to add labels to a bar chart, adds all values to each label
- d3 chart: how to set multiple css properties for d3 chart
- d3.js v5 stratify returning missing: 0
- add a drag behaviour on a cubism graph
- How to use D3 hierarchical edge bundling graph with Plotly
- d3.js right align nested bar chart
- D3.js v6.2 - get data index in listener function - selection.on('click', listener)
- Appending an element to an existing element in d3.js
- How to draw a line in dc.js using the coordinate system?
- Why the attrTween doesn't work
- Advanced D3 transition sequencing; inheriting delay/duration from transitions over different selections