Skip to content

Instantly share code, notes, and snippets.

@jbelmont
Last active September 17, 2017 21:43
Show Gist options
  • Save jbelmont/20804c53bec5b61d17c63d4c02c21c33 to your computer and use it in GitHub Desktop.
Save jbelmont/20804c53bec5b61d17c63d4c02c21c33 to your computer and use it in GitHub Desktop.
Shapes
license: mit
[{"date":20111001,"New York":63.4,"San Francisco":62.7,"Austin":72.2},{"date":20111002,"New York":58,"San Francisco":59.9,"Austin":67.7},{"date":20111003,"New York":53.3,"San Francisco":59.1,"Austin":69.4},{"date":20111004,"New York":55.7,"San Francisco":58.8,"Austin":68},{"date":20111005,"New York":64.2,"San Francisco":58.7,"Austin":72.4},{"date":20111006,"New York":58.8,"San Francisco":57,"Austin":77},{"date":20111007,"New York":57.9,"San Francisco":56.7,"Austin":82.3},{"date":20111008,"New York":61.8,"San Francisco":56.8,"Austin":78.9},{"date":20111009,"New York":69.3,"San Francisco":56.7,"Austin":68.8},{"date":20111010,"New York":71.2,"San Francisco":60.1,"Austin":68.7},{"date":20111011,"New York":68.7,"San Francisco":61.1,"Austin":70.3},{"date":20111012,"New York":61.8,"San Francisco":61.5,"Austin":75.3},{"date":20111013,"New York":63,"San Francisco":64.3,"Austin":76.6},{"date":20111014,"New York":66.9,"San Francisco":67.1,"Austin":66.6},{"date":20111015,"New York":61.7,"San Francisco":64.6,"Austin":68},{"date":20111016,"New York":61.8,"San Francisco":61.6,"Austin":70.6},{"date":20111017,"New York":62.8,"San Francisco":61.1,"Austin":71.1},{"date":20111018,"New York":60.8,"San Francisco":59.2,"Austin":70},{"date":20111019,"New York":62.1,"San Francisco":58.9,"Austin":61.6},{"date":20111020,"New York":65.1,"San Francisco":57.2,"Austin":57.4},{"date":20111021,"New York":55.6,"San Francisco":56.4,"Austin":64.3},{"date":20111022,"New York":54.4,"San Francisco":60.7,"Austin":72.4},{"date":20111023,"New York":54.4,"San Francisco":65.1,"Austin":72.4},{"date":20111024,"New York":54.8,"San Francisco":60.9,"Austin":72.5},{"date":20111025,"New York":57.9,"San Francisco":56.1,"Austin":72.7},{"date":20111026,"New York":54.6,"San Francisco":54.6,"Austin":73.4},{"date":20111027,"New York":54.4,"San Francisco":56.1,"Austin":70.7},{"date":20111028,"New York":42.5,"San Francisco":58.1,"Austin":56.8},{"date":20111029,"New York":40.9,"San Francisco":57.5,"Austin":51},{"date":20111030,"New York":38.6,"San Francisco":57.7,"Austin":54.9},{"date":20111031,"New York":44.2,"San Francisco":55.1,"Austin":58.8},{"date":20111101,"New York":49.6,"San Francisco":57.9,"Austin":62.6},{"date":20111102,"New York":47.2,"San Francisco":64.6,"Austin":71},{"date":20111103,"New York":50.1,"San Francisco":56.2,"Austin":58.4},{"date":20111104,"New York":50.1,"San Francisco":50.5,"Austin":45.1},{"date":20111105,"New York":43.5,"San Francisco":51.3,"Austin":52.2},{"date":20111106,"New York":43.8,"San Francisco":52.6,"Austin":73},{"date":20111107,"New York":48.9,"San Francisco":51.4,"Austin":75.4},{"date":20111108,"New York":55.5,"San Francisco":50.6,"Austin":72.1},{"date":20111109,"New York":53.7,"San Francisco":54.6,"Austin":56.6},{"date":20111110,"New York":57.7,"San Francisco":55.6,"Austin":55.4},{"date":20111111,"New York":48.5,"San Francisco":53.9,"Austin":46.7},{"date":20111112,"New York":46.8,"San Francisco":54,"Austin":62},{"date":20111113,"New York":51.1,"San Francisco":53.8,"Austin":71.6},{"date":20111114,"New York":56.8,"San Francisco":53.5,"Austin":75.5},{"date":20111115,"New York":59.7,"San Francisco":53.4,"Austin":72.1},{"date":20111116,"New York":56.5,"San Francisco":52.2,"Austin":65.7},{"date":20111117,"New York":49.6,"San Francisco":52.7,"Austin":56.8},{"date":20111118,"New York":41.5,"San Francisco":53.1,"Austin":49.9},{"date":20111119,"New York":44.3,"San Francisco":49,"Austin":71.7},{"date":20111120,"New York":54,"San Francisco":50.4,"Austin":77.7},{"date":20111121,"New York":54.1,"San Francisco":51.1,"Austin":76.4},{"date":20111122,"New York":49.4,"San Francisco":52.3,"Austin":68.8},{"date":20111123,"New York":50,"San Francisco":54.6,"Austin":57},{"date":20111124,"New York":44,"San Francisco":55.1,"Austin":55.5},{"date":20111125,"New York":50.3,"San Francisco":51.5,"Austin":61.6},{"date":20111126,"New York":52.1,"San Francisco":53.6,"Austin":64.1},{"date":20111127,"New York":49.6,"San Francisco":52.3,"Austin":51.1},{"date":20111128,"New York":57.2,"San Francisco":51,"Austin":43},{"date":20111129,"New York":59.1,"San Francisco":49.5,"Austin":46.4},{"date":20111130,"New York":50.6,"San Francisco":49.8,"Austin":48},{"date":20111201,"New York":44.3,"San Francisco":60.4,"Austin":48.1},{"date":20111202,"New York":43.9,"San Francisco":62.2,"Austin":60.6},{"date":20111203,"New York":42.1,"San Francisco":58.3,"Austin":62.6},{"date":20111204,"New York":43.9,"San Francisco":52.7,"Austin":57.1},{"date":20111205,"New York":50.2,"San Francisco":51.5,"Austin":44.2},{"date":20111206,"New York":54.2,"San Francisco":49.9,"Austin":37.4},{"date":20111207,"New York":54.6,"San Francisco":48.6,"Austin":35},{"date":20111208,"New York":43.4,"San Francisco":46.4,"Austin":37},{"date":20111209,"New York":42.2,"San Francisco":49.8,"Austin":45.4},{"date":20111210,"New York":45,"San Francisco":52.1,"Austin":50.7},{"date":20111211,"New York":33.8,"San Francisco":48.8,"Austin":48.6},{"date":20111212,"New York":36.8,"San Francisco":47.4,"Austin":52.2},{"date":20111213,"New York":38.6,"San Francisco":47.2,"Austin":60.8},{"date":20111214,"New York":41.9,"San Francisco":46.1,"Austin":70},{"date":20111215,"New York":49.6,"San Francisco":48.8,"Austin":64.2},{"date":20111216,"New York":50.2,"San Francisco":47.9,"Austin":50.9},{"date":20111217,"New York":40.6,"San Francisco":49.8,"Austin":51.6},{"date":20111218,"New York":29.1,"San Francisco":49.1,"Austin":55.2},{"date":20111219,"New York":33.7,"San Francisco":48.3,"Austin":62.1},{"date":20111220,"New York":45.8,"San Francisco":49.3,"Austin":56.3},{"date":20111221,"New York":47.4,"San Francisco":48.4,"Austin":47.2},{"date":20111222,"New York":54.4,"San Francisco":53.3,"Austin":52.3},{"date":20111223,"New York":47.8,"San Francisco":47.5,"Austin":45.2},{"date":20111224,"New York":34.9,"San Francisco":47.9,"Austin":43.6},{"date":20111225,"New York":35.9,"San Francisco":48.9,"Austin":42.9},{"date":20111226,"New York":43.6,"San Francisco":45.9,"Austin":48.2},{"date":20111227,"New York":42.9,"San Francisco":47.2,"Austin":45.4},{"date":20111228,"New York":46.2,"San Francisco":48.9,"Austin":44.2},{"date":20111229,"New York":30.8,"San Francisco":50.9,"Austin":50.4},{"date":20111230,"New York":40.8,"San Francisco":52.9,"Austin":52.4},{"date":20111231,"New York":49.8,"San Francisco":50.1,"Austin":53.5},{"date":20120101,"New York":46.3,"San Francisco":53.9,"Austin":55.9},{"date":20120102,"New York":43.2,"San Francisco":53.1,"Austin":48.2},{"date":20120103,"New York":30.3,"San Francisco":49.7,"Austin":41},{"date":20120104,"New York":19.2,"San Francisco":52.7,"Austin":48.9},{"date":20120105,"New York":32.1,"San Francisco":52.6,"Austin":54.8},{"date":20120106,"New York":41.2,"San Francisco":49,"Austin":61.2},{"date":20120107,"New York":47,"San Francisco":51,"Austin":59.7},{"date":20120108,"New York":46,"San Francisco":56.8,"Austin":52.5},{"date":20120109,"New York":34.7,"San Francisco":52.3,"Austin":54},{"date":20120110,"New York":39.4,"San Francisco":51.6,"Austin":47.7},{"date":20120111,"New York":40.4,"San Francisco":49.8,"Austin":49.2},{"date":20120112,"New York":45.4,"San Francisco":51.9,"Austin":48.4},{"date":20120113,"New York":40.7,"San Francisco":53.7,"Austin":40.2},{"date":20120114,"New York":30.4,"San Francisco":52.9,"Austin":43.9},{"date":20120115,"New York":23.9,"San Francisco":49.7,"Austin":45.2},{"date":20120116,"New York":22.6,"San Francisco":45.3,"Austin":65},{"date":20120117,"New York":39.8,"San Francisco":43.6,"Austin":68.2},{"date":20120118,"New York":43.2,"San Francisco":45,"Austin":47.5},{"date":20120119,"New York":26.3,"San Francisco":47.3,"Austin":57.1},{"date":20120120,"New York":32.8,"San Francisco":51.4,"Austin":61.9},{"date":20120121,"New York":27.4,"San Francisco":53.7,"Austin":54.6},{"date":20120122,"New York":25,"San Francisco":48.3,"Austin":56.7},{"date":20120123,"New York":39.4,"San Francisco":52.9,"Austin":54.4},{"date":20120124,"New York":48.7,"San Francisco":49.1,"Austin":52.7},{"date":20120125,"New York":43,"San Francisco":52.1,"Austin":61.8},{"date":20120126,"New York":37.1,"San Francisco":53.6,"Austin":55},{"date":20120127,"New York":48.2,"San Francisco":50.4,"Austin":50.7},{"date":20120128,"New York":43.7,"San Francisco":50.3,"Austin":52.9},{"date":20120129,"New York":40.1,"San Francisco":53.8,"Austin":44.4},{"date":20120130,"New York":38,"San Francisco":51.9,"Austin":49.1},{"date":20120131,"New York":43.5,"San Francisco":50,"Austin":62.8},{"date":20120201,"New York":50.4,"San Francisco":50,"Austin":64.6},{"date":20120202,"New York":45.8,"San Francisco":51.3,"Austin":61.1},{"date":20120203,"New York":37.5,"San Francisco":51.5,"Austin":70},{"date":20120204,"New York":40.8,"San Francisco":52,"Austin":61.3},{"date":20120205,"New York":36.5,"San Francisco":53.8,"Austin":48.2},{"date":20120206,"New York":39.1,"San Francisco":54.6,"Austin":44.2},{"date":20120207,"New York":43.2,"San Francisco":54.3,"Austin":51.3},{"date":20120208,"New York":36.5,"San Francisco":51.9,"Austin":49.2},{"date":20120209,"New York":36.5,"San Francisco":53.8,"Austin":45.7},{"date":20120210,"New York":38.3,"San Francisco":53.9,"Austin":54.1},{"date":20120211,"New York":36.9,"San Francisco":52.3,"Austin":44.9},{"date":20120212,"New York":29.7,"San Francisco":50.1,"Austin":36.5},{"date":20120213,"New York":33.1,"San Francisco":49.5,"Austin":44.8},{"date":20120214,"New York":39.6,"San Francisco":48.6,"Austin":52.3},{"date":20120215,"New York":42.3,"San Francisco":49.9,"Austin":68},{"date":20120216,"New York":39.7,"San Francisco":52.4,"Austin":54.6},{"date":20120217,"New York":46,"San Francisco":49.9,"Austin":53.8},{"date":20120218,"New York":41.2,"San Francisco":51.6,"Austin":56.2},{"date":20120219,"New York":39.8,"San Francisco":47.8,"Austin":50.8},{"date":20120220,"New York":38.1,"San Francisco":48.7,"Austin":53},{"date":20120221,"New York":37.1,"San Francisco":49.7,"Austin":61},{"date":20120222,"New York":45.5,"San Francisco":53.4,"Austin":68.8},{"date":20120223,"New York":50.6,"San Francisco":54.1,"Austin":69.4},{"date":20120224,"New York":42.7,"San Francisco":55.9,"Austin":59.3},{"date":20120225,"New York":42.6,"San Francisco":51.7,"Austin":47.2},{"date":20120226,"New York":36.9,"San Francisco":47.7,"Austin":47.7},{"date":20120227,"New York":40.9,"San Francisco":45.4,"Austin":61.9},{"date":20120228,"New York":45.9,"San Francisco":47,"Austin":67.2},{"date":20120229,"New York":40.7,"San Francisco":49.8,"Austin":70.1},{"date":20120301,"New York":41.3,"San Francisco":48.9,"Austin":62.1},{"date":20120302,"New York":36.8,"San Francisco":48.1,"Austin":72.7},{"date":20120303,"New York":47.6,"San Francisco":50.7,"Austin":59},{"date":20120304,"New York":44.2,"San Francisco":55,"Austin":51.8},{"date":20120305,"New York":38.5,"San Francisco":48.8,"Austin":55},{"date":20120306,"New York":32.9,"San Francisco":48.4,"Austin":61.8},{"date":20120307,"New York":43.3,"San Francisco":49.9,"Austin":67.1},{"date":20120308,"New York":51.2,"San Francisco":49.2,"Austin":72},{"date":20120309,"New York":47.8,"San Francisco":51.7,"Austin":46.4},{"date":20120310,"New York":37.2,"San Francisco":49.3,"Austin":46.7},{"date":20120311,"New York":42.9,"San Francisco":50,"Austin":56.9},{"date":20120312,"New York":48.8,"San Francisco":48.6,"Austin":61.9},{"date":20120313,"New York":52.6,"San Francisco":53.9,"Austin":68.8},{"date":20120314,"New York":60.5,"San Francisco":55.2,"Austin":71.9},{"date":20120315,"New York":47.2,"San Francisco":55.9,"Austin":72},{"date":20120316,"New York":44.7,"San Francisco":54.6,"Austin":72.5},{"date":20120317,"New York":48.2,"San Francisco":48.2,"Austin":71.7},{"date":20120318,"New York":48.2,"San Francisco":47.1,"Austin":71.1},{"date":20120319,"New York":53.1,"San Francisco":45.8,"Austin":73},{"date":20120320,"New York":57.8,"San Francisco":49.7,"Austin":63.8},{"date":20120321,"New York":57.5,"San Francisco":51.4,"Austin":60},{"date":20120322,"New York":57.3,"San Francisco":51.4,"Austin":62.3},{"date":20120323,"New York":61.7,"San Francisco":48.4,"Austin":61.1},{"date":20120324,"New York":55.8,"San Francisco":49,"Austin":62},{"date":20120325,"New York":48.4,"San Francisco":46.4,"Austin":64.6},{"date":20120326,"New York":49.8,"San Francisco":49.7,"Austin":66},{"date":20120327,"New York":39.6,"San Francisco":54.1,"Austin":65.8},{"date":20120328,"New York":49.7,"San Francisco":54.6,"Austin":69.2},{"date":20120329,"New York":56.8,"San Francisco":52.3,"Austin":69.5},{"date":20120330,"New York":46.5,"San Francisco":54.5,"Austin":73.5},{"date":20120331,"New York":42.2,"San Francisco":56.2,"Austin":73.9},{"date":20120401,"New York":45.3,"San Francisco":51.1,"Austin":75.3},{"date":20120402,"New York":48.1,"San Francisco":50.5,"Austin":75.4},{"date":20120403,"New York":51.2,"San Francisco":52.2,"Austin":77.3},{"date":20120404,"New York":61,"San Francisco":50.6,"Austin":67},{"date":20120405,"New York":50.7,"San Francisco":47.9,"Austin":71.1},{"date":20120406,"New York":48,"San Francisco":47.4,"Austin":70.4},{"date":20120407,"New York":51.1,"San Francisco":49.4,"Austin":73.6},{"date":20120408,"New York":55.7,"San Francisco":50,"Austin":71.1},{"date":20120409,"New York":58.3,"San Francisco":51.3,"Austin":70},{"date":20120410,"New York":55,"San Francisco":53.8,"Austin":69},{"date":20120411,"New York":49,"San Francisco":52.9,"Austin":69.2},{"date":20120412,"New York":51.7,"San Francisco":53.9,"Austin":74.5},{"date":20120413,"New York":53.1,"San Francisco":50.2,"Austin":73.4},{"date":20120414,"New York":55.2,"San Francisco":50.9,"Austin":76},{"date":20120415,"New York":62.3,"San Francisco":51.5,"Austin":74.5},{"date":20120416,"New York":62.9,"San Francisco":51.9,"Austin":63.6},{"date":20120417,"New York":69.3,"San Francisco":53.2,"Austin":67.3},{"date":20120418,"New York":59,"San Francisco":53,"Austin":65.1},{"date":20120419,"New York":54.1,"San Francisco":55.1,"Austin":67.9},{"date":20120420,"New York":56.5,"San Francisco":55.8,"Austin":68.9},{"date":20120421,"New York":58.2,"San Francisco":58,"Austin":65.1},{"date":20120422,"New York":52.4,"San Francisco":52.8,"Austin":65.4},{"date":20120423,"New York":51.6,"San Francisco":55.1,"Austin":70.1},{"date":20120424,"New York":49.3,"San Francisco":57.9,"Austin":67},{"date":20120425,"New York":52.5,"San Francisco":57.5,"Austin":75.4},{"date":20120426,"New York":50.5,"San Francisco":55.3,"Austin":77.5},{"date":20120427,"New York":51.9,"San Francisco":53.5,"Austin":77},{"date":20120428,"New York":47.4,"San Francisco":54.7,"Austin":77.7},{"date":20120429,"New York":54.1,"San Francisco":54,"Austin":77.7},{"date":20120430,"New York":51.9,"San Francisco":53.4,"Austin":77.7},{"date":20120501,"New York":57.4,"San Francisco":52.7,"Austin":77},{"date":20120502,"New York":53.7,"San Francisco":50.7,"Austin":77.9},{"date":20120503,"New York":53.1,"San Francisco":52.6,"Austin":79.1},{"date":20120504,"New York":57.2,"San Francisco":53.4,"Austin":80.1},{"date":20120505,"New York":57,"San Francisco":53.1,"Austin":82.1},{"date":20120506,"New York":56.6,"San Francisco":56.5,"Austin":79},{"date":20120507,"New York":54.6,"San Francisco":55.3,"Austin":79.8},{"date":20120508,"New York":57.9,"San Francisco":52,"Austin":70},{"date":20120509,"New York":59.2,"San Francisco":52.4,"Austin":69.8},{"date":20120510,"New York":61.1,"San Francisco":53.4,"Austin":71.3},{"date":20120511,"New York":59.7,"San Francisco":53.1,"Austin":69.4},{"date":20120512,"New York":64.1,"San Francisco":49.9,"Austin":72},{"date":20120513,"New York":65.3,"San Francisco":52,"Austin":72.4},{"date":20120514,"New York":64.2,"San Francisco":56,"Austin":72.5},{"date":20120515,"New York":62,"San Francisco":53,"Austin":67.6},{"date":20120516,"New York":63.8,"San Francisco":51,"Austin":69},{"date":20120517,"New York":64.5,"San Francisco":51.4,"Austin":72.7},{"date":20120518,"New York":61,"San Francisco":52.2,"Austin":73.7},{"date":20120519,"New York":62.6,"San Francisco":52.4,"Austin":77.5},{"date":20120520,"New York":66.2,"San Francisco":54.5,"Austin":75.8},{"date":20120521,"New York":62.7,"San Francisco":52.8,"Austin":76.9},{"date":20120522,"New York":63.7,"San Francisco":53.9,"Austin":78.8},{"date":20120523,"New York":66.4,"San Francisco":56.5,"Austin":77.7},{"date":20120524,"New York":64.5,"San Francisco":54.7,"Austin":80.6},{"date":20120525,"New York":65.4,"San Francisco":52.5,"Austin":81.4},{"date":20120526,"New York":69.4,"San Francisco":52.1,"Austin":82.3},{"date":20120527,"New York":71.9,"San Francisco":52.2,"Austin":80.3},{"date":20120528,"New York":74.4,"San Francisco":52.9,"Austin":80.3},{"date":20120529,"New York":75.9,"San Francisco":52.1,"Austin":82.2},{"date":20120530,"New York":72.9,"San Francisco":52.1,"Austin":81.9},{"date":20120531,"New York":72.5,"San Francisco":53.3,"Austin":82.4},{"date":20120601,"New York":67.2,"San Francisco":54.8,"Austin":77.9},{"date":20120602,"New York":68.3,"San Francisco":54,"Austin":81.1},{"date":20120603,"New York":67.7,"San Francisco":52.3,"Austin":82.2},{"date":20120604,"New York":61.9,"San Francisco":55.3,"Austin":81.2},{"date":20120605,"New York":58.3,"San Francisco":53.5,"Austin":83},{"date":20120606,"New York":61.7,"San Francisco":54.1,"Austin":83.2},{"date":20120607,"New York":66.7,"San Francisco":53.9,"Austin":82.1},{"date":20120608,"New York":68.7,"San Francisco":54.4,"Austin":77.5},{"date":20120609,"New York":72.2,"San Francisco":55,"Austin":77.9},{"date":20120610,"New York":72.6,"San Francisco":60,"Austin":82.9},{"date":20120611,"New York":69.2,"San Francisco":57.2,"Austin":86.8},{"date":20120612,"New York":66.9,"San Francisco":55.1,"Austin":85.3},{"date":20120613,"New York":66.7,"San Francisco":53.3,"Austin":76.9},{"date":20120614,"New York":67.7,"San Francisco":53.4,"Austin":84.5},{"date":20120615,"New York":68.5,"San Francisco":54.6,"Austin":84.4},{"date":20120616,"New York":67.5,"San Francisco":57,"Austin":83.8},{"date":20120617,"New York":64.2,"San Francisco":55.6,"Austin":82.5},{"date":20120618,"New York":61.7,"San Francisco":52.5,"Austin":82.9},{"date":20120619,"New York":66.4,"San Francisco":53.9,"Austin":82.5},{"date":20120620,"New York":77.9,"San Francisco":55.3,"Austin":81.3},{"date":20120621,"New York":88.3,"San Francisco":53.3,"Austin":80.8},{"date":20120622,"New York":82.2,"San Francisco":54.1,"Austin":81.7},{"date":20120623,"New York":77,"San Francisco":55.2,"Austin":83.9},{"date":20120624,"New York":75.4,"San Francisco":55.8,"Austin":85.5},{"date":20120625,"New York":70.9,"San Francisco":56.8,"Austin":87.2},{"date":20120626,"New York":65.9,"San Francisco":57.5,"Austin":88},{"date":20120627,"New York":73.5,"San Francisco":57.7,"Austin":89.6},{"date":20120628,"New York":77.4,"San Francisco":56.6,"Austin":86.7},{"date":20120629,"New York":79.6,"San Francisco":56.4,"Austin":85.3},{"date":20120630,"New York":84.2,"San Francisco":58.4,"Austin":81.7},{"date":20120701,"New York":81.8,"San Francisco":58.8,"Austin":78.5},{"date":20120702,"New York":82.5,"San Francisco":56.4,"Austin":83.1},{"date":20120703,"New York":80.2,"San Francisco":56.5,"Austin":83.1},{"date":20120704,"New York":77.8,"San Francisco":55.8,"Austin":84.5},{"date":20120705,"New York":86.1,"San Francisco":54.8,"Austin":84.6},{"date":20120706,"New York":79.9,"San Francisco":54.9,"Austin":84.2},{"date":20120707,"New York":83.5,"San Francisco":54.7,"Austin":86.7},{"date":20120708,"New York":81.5,"San Francisco":52.8,"Austin":84.3},{"date":20120709,"New York":77.8,"San Francisco":53.7,"Austin":83.7},{"date":20120710,"New York":76.1,"San Francisco":53.1,"Austin":77.1},{"date":20120711,"New York":76.3,"San Francisco":52.7,"Austin":77.4},{"date":20120712,"New York":75.8,"San Francisco":52,"Austin":80.6},{"date":20120713,"New York":77.2,"San Francisco":53.4,"Austin":81.4},{"date":20120714,"New York":79.3,"San Francisco":54,"Austin":80.2},{"date":20120715,"New York":78.9,"San Francisco":54,"Austin":81.8},{"date":20120716,"New York":79.6,"San Francisco":54.5,"Austin":77.3},{"date":20120717,"New York":83.3,"San Francisco":56.7,"Austin":80.8},{"date":20120718,"New York":84.3,"San Francisco":57.5,"Austin":81.6},{"date":20120719,"New York":75.1,"San Francisco":57.1,"Austin":80.9},{"date":20120720,"New York":68.4,"San Francisco":58.1,"Austin":83.9},{"date":20120721,"New York":68.4,"San Francisco":57.6,"Austin":85.6},{"date":20120722,"New York":72.2,"San Francisco":56,"Austin":83.6},{"date":20120723,"New York":75.6,"San Francisco":56.6,"Austin":84},{"date":20120724,"New York":82.6,"San Francisco":57.8,"Austin":83},{"date":20120725,"New York":78.4,"San Francisco":57.5,"Austin":84.8},{"date":20120726,"New York":77,"San Francisco":56.4,"Austin":84.4},{"date":20120727,"New York":79.4,"San Francisco":55.3,"Austin":84.3},{"date":20120728,"New York":77.4,"San Francisco":55,"Austin":83.9},{"date":20120729,"New York":72.5,"San Francisco":55.6,"Austin":85},{"date":20120730,"New York":72.9,"San Francisco":55.6,"Austin":84.9},{"date":20120731,"New York":73.6,"San Francisco":55.9,"Austin":86.3},{"date":20120801,"New York":75,"San Francisco":55.4,"Austin":86.5},{"date":20120802,"New York":77.7,"San Francisco":54.4,"Austin":85.8},{"date":20120803,"New York":79.7,"San Francisco":53.7,"Austin":85.3},{"date":20120804,"New York":79.6,"San Francisco":54.1,"Austin":86},{"date":20120805,"New York":81.5,"San Francisco":57.8,"Austin":84.2},{"date":20120806,"New York":80,"San Francisco":58.2,"Austin":81.9},{"date":20120807,"New York":75.7,"San Francisco":58,"Austin":86.5},{"date":20120808,"New York":77.8,"San Francisco":57,"Austin":86.1},{"date":20120809,"New York":78.6,"San Francisco":55,"Austin":86.8},{"date":20120810,"New York":77.8,"San Francisco":54.8,"Austin":88},{"date":20120811,"New York":78.5,"San Francisco":53,"Austin":85.1},{"date":20120812,"New York":78.8,"San Francisco":52.5,"Austin":87.4},{"date":20120813,"New York":78.6,"San Francisco":53.3,"Austin":88},{"date":20120814,"New York":76.8,"San Francisco":53.9,"Austin":88},{"date":20120815,"New York":76.7,"San Francisco":56.2,"Austin":87.2},{"date":20120816,"New York":75.9,"San Francisco":57.1,"Austin":86.1},{"date":20120817,"New York":77.6,"San Francisco":55.3,"Austin":86.8},{"date":20120818,"New York":72.6,"San Francisco":56.2,"Austin":84.9},{"date":20120819,"New York":70.4,"San Francisco":54.3,"Austin":76.8},{"date":20120820,"New York":71.8,"San Francisco":53.1,"Austin":80.6},{"date":20120821,"New York":73.6,"San Francisco":53.4,"Austin":80},{"date":20120822,"New York":74.7,"San Francisco":54.5,"Austin":78.2},{"date":20120823,"New York":74.6,"San Francisco":55.7,"Austin":79.1},{"date":20120824,"New York":76,"San Francisco":54.8,"Austin":81.9},{"date":20120825,"New York":76.2,"San Francisco":53.8,"Austin":84.7},{"date":20120826,"New York":73.4,"San Francisco":56.5,"Austin":83.5},{"date":20120827,"New York":74.6,"San Francisco":58.3,"Austin":82.1},{"date":20120828,"New York":79.4,"San Francisco":58.7,"Austin":84},{"date":20120829,"New York":74.7,"San Francisco":57.5,"Austin":85.7},{"date":20120830,"New York":73.5,"San Francisco":55.9,"Austin":87.2},{"date":20120831,"New York":77.9,"San Francisco":55.4,"Austin":82.9},{"date":20120901,"New York":80.7,"San Francisco":55.7,"Austin":84.8},{"date":20120902,"New York":75.1,"San Francisco":53.1,"Austin":83.9},{"date":20120903,"New York":73.5,"San Francisco":53.5,"Austin":85.5},{"date":20120904,"New York":73.5,"San Francisco":52.5,"Austin":86.4},{"date":20120905,"New York":77.7,"San Francisco":54.5,"Austin":85.8},{"date":20120906,"New York":74.2,"San Francisco":56.3,"Austin":85.4},{"date":20120907,"New York":76,"San Francisco":56.4,"Austin":85.3},{"date":20120908,"New York":77.1,"San Francisco":56.5,"Austin":81.9},{"date":20120909,"New York":69.7,"San Francisco":56.4,"Austin":74.8},{"date":20120910,"New York":67.8,"San Francisco":55.4,"Austin":71.6},{"date":20120911,"New York":64,"San Francisco":56.2,"Austin":75.9},{"date":20120912,"New York":68.1,"San Francisco":55.7,"Austin":82.1},{"date":20120913,"New York":69.3,"San Francisco":54.3,"Austin":80.5},{"date":20120914,"New York":70,"San Francisco":55.2,"Austin":70},{"date":20120915,"New York":69.3,"San Francisco":54.3,"Austin":71.2},{"date":20120916,"New York":66.3,"San Francisco":52.9,"Austin":70.3},{"date":20120917,"New York":67,"San Francisco":54.8,"Austin":72.1},{"date":20120918,"New York":72.8,"San Francisco":54.8,"Austin":73.7},{"date":20120919,"New York":67.2,"San Francisco":56.8,"Austin":72.7},{"date":20120920,"New York":62.1,"San Francisco":55.4,"Austin":71.7},{"date":20120921,"New York":64,"San Francisco":55.8,"Austin":72.9},{"date":20120922,"New York":65.5,"San Francisco":55.9,"Austin":73.1},{"date":20120923,"New York":65.7,"San Francisco":52.8,"Austin":75.6},{"date":20120924,"New York":60.4,"San Francisco":54.5,"Austin":78.3},{"date":20120925,"New York":63.2,"San Francisco":53.3,"Austin":78.3},{"date":20120926,"New York":68.5,"San Francisco":53.6,"Austin":79.6},{"date":20120927,"New York":69.2,"San Francisco":52.1,"Austin":76.4},{"date":20120928,"New York":68.7,"San Francisco":52.6,"Austin":77.2},{"date":20120929,"New York":62.5,"San Francisco":53.9,"Austin":75.2},{"date":20120930,"New York":62.3,"San Francisco":55.1,"Austin":71.9}]
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
svg {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<svg></svg>
<script>
const city = 'San Francisco';
const width = 800;
const height = 300;
// dataset of city temperatures across time
d3.json('data.json', (err, data) => {
// clean the data
data.forEach(d => {
d.date = d3.timeParse("%Y%m%d")(d.date);
d.date = new Date(d.date);
d[city] = d[city] + 1;
});
var xExtent = d3.extent(data, d => d.date);
var xScale = d3.scaleTime()
.domain(xExtent).range([0, width]);
var xAxis = d3.axisBottom().scale(xScale)
var yExtent = d3.extent(data, d => d[city]);
var yScale = d3.scaleLinear()
.domain(yExtent).range([height, 0]);
var yAxis = d3.axisLeft()
.scale(yScale);
var svg = d3.select('svg').append('g')
.attr('transform', 'translate(40, 20)');
var line = d3.line()
.x(d => xScale(d.date))
.y(d => yScale(d[city]));
svg.selectAll('path')
.data([data]).enter().append('path')
.attr('d', line)
.attr('fill', 'none')
.attr('stroke', 'blue');
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment