Skip to content

Instantly share code, notes, and snippets.

@jasondavies
Forked from blahah/ciliarisDAR.js
Created July 9, 2011 12:35
Show Gist options
  • Save jasondavies/1073561 to your computer and use it in GitHub Desktop.
Save jasondavies/1073561 to your computer and use it in GitHub Desktop.
LatticeXY chart
//Eragrostis ciliaris dry-after ripening germination data
var ddays = ["0630°/days","1260°/days","1890°/days","2520°/days"];
var RH = [20, 35, 50, 65];
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>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script type="text/javascript" src="https://raw.github.com/mbostock/d3/master/d3.js">
</script>
<script type="text/javascript" src="ciliarisDAR.js">
</script>
<style type="text/css">
body { font: 10px sans-serif;
background: white;
}
circle
{
stroke-width: 0;
}
line
{
stroke-width: 1.5;
}
.xLabel, .yLabel { text-anchor: end; }
.xGrid, .yGrid
{
stroke-width: 0.2;
stroke: black;
}
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 = 100,
h = 100,
p = 5, //padding between cells
s = 20, //spacer for macro-axis labels
k = 100, //spacer for legend key
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().domain(RH).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) + s + k)
.attr("height", h * nest.length + p * (nest.length - 1) + s);
// 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 + s + i * h) + ")"; });
// label the rows
row.append("svg:rect")
.attr("x", 0)
.attr("y", p-1)
.attr("class", "rowLab")
.attr("width", 20)
.attr("height", h-p)
.style("fill", "cornflowerblue");
row.append("svg:text")
.attr("x", 0)
.attr("y", p-1)
.attr("transform", "translate(10," + h / 2 + ")rotate(-90)")
.attr("text-anchor", "middle")
.style("fill", "white")
.text(function(d) { return d.key; });
// 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 + s + i * w) + "," + (h) + ")"; });
// label the columns
var collabel = svg.selectAll("colLab")
.data(ddays)
.enter().append("svg:rect")
.attr("x", function(d,i) { return p*2+s+w*i; })
.attr("y", 0)
.attr("width", w-p*2)
.attr("height", 20)
.style("fill", "orange");
var coltxt = svg.selectAll("coltxt")
.data(ddays)
.enter().append("svg:text")
.attr("x", function(d,i) { return p*2+s+w/2+w*i; })
.attr("y", s/2+p)
.attr("text-anchor", "middle")
.style("fill", "white")
.text(function(d) { return d; });
// Add a group per RH
var cond = cell.selectAll("g")
.data( function(d) { return d.values; })
.enter().append("svg:g");
// 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))
.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(0));
var path = d3.svg.line()
.x(function(d) { return x(d.days); })
.y(function(d) { return -1 * y(d.germ); })
.interpolate("basis")
.tension(1);
// Add lines between data points
var line = cond.selectAll("path.line")
.data(function(d) { return [d]; })
.enter().append("svg:path")
.attr("class", "line")
.attr("d", function(d) { return path(d.values); });
// 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", 4);
// colour lines by RH
cell.selectAll("path.line")
.style("stroke", function(d) { return c(d.key); })
.style("stroke-width", "2px")
.style("fill", "none");
// colour dots by RH
cell.selectAll("circle.line")
.style("fill", function(d) { return c(d.RH); })
.style("fill-opacity", .8);
// add legend
var legend = svg.append("svg:text")
.attr("x", (w+p)*4+s*2+10)
.attr("y", h)
.attr("text-anchor", "middle")
.style("fill", "black")
.style("font-size", "2em")
.text("RH (%)");
var key = svg.selectAll("key.circle")
.data(RH)
.enter().append("svg:circle")
.attr("cx", (w+p)*4+s*2)
.attr("cy", function(d) { return h + d; })
.attr("r", 4)
.style("fill", function(d) { return c(d); })
.style("fill-opacity", .8);
var keyText = svg.selectAll("key.text")
.data(RH)
.enter().append("svg:text")
.attr("x", (w+p)*4+s*2+10)
.attr("y", function(d) { return h + d+4; })
.text(function(d) { return d; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment