Closed jayunit100 closed 10 years ago
Here are some options (just off the top of my head):
thanks matt but we need a input format (not a use case). i.e.
f1,1002.10, 10.33 f2,1.9, 4.18 f3,9.502.10, 13.33
Just paste a snippet of the input format in the next comment
On Mon, Nov 25, 2013 at 1:12 PM, Matt Fenwick notifications@github.comwrote:
Here are some options (just off the top of my head):
- user copy/pastes data into text field
- generate static json files off-line
- dynamic json files -- meaning that we need a server. then we can ajax in the data (this is high-work/low-reward so it's my least-preferred option)
— Reply to this email directly or view it on GitHubhttps://github.com/jayunit100/bigpetstore/issues/5#issuecomment-29226381 .
Jay Vyas http://jayunit100.blogspot.com
btw I'm an idiot: I don't think it runs on chrome out-of-the-box b/c it doesn't let you load local files through a certain JSONP standard or something ... but firefox does, so can you give that a try and let me know if it works?
something like:
{
"objects": {
"states": {
"type": "GeometryCollection",
"geometries": [
{
"type": "MultiPolygon",
"id": 2,
"arcs": [
[
[
9426
]
],
It seems there are two standards that d3 uses: TopoJSON and GeoJSON. I will look into those formats and add more details.
More examples here.
We need a sample D3 input spec. Please add as comment to this issue.