11c0c24c7441325f1823730a87ed3266e67215b3 kate Wed Oct 21 11:37:11 2015 -0700 Checking in graph exploratory work (JS D3) to save it (in a branch) before whacking. refs #15645 diff --git src/hg/js/gtex.js src/hg/js/gtex.js new file mode 100644 index 0000000..5a9fb6f --- /dev/null +++ src/hg/js/gtex.js @@ -0,0 +1,18 @@ +var visualization = d3plus.viz() + .container("#expGraph") + /* BRCA1 */ + //.data('http://hgwdev-kate.cse.ucsc.edu/cgi-bin/hgGtexApi?gene=ENSG00000012048.15') + .data('http://hgwdev-kate.cse.ucsc.edu/cgi-bin/hgGtexApi?gene=' + geneId) + .type("box") + .height(500) + .width(1000) + .id("sample") + .color("#FFFFFF") + .x({"value": "tissue", "grid": false, + "label": false, "padding": 1}) + .y({"value": "rpkm", "grid": false}) + .axes({"background": + {"color": "#FFFFFF"} + }) + .title(geneName + ' Gene Expression from GTEx') + .draw();