diff --git a/VQI_GenomeBrowser.js b/VQI_GenomeBrowser.js index b0d01ff..8377afc 100755 --- a/VQI_GenomeBrowser.js +++ b/VQI_GenomeBrowser.js @@ -845,18 +845,18 @@ function VQI_GenomeBrowser(id) { return fullXScale(d[indexArray.start]); }) .attr("y", function (d) { - return d[indexArray.score] > 0 ? -5 : 0; + return d[indexArray.score] > 0 ? -10 : d[indexArray.score] < 0 ? 0 : -5; }) - .attr("height", 5) + .attr("height", 10) .attr("width", function (d) { return fullXScale(d[indexArray.end]) - fullXScale(d[indexArray.start]); }) .style("fill-opacity", "1") .style("stroke", function (d) { - return d[indexArray.score] > 0 ? "red" : "green"; + return d[indexArray.score] > 0 ? "red" : d[indexArray.score] < 0 ? "green" : "grey"; }) .style("fill", function (d) { - return d[indexArray.score] > 0 ? "red" : "green"; + return d[indexArray.score] > 0 ? "red" : d[indexArray.score] < 0 ? "green" : "grey"; }) .style("vector-effect", "non-scaling-stroke") .attr("class", "scalable") @@ -918,14 +918,14 @@ function VQI_GenomeBrowser(id) { .attr("x", function (d) { return fullXScale(d[indexArray.start]); }) - .attr("y", -2.5) - .attr("height", 5) + .attr("y", -10) + .attr("height", 20) .attr("width", function (d) { return fullXScale(d[indexArray.end]) - fullXScale(d[indexArray.start]); }) .style("fill-opacity", ".8") - .style("stroke", "gray") - .style("fill", "gray") + .style("stroke", "black") + .style("fill", "black") .style("vector-effect", "non-scaling-stroke") .attr("class", "scalable")