Skip to content

Commit 8a9745d

Browse files
committed
Touch up detail tooltip spacing
1 parent 3348757 commit 8a9745d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scripts/status.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,8 +1631,8 @@ window.onload = function () {
16311631
/* Set the tooltip text, then move it into position and display it.
16321632
*/
16331633
select("#detailTooltipText_" + longName.replace('%', '\\%'))
1634-
.append("tspan").attr("x",0).attr("y",0).attr('dx', '0.9em').attr('dy', '1.1em').text("At: " + tickText(historyLinearScaleX.invert(mouse(this)[0])))
1635-
.append("tspan").attr("x",0).attr("y",18).attr('dx','0.9em').attr('dy', '1.1em').text("T = " + (historyLinearScaleY.invert(mouse(this)[1])).toFixed(2));
1634+
.append("tspan").attr("x",0).attr("y",0).attr('dx', '0.3em').attr('dy', '1.1em').text("Time: " + tickText(historyLinearScaleX.invert(mouse(this)[0])))
1635+
.append("tspan").attr("x",0).attr("y",18).attr('dx','0.3em').attr('dy', '1.1em').text("Temp:" + (historyLinearScaleY.invert(mouse(this)[1])).toFixed(2));
16361636

16371637
select("#detailTooltipGroup_" + longName.replace('%', '\\%'))
16381638
.attr("transform",
@@ -1683,8 +1683,8 @@ window.onload = function () {
16831683
/* Set the tooltip text, then move it into position and display it.
16841684
*/
16851685
select("#detailTooltipText_" + longName.replace('%', '\\%'))
1686-
.append("tspan").attr("x",0).attr("y",0).attr('dx', '0.9em').attr('dy', '1.1em').text(" At: " + tickText(historyLinearScaleX.invert(mouse(this)[0])))
1687-
.append("tspan").attr("x",0).attr("y",18).attr('dx','0.9em').attr('dy', '1.1em').text("SG = " + (historyLinearScaleY.invert(mouse(this)[1])).toFixed(2));
1686+
.append("tspan").attr("x",0).attr("y",0).attr('dx', '0.3em').attr('dy', '1.1em').text("Time: " + tickText(historyLinearScaleX.invert(mouse(this)[0])))
1687+
.append("tspan").attr("x",0).attr("y",18).attr('dx','0.3em').attr('dy', '1.1em').text("Grav: " + (historyLinearScaleY.invert(mouse(this)[1])).toFixed(2));
16881688

16891689
select("#detailTooltipGroup_" + longName.replace('%', '\\%'))
16901690
.attr("transform",

0 commit comments

Comments
 (0)