Skip to content

Instantly share code, notes, and snippets.

@blahah
Last active March 9, 2019 22:43
Show Gist options
  • Save blahah/1073511 to your computer and use it in GitHub Desktop.
Save blahah/1073511 to your computer and use it in GitHub Desktop.
LatticeXY chart
//Eragrostis ciliaris dry-after ripening germination data
var data = [{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":4,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":8,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":14,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":5,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":9,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":17,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":23,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1890∞/days","days":3,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1890∞/days","days":8,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1890∞/days","days":17,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":20,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"0630∞/days","days":4,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"0630∞/days","days":8,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"0630∞/days","days":14,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"1260∞/days","days":5,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1260∞/days","days":9,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1260∞/days","days":17,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1260∞/days","days":23,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1260∞/days","days":28,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"1890∞/days","days":3,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1890∞/days","days":8,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1890∞/days","days":17,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"1890∞/days","days":28,"germ":2},
{"temp":"30∞C","RH":35,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":35,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"0630∞/days","days":4,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"0630∞/days","days":8,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"0630∞/days","days":14,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"1260∞/days","days":5,"germ":14},
{"temp":"30∞C","RH":50,"ddays":"1260∞/days","days":9,"germ":14},
{"temp":"30∞C","RH":50,"ddays":"1260∞/days","days":17,"germ":14},
{"temp":"30∞C","RH":50,"ddays":"1260∞/days","days":23,"germ":14},
{"temp":"30∞C","RH":50,"ddays":"1260∞/days","days":28,"germ":14},
{"temp":"30∞C","RH":50,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"1890∞/days","days":3,"germ":12},
{"temp":"30∞C","RH":50,"ddays":"1890∞/days","days":8,"germ":12},
{"temp":"30∞C","RH":50,"ddays":"1890∞/days","days":17,"germ":12},
{"temp":"30∞C","RH":50,"ddays":"1890∞/days","days":28,"germ":12},
{"temp":"30∞C","RH":50,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":50,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"0630∞/days","days":4,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"0630∞/days","days":8,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"0630∞/days","days":14,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1260∞/days","days":5,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1260∞/days","days":9,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1260∞/days","days":17,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1260∞/days","days":23,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1890∞/days","days":3,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1890∞/days","days":8,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1890∞/days","days":17,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"30∞C","RH":65,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"0630∞/days","days":6,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"0630∞/days","days":14,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"0630∞/days","days":21,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1260∞/days","days":4,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1260∞/days","days":9,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1890∞/days","days":2,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1890∞/days","days":7,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1890∞/days","days":13,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1890∞/days","days":21,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"2520∞/days","days":3,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"2520∞/days","days":7,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"2520∞/days","days":14,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"2520∞/days","days":21,"germ":0},
{"temp":"40∞C","RH":20,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"0630∞/days","days":6,"germ":2},
{"temp":"40∞C","RH":35,"ddays":"0630∞/days","days":14,"germ":2},
{"temp":"40∞C","RH":35,"ddays":"0630∞/days","days":21,"germ":2},
{"temp":"40∞C","RH":35,"ddays":"0630∞/days","days":28,"germ":2},
{"temp":"40∞C","RH":35,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1260∞/days","days":4,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1260∞/days","days":9,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"1890∞/days","days":2,"germ":6},
{"temp":"40∞C","RH":35,"ddays":"1890∞/days","days":7,"germ":6},
{"temp":"40∞C","RH":35,"ddays":"1890∞/days","days":13,"germ":6},
{"temp":"40∞C","RH":35,"ddays":"1890∞/days","days":21,"germ":6},
{"temp":"40∞C","RH":35,"ddays":"1890∞/days","days":28,"germ":6},
{"temp":"40∞C","RH":35,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":35,"ddays":"2520∞/days","days":3,"germ":24},
{"temp":"40∞C","RH":35,"ddays":"2520∞/days","days":7,"germ":24},
{"temp":"40∞C","RH":35,"ddays":"2520∞/days","days":14,"germ":24},
{"temp":"40∞C","RH":35,"ddays":"2520∞/days","days":21,"germ":24},
{"temp":"40∞C","RH":35,"ddays":"2520∞/days","days":28,"germ":24},
{"temp":"40∞C","RH":50,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":50,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"40∞C","RH":50,"ddays":"0630∞/days","days":6,"germ":20},
{"temp":"40∞C","RH":50,"ddays":"0630∞/days","days":14,"germ":20},
{"temp":"40∞C","RH":50,"ddays":"0630∞/days","days":21,"germ":20},
{"temp":"40∞C","RH":50,"ddays":"0630∞/days","days":28,"germ":20},
{"temp":"40∞C","RH":50,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":50,"ddays":"1260∞/days","days":4,"germ":46},
{"temp":"40∞C","RH":50,"ddays":"1260∞/days","days":9,"germ":46},
{"temp":"40∞C","RH":50,"ddays":"1260∞/days","days":14,"germ":46},
{"temp":"40∞C","RH":50,"ddays":"1260∞/days","days":21,"germ":46},
{"temp":"40∞C","RH":50,"ddays":"1260∞/days","days":28,"germ":46},
{"temp":"40∞C","RH":50,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":50,"ddays":"1890∞/days","days":2,"germ":30},
{"temp":"40∞C","RH":50,"ddays":"1890∞/days","days":7,"germ":52},
{"temp":"40∞C","RH":50,"ddays":"1890∞/days","days":13,"germ":52},
{"temp":"40∞C","RH":50,"ddays":"1890∞/days","days":21,"germ":52},
{"temp":"40∞C","RH":50,"ddays":"1890∞/days","days":28,"germ":52},
{"temp":"40∞C","RH":50,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":50,"ddays":"2520∞/days","days":3,"germ":58},
{"temp":"40∞C","RH":50,"ddays":"2520∞/days","days":7,"germ":58},
{"temp":"40∞C","RH":50,"ddays":"2520∞/days","days":14,"germ":58},
{"temp":"40∞C","RH":50,"ddays":"2520∞/days","days":21,"germ":58},
{"temp":"40∞C","RH":50,"ddays":"2520∞/days","days":28,"germ":58},
{"temp":"40∞C","RH":65,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":65,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"40∞C","RH":65,"ddays":"0630∞/days","days":6,"germ":26},
{"temp":"40∞C","RH":65,"ddays":"0630∞/days","days":14,"germ":26},
{"temp":"40∞C","RH":65,"ddays":"0630∞/days","days":21,"germ":26},
{"temp":"40∞C","RH":65,"ddays":"0630∞/days","days":28,"germ":26},
{"temp":"40∞C","RH":65,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":65,"ddays":"1260∞/days","days":4,"germ":80},
{"temp":"40∞C","RH":65,"ddays":"1260∞/days","days":9,"germ":80},
{"temp":"40∞C","RH":65,"ddays":"1260∞/days","days":14,"germ":80},
{"temp":"40∞C","RH":65,"ddays":"1260∞/days","days":21,"germ":80},
{"temp":"40∞C","RH":65,"ddays":"1260∞/days","days":28,"germ":80},
{"temp":"40∞C","RH":65,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":65,"ddays":"1890∞/days","days":2,"germ":54},
{"temp":"40∞C","RH":65,"ddays":"1890∞/days","days":7,"germ":88},
{"temp":"40∞C","RH":65,"ddays":"1890∞/days","days":13,"germ":90},
{"temp":"40∞C","RH":65,"ddays":"1890∞/days","days":21,"germ":90},
{"temp":"40∞C","RH":65,"ddays":"1890∞/days","days":28,"germ":90},
{"temp":"40∞C","RH":65,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"40∞C","RH":65,"ddays":"2520∞/days","days":3,"germ":50},
{"temp":"40∞C","RH":65,"ddays":"2520∞/days","days":7,"germ":50},
{"temp":"40∞C","RH":65,"ddays":"2520∞/days","days":14,"germ":50},
{"temp":"40∞C","RH":65,"ddays":"2520∞/days","days":21,"germ":50},
{"temp":"40∞C","RH":65,"ddays":"2520∞/days","days":28,"germ":50},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":3,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":6,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":11,"germ":2},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":18,"germ":2},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":26,"germ":2},
{"temp":"60∞C","RH":20,"ddays":"0630∞/days","days":28,"germ":2},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":3,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":8,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"1890∞/days","days":4,"germ":100},
{"temp":"60∞C","RH":20,"ddays":"1890∞/days","days":10,"germ":100},
{"temp":"60∞C","RH":20,"ddays":"1890∞/days","days":16,"germ":100},
{"temp":"60∞C","RH":20,"ddays":"1890∞/days","days":21,"germ":100},
{"temp":"60∞C","RH":20,"ddays":"1890∞/days","days":28,"germ":100},
{"temp":"60∞C","RH":20,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":20,"ddays":"2520∞/days","days":5,"germ":4},
{"temp":"60∞C","RH":20,"ddays":"2520∞/days","days":10,"germ":4},
{"temp":"60∞C","RH":20,"ddays":"2520∞/days","days":16,"germ":4},
{"temp":"60∞C","RH":20,"ddays":"2520∞/days","days":21,"germ":4},
{"temp":"60∞C","RH":20,"ddays":"2520∞/days","days":28,"germ":4},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":3,"germ":66},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":6,"germ":66},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":11,"germ":66},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":18,"germ":66},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":26,"germ":66},
{"temp":"60∞C","RH":35,"ddays":"0630∞/days","days":28,"germ":66},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":3,"germ":64},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":8,"germ":72},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":14,"germ":72},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":21,"germ":72},
{"temp":"60∞C","RH":35,"ddays":"1260∞/days","days":28,"germ":72},
{"temp":"60∞C","RH":35,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":35,"ddays":"1890∞/days","days":4,"germ":38},
{"temp":"60∞C","RH":35,"ddays":"1890∞/days","days":10,"germ":42},
{"temp":"60∞C","RH":35,"ddays":"1890∞/days","days":16,"germ":42},
{"temp":"60∞C","RH":35,"ddays":"1890∞/days","days":21,"germ":42},
{"temp":"60∞C","RH":35,"ddays":"1890∞/days","days":28,"germ":42},
{"temp":"60∞C","RH":35,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":35,"ddays":"2520∞/days","days":5,"germ":40},
{"temp":"60∞C","RH":35,"ddays":"2520∞/days","days":10,"germ":40},
{"temp":"60∞C","RH":35,"ddays":"2520∞/days","days":16,"germ":40},
{"temp":"60∞C","RH":35,"ddays":"2520∞/days","days":21,"germ":40},
{"temp":"60∞C","RH":35,"ddays":"2520∞/days","days":28,"germ":40},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":3,"germ":2},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":6,"germ":66},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":11,"germ":80},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":18,"germ":80},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":26,"germ":86},
{"temp":"60∞C","RH":50,"ddays":"0630∞/days","days":28,"germ":86},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":3,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":8,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1890∞/days","days":4,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1890∞/days","days":10,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1890∞/days","days":16,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1890∞/days","days":21,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":50,"ddays":"2520∞/days","days":5,"germ":40},
{"temp":"60∞C","RH":50,"ddays":"2520∞/days","days":10,"germ":40},
{"temp":"60∞C","RH":50,"ddays":"2520∞/days","days":16,"germ":40},
{"temp":"60∞C","RH":50,"ddays":"2520∞/days","days":21,"germ":40},
{"temp":"60∞C","RH":50,"ddays":"2520∞/days","days":28,"germ":40},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":3,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":6,"germ":12},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":11,"germ":12},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":18,"germ":12},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":26,"germ":12},
{"temp":"60∞C","RH":65,"ddays":"0630∞/days","days":28,"germ":12},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":3,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":8,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1890∞/days","days":4,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1890∞/days","days":10,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1890∞/days","days":16,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1890∞/days","days":21,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"60∞C","RH":65,"ddays":"2520∞/days","days":5,"germ":40},
{"temp":"60∞C","RH":65,"ddays":"2520∞/days","days":10,"germ":40},
{"temp":"60∞C","RH":65,"ddays":"2520∞/days","days":16,"germ":40},
{"temp":"60∞C","RH":65,"ddays":"2520∞/days","days":21,"germ":40},
{"temp":"60∞C","RH":65,"ddays":"2520∞/days","days":28,"germ":40},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":2,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":6,"germ":6},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":11,"germ":56},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":18,"germ":62},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":26,"germ":62},
{"temp":"80∞C","RH":20,"ddays":"0630∞/days","days":28,"germ":62},
{"temp":"80∞C","RH":20,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1260∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1890∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1890∞/days","days":5,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1890∞/days","days":12,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"2520∞/days","days":4,"germ":0},
{"temp":"80∞C","RH":20,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":2,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":11,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":18,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":26,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1260∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1890∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1890∞/days","days":5,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1890∞/days","days":12,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"2520∞/days","days":4,"germ":0},
{"temp":"80∞C","RH":35,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":2,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":11,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":18,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":26,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1260∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1890∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1890∞/days","days":5,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1890∞/days","days":12,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"2520∞/days","days":4,"germ":0},
{"temp":"80∞C","RH":50,"ddays":"2520∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":2,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":11,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":18,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":26,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"0630∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1260∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1260∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1260∞/days","days":6,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1260∞/days","days":14,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1260∞/days","days":21,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1260∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1890∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1890∞/days","days":1,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1890∞/days","days":5,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1890∞/days","days":12,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"1890∞/days","days":28,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"2520∞/days","days":0,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"2520∞/days","days":4,"germ":0},
{"temp":"80∞C","RH":65,"ddays":"2520∞/days","days":28,"germ":0}]
<html>
<head>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/d3.min.js">
</script>
<script type="text/javascript" src="ciliarisDAR.js">
</script>
<style type="text/css">
body { font: 10px sans-serif; }
circle
{
stroke: steelblue;
stroke-width: 3;
fill: none;
}
line
{
stroke: black;
stroke-width: 1.5;
}
.xLabel, .yLabel { text-anchor: end; }
.xGrid, .yGrid { stroke-width: 0.5; }
text
{
font-family: Arial;
font-size: 9pt;
text-anchor: right;
}
</style>
</head>
<body>
<script type="text/javascript" src="latticexy.js">
</script>
</body>
// sizes
var w = 150,
h = 150,
p = 10,
xlim = 30,
ylim = 100,
y = d3.scale.linear().domain([0, ylim]).range([0 + p, h - p]),
x = d3.scale.linear().domain([0, xlim]).range([0 + p, w - p]),
c = d3.scale.ordinal().range([
"cornflowerblue",
"limegreen",
"orange",
"crimson"
]);;
// Nest data by temp and then degree days
var nest = d3.nest()
.key(function(d) { return d.temp; })
.key(function(d) { return d.ddays; })
.key(function(d) { return d.RH; })
.entries(data);
// Root panel
var svg = d3.select("body")
.append("svg:svg")
.attr("class", "chart")
.attr("width", w * nest.length + p * (nest.length - 1))
.attr("height", h * nest.length + p * (nest.length - 1));
// Make a row per temp
var row = svg.selectAll("g")
.data(nest)
.enter().append("svg:g")
.attr("transform", function(d, i) { return "translate(0," + (p + i * h) + ")"; });
// And a column per duration in degree days
var cell = row.selectAll("g")
.data( function(d) { return d.values; })
.enter().append("svg:g")
.attr("transform", function(d, i) { return "translate(" + (p + i * w) + "," + (h) + ")"; });
// Add a group per RH
var cond = cell.selectAll("g")
.data( function(d) { return d.values; })
.enter().append("svg:g");
// Add lines between data points
var line = cond.append("svg:path")
.data( function(d) { return d.values; })
.attr("class", "line")
.attr("d", d3.svg.line()
.x(function(d) { return x(d.days); })
.y(function(d) { return -1 * y(d.germ); }));
// Add dots - days on x-axis, germination % on y-axis
var dots = cond.selectAll("circle.line")
.data( function(d) { return d.values; })
.enter().append("svg:circle")
.attr("class", "line")
.attr("cx", function(d) { return x(d.days); })
.attr("cy", function(d) { return -1 * y(d.germ); })
.attr("r", 3)
.attr("fill-opacity", .5);
// colour dots & lines by RH
cell.selectAll(".line")
.data( function(d) { return d.values; })
.style("fill", function(d) { return c(d.RH); })
.style("stroke", function(d) { return c(d.RH); });
// Axes
cell.append("svg:line")
.attr("x1", x(0))
.attr("y1", -1 * y(0))
.attr("x2", x(xlim))
.attr("y2", -1 * y(0));
cell.append("svg:line")
.attr("x1", x(0))
.attr("y1", -1 * y(0))
.attr("x2", x(0))
.attr("y2", -1 * y(ylim));
// Gridlines
cell.selectAll(".xGrid")
.data(x.ticks(5))
.enter().append("svg:line")
.attr("class", "xGrid")
.attr("x1", function(d) { return x(d); })
.attr("y1", -1 * y(-0.2))
.attr("x2", function(d) { return x(d); })
.attr("y2", -1 * y(ylim));
cell.selectAll(".yGrid")
.data(y.ticks(4))
.enter().append("svg:line")
.attr("class", "yGrid")
.attr("y1", function(d) { return -1 * y(d); })
.attr("x1", x(xlim))
.attr("y2", function(d) { return -1 * y(d); })
.attr("x2", x(-2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment