jayunit100 / bigpetstore

[OBSOLETE] Moved to Apache BigTop !!! See you there.
http://jayunit100.github.io/bigpetstore/slides
9 stars 3 forks source link

D3 input spec #5

Closed jayunit100 closed 10 years ago

jayunit100 commented 10 years ago

We need a sample D3 input spec. Please add as comment to this issue.

mattfenwick commented 10 years ago

Here are some options (just off the top of my head):

jayunit100 commented 10 years ago

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

mattfenwick commented 10 years ago

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?

mattfenwick commented 10 years ago

something like:

{
  "objects": {
    "states": {
      "type": "GeometryCollection", 
      "geometries": [
        {
          "type": "MultiPolygon", 
          "id": 2, 
          "arcs": [
            [
              [
                9426
              ]
            ], 
mattfenwick commented 10 years ago

It seems there are two standards that d3 uses: TopoJSON and GeoJSON. I will look into those formats and add more details.

mattfenwick commented 10 years ago

More examples here.