aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Yan2017-06-28 17:02:38 +0000
committerLei Yan2017-06-28 17:02:38 +0000
commit3a7caecf4c7d30f693ba838e1983d03a742fe5ba (patch)
treeb0c5f377dac80858c335cfae4d5e6ae964267d16
parent255b16ba17872ddb6a344a66db60741df20aa55f (diff)
downloadgenenetwork2-3a7caecf4c7d30f693ba838e1983d03a742fe5ba.tar.gz
Update Correlation Scatterplot
-rw-r--r--wqflask/wqflask/static/new/css/corr_scatter_plot2.css27
-rw-r--r--wqflask/wqflask/static/new/javascript/draw_corr_scatterplot-2.js4
2 files changed, 23 insertions, 8 deletions
diff --git a/wqflask/wqflask/static/new/css/corr_scatter_plot2.css b/wqflask/wqflask/static/new/css/corr_scatter_plot2.css
index e21d828f..5aa9b9bf 100644
--- a/wqflask/wqflask/static/new/css/corr_scatter_plot2.css
+++ b/wqflask/wqflask/static/new/css/corr_scatter_plot2.css
@@ -1,25 +1,40 @@
.nvd3 .nv-axis.nv-x text {
- font-size: 17px;
+ font-size: 16px;
font-weight: normal;
fill: black;
}
.nvd3 .nv-axis.nv-y text {
- font-size: 17px;
+ font-size: 16px;
font-weight: normal;
fill:black;
}
.nv-x .nv-axis g path.domain {
- stroke: black;
- stroke-width: 2;
+ stroke: black;
+ stroke-width: 2;
}
.nv-y .nv-axis g path.domain {
- stroke: black;
- stroke-width: 2;
+ stroke: black;
+ stroke-width: 2;
}
.nvd3 .nv-axis.nv-x path.domain {
stroke-opacity: 1;
}
+
+.nvd3 .nv-axis.nv-y path.domain {
+ stroke-opacity: 1;
+}
+
+line.nv-regLine {
+ stroke: red !important;
+}
+
+.nv-axisMin-x,
+.nv-axisMax-x,
+.nv-axisMin-y,
+.nv-axisMax-y {
+ display: none;
+}
diff --git a/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot-2.js b/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot-2.js
index f88e7d5d..ad6c7d6b 100644
--- a/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot-2.js
+++ b/wqflask/wqflask/static/new/javascript/draw_corr_scatterplot-2.js
@@ -9,8 +9,8 @@ nv.addGraph(function() {
chart.color(d3.scale.category10().range());
chart.pointRange([200,0]);
//
- chart.xAxis.tickFormat(d3.format('.02f'));
- chart.yAxis.tickFormat(d3.format('.02f'));
+ chart.xAxis.tickFormat(d3.format('r'));
+ chart.yAxis.tickFormat(d3.format('r'));
chart.xAxis.axisLabel(js_data.trait_1);
chart.xAxis.axisLabelDistance(11);
chart.yAxis.axisLabel(js_data.trait_2);