aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Yan2017-03-30 16:09:56 +0000
committerLei Yan2017-03-30 16:09:56 +0000
commit16521bf0e09669149a71d34461b23aeacce6a34f (patch)
tree9595993ae395036dacf0405f7e753befc29415fe
parente7cef40848706716b5fdc2c3571f19e30c9071ec (diff)
downloadgenenetwork2-16521bf0e09669149a71d34461b23aeacce6a34f.tar.gz
Change "Correlation Scatterplot" size, font, color, etc.
-rw-r--r--wqflask/wqflask/static/new/javascript/draw_corr_scatterplot.js8
-rw-r--r--wqflask/wqflask/static/new/javascript/scatterplot.js6
2 files changed, 7 insertions, 7 deletions
diff --git a/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot.js b/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot.js
index a6675ccc..32e041ae 100644
--- a/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot.js
+++ b/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot.js
@@ -1,13 +1,13 @@
// Generated by CoffeeScript 1.8.0
var data, h, halfh, halfw, indID, intercept, margin, mychart, slope, totalh, totalw, w;
-h = 400;
+h = 600;
-w = 500;
+w = 800;
margin = {
- left: 60,
- top: 40,
+ left: 80,
+ top: 60,
right: 40,
bottom: 40,
inner: 5
diff --git a/wqflask/wqflask/static/new/javascript/scatterplot.js b/wqflask/wqflask/static/new/javascript/scatterplot.js
index 08594555..de7b7906 100644
--- a/wqflask/wqflask/static/new/javascript/scatterplot.js
+++ b/wqflask/wqflask/static/new/javascript/scatterplot.js
@@ -166,7 +166,7 @@ scatterplot = function() {
maxx = xlim[1];
yticks = yticks != null ? yticks : ys.ticks(nyticks);
xticks = xticks != null ? xticks : xs.ticks(nxticks);
- titlegrp = g.append("g").attr("class", "title").append("text").attr("x", margin.left + width / 2).attr("y", margin.top - titlepos).text(title);
+ titlegrp = g.append("g").attr("class", "title").append("text").attr("x", margin.left + width / 2).attr("y", margin.top - titlepos).style("fill", "black").style("font-size", "28px").text(title);
xaxis = g.append("g").attr("class", "x axis");
xaxis.selectAll("empty").data(xticks).enter().append("line").attr("x1", function(d) {
return xscale(d);
@@ -178,7 +178,7 @@ scatterplot = function() {
}).attr("y", margin.top + height + axispos.xlabel).text(function(d) {
return formatAxis(xticks)(d);
});
- xaxis.append("text").attr("class", "title").attr("x", margin.left + width / 2).attr("y", margin.top + height + axispos.xtitle).text(xlab);
+ xaxis.append("text").attr("class", "title").attr("x", margin.left + width / 2).attr("y", margin.top + height + axispos.xtitle).style("fill", "black").text(xlab);
if (xNA.handle) {
xaxis.append("text").attr("x", margin.left + xNA.width / 2).attr("y", margin.top + height + axispos.xlabel).text("N/A");
}
@@ -194,7 +194,7 @@ scatterplot = function() {
}).attr("x", margin.left - axispos.ylabel).text(function(d) {
return formatAxis(yticks)(d);
});
- yaxis.append("text").attr("class", "title").attr("y", margin.top + height / 2).attr("x", margin.left - axispos.ytitle).text(ylab).attr("transform", rotate_ylab ? "rotate(270," + (margin.left - axispos.ytitle) + "," + (margin.top + height / 2) + ")" : "");
+ yaxis.append("text").attr("class", "title").attr("y", margin.top + height / 2).attr("x", margin.left - axispos.ytitle).style("fill", "black").text(ylab).attr("transform", rotate_ylab ? "rotate(270," + (margin.left - axispos.ytitle) + "," + (margin.top + height / 2) + ")" : "");
if (yNA.handle) {
yaxis.append("text").attr("x", margin.left - axispos.ylabel).attr("y", margin.top + height - yNA.width / 2).text("N/A");
}